mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
added node-webkit to generate standalone app.
This commit is contained in:
18
Gruntfile.js
18
Gruntfile.js
@ -146,8 +146,18 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
// This generated JS binary is currently not used and even excluded from source control using .gitignore.
|
// This generated JS binary is currently not used and even excluded from source control using .gitignore.
|
||||||
dest: 'build/closure/closure_compiled_binary.js'
|
dest: 'build/closure/closure_compiled_binary.js'
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
|
nodewebkit: {
|
||||||
|
options: {
|
||||||
|
build_dir: './build', // Where the build version of my node-webkit app is saved
|
||||||
|
mac: true,
|
||||||
|
win: true,
|
||||||
|
linux32: true,
|
||||||
|
linux64: true
|
||||||
|
},
|
||||||
|
src: ['./**/*']
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.config.set('leadingIndent.indentation', 'spaces');
|
grunt.config.set('leadingIndent.indentation', 'spaces');
|
||||||
@ -168,6 +178,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-closure-tools');
|
grunt.loadNpmTasks('grunt-closure-tools');
|
||||||
grunt.loadNpmTasks('grunt-ghost');
|
grunt.loadNpmTasks('grunt-ghost');
|
||||||
grunt.loadNpmTasks('grunt-leading-indent');
|
grunt.loadNpmTasks('grunt-leading-indent');
|
||||||
|
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||||
|
|
||||||
// Validate
|
// Validate
|
||||||
grunt.registerTask('lint', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint']);
|
grunt.registerTask('lint', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint']);
|
||||||
@ -188,4 +199,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
// Start webserver
|
// Start webserver
|
||||||
grunt.registerTask('serve', ['connect:serve']);
|
grunt.registerTask('serve', ['connect:serve']);
|
||||||
|
|
||||||
|
// Build stand alone app with nodewebkit
|
||||||
|
grunt.registerTask('nw', ['nodewebkit']);
|
||||||
};
|
};
|
||||||
|
0
build/closure/closure_compiler_20130823.jar
Normal file → Executable file
0
build/closure/closure_compiler_20130823.jar
Normal file → Executable file
0
build/closure/piskel-closure-externs.js
Normal file → Executable file
0
build/closure/piskel-closure-externs.js
Normal file → Executable file
10
package.json
10
package.json
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"author": "Julian Descottes, Vincent Renaudin",
|
"author": "Julian Descottes, Vincent Renaudin",
|
||||||
"name": "piskel",
|
"name": "piskel",
|
||||||
|
"main": "./src/index.html",
|
||||||
"description": "Web based 2d animations editor",
|
"description": "Web based 2d animations editor",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"homepage": "http://github.com/juliandescottes/piskel",
|
"homepage": "http://github.com/juliandescottes/piskel",
|
||||||
@ -9,7 +10,8 @@
|
|||||||
"url": "http://github.com/juliandescottes/piskel.git"
|
"url": "http://github.com/juliandescottes/piskel.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "grunt test"
|
"test": "grunt test",
|
||||||
|
"start": "nodewebkit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
@ -19,6 +21,10 @@
|
|||||||
"grunt-contrib-uglify": "0.2.2",
|
"grunt-contrib-uglify": "0.2.2",
|
||||||
"grunt-ghost": "1.0.12",
|
"grunt-ghost": "1.0.12",
|
||||||
"grunt-leading-indent": "0.1.0",
|
"grunt-leading-indent": "0.1.0",
|
||||||
"grunt-closure-tools": "~0.8.3"
|
"grunt-closure-tools": "~0.8.3",
|
||||||
|
"grunt-node-webkit-builder": "~0.1.21"
|
||||||
|
},
|
||||||
|
"window": {
|
||||||
|
"toolbar": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user