Skip to content

Instantly share code, notes, and snippets.

@skahack
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save skahack/1a0fd52d520c9cdc88ad to your computer and use it in GitHub Desktop.

Select an option

Save skahack/1a0fd52d520c9cdc88ad to your computer and use it in GitHub Desktop.
node-webkit skeleton
module.exports = function(grunt) {
"use strict";
require('load-grunt-tasks')(grunt);
grunt.registerTask('build', [
'nodewebkit'
]);
grunt.initConfig({
nodewebkit: {
options: {
build_dir: './build',
mac: true,
win: false,
linux32: false,
linux64: false
},
src: ['./src/**', './node_modules/**', './package.json']
}
});
};
{
"name": "app-name"
"version": "0.0.0",
"description": "",
"main": "./src/index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "SKAhack",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-node-webkit-builder": "^0.1.21",
"load-grunt-tasks": "^0.4.0"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>Hello</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment