diff --git a/package.json b/package.json index a1e72f0..2e6c455 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nw-init", - "version": "0.0.9", + "version": "0.1.0", "description": "Provides scaffolding for node-webkit applications", "main": "index.js", "scripts": { diff --git a/template_source/package.json b/template_source/package.json index 15bb527..500208a 100755 --- a/template_source/package.json +++ b/template_source/package.json @@ -4,7 +4,7 @@ "version": "0.0.1", "dependencies": { "grunt": "~0.4.5", - "project-grunt": "~0.5.0", + "project-grunt": "*", "grunt-node-webkit-builder": "~0.2.2", "grunt-exec": "~0.4.6" } diff --git a/template_source/build.json b/template_source/project.json similarity index 100% rename from template_source/build.json rename to template_source/project.json diff --git a/template_source/tasks/exec.js b/template_source/tasks/exec.js index fdb6a4c..f7c3d2e 100644 --- a/template_source/tasks/exec.js +++ b/template_source/tasks/exec.js @@ -9,9 +9,9 @@ module.exports = { cmd: 'makensis <%= installerDir %>/win.nsi' }, createOSXInstall: { - cmd: 'appdmg <%= installerDir %>/osx.json <%= buildDir %>/<%= build.name %>-Setup.dmg' + cmd: 'appdmg <%= installerDir %>/osx.json <%= buildDir %>/<%= project.name %>-Setup.dmg' }, openOSXApp : { - cmd: 'open <%= buildDir %>/<%= build.name %>/osx/<%= build.name %>.app' + cmd: 'open <%= buildDir %>/<%= project.name %>/osx/<%= project.name %>.app' } }; \ No newline at end of file diff --git a/template_source/tasks/overrides/clean.js b/template_source/tasks/overrides/clean.js index 87da515..33c195c 100644 --- a/template_source/tasks/overrides/clean.js +++ b/template_source/tasks/overrides/clean.js @@ -1,3 +1,3 @@ module.exports = { - installers: ['<%= buildDir %>/<%= build.name %>-Setup.*'] + installers: ['<%= buildDir %>/<%= project.name %>-Setup.*'] }; \ No newline at end of file diff --git a/template_source/tasks/overrides/uglify.js b/template_source/tasks/overrides/uglify.js index c1f6550..5c10ebe 100644 --- a/template_source/tasks/overrides/uglify.js +++ b/template_source/tasks/overrides/uglify.js @@ -1,7 +1,7 @@ module.exports = { main: { files: { - '<%= jsFolder %>/main.js': '<%= build.js.main %>' + '<%= jsFolder %>/main.js': '<%= project.js.main %>' }, options: { compress: { diff --git a/template_source/tasks/overrides/watch.js b/template_source/tasks/overrides/watch.js index a1189ff..cb056d8 100644 --- a/template_source/tasks/overrides/watch.js +++ b/template_source/tasks/overrides/watch.js @@ -1,8 +1,8 @@ module.exports = { css: { files: [ - '<%= build.css.main %>', - '<%= build.file %>', + '<%= project.css.main %>', + '<%= project.file %>', 'src/less/**/*.less' ], tasks: [