Author: echatellier Date: 2015-04-15 10:06:45 +0000 (Wed, 15 Apr 2015) New Revision: 1183 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1183 Log: Add gruntfile Added: wit/gruntfile.js Modified: wit/ wit/package.json Property changes on: wit ___________________________________________________________________ Added: svn:ignore + cache webkitbuilds node_modules nbproject Added: wit/gruntfile.js =================================================================== --- wit/gruntfile.js (rev 0) +++ wit/gruntfile.js 2015-04-15 10:06:45 UTC (rev 1183) @@ -0,0 +1,21 @@ +module.exports = function(grunt) { + + + grunt.initOptions = function(options){ + + + }; + + grunt.initConfig({ + nodewebkit: { + options: { + platforms: ['win','osx',"linux"], + buildDir: './webkitbuilds', // Where the build version of my node-webkit app is saved + }, + src: ['./index.html', "./package.json", "./css/**", "./js/**"] // Your node-webkit app + }, + }) + + grunt.loadNpmTasks('grunt-node-webkit-builder'); + grunt.registerTask('default', ['nodewebkit']); +}; Modified: wit/package.json =================================================================== --- wit/package.json 2015-04-15 09:54:39 UTC (rev 1182) +++ wit/package.json 2015-04-15 10:06:45 UTC (rev 1183) @@ -1,8 +1,13 @@ { "name": "wit", "main": "index.html", + "version": "1.0.0", "window": { "width": 300, "height": 300 + }, + "devDependencies": { + "grunt": "^0.4.5", + "grunt-node-webkit-builder": "^1.0.2" } }