Merge branch 'master' into feature-dynamic-palette

This commit is contained in:
jdescottes 2014-05-11 23:34:49 +02:00
commit a8e0fef416
5 changed files with 25 additions and 4 deletions

View File

@ -188,6 +188,16 @@ 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: './dest/desktop/', // destination folder of releases.
mac: true,
win: true,
linux32: true,
linux64: true
},
src: ['./dest/**/*', "./package.json", "!./dest/desktop/"]
} }
}); });
@ -214,6 +224,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-ghost'); grunt.loadNpmTasks('grunt-ghost');
grunt.loadNpmTasks('grunt-open'); grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-leading-indent'); grunt.loadNpmTasks('grunt-leading-indent');
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.loadNpmTasks('grunt-contrib-copy');
// Validate // Validate
grunt.registerTask('lint', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint']); grunt.registerTask('lint', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint']);
@ -232,7 +244,9 @@ module.exports = function(grunt) {
// Validate & Build // Validate & Build
grunt.registerTask('default', ['clean:before', 'lint', 'compile', 'merge']); grunt.registerTask('default', ['clean:before', 'lint', 'compile', 'merge']);
// Start webserver // Build stand alone app with nodewebkit
grunt.registerTask('desktop', ['default', 'nodewebkit']);
grunt.registerTask('server', ['merge', 'express:regular', 'open:regular', 'express-keepalive']); grunt.registerTask('server', ['merge', 'express:regular', 'open:regular', 'express-keepalive']);
// Start webserver and watch for changes // Start webserver and watch for changes

0
build/closure/closure_compiler_20130823.jar Normal file → Executable file
View File

0
build/closure/piskel-closure-externs.js Normal file → Executable file
View File

View File

@ -1,6 +1,7 @@
{ {
"author": "Julian Descottes, Vincent Renaudin", "author": "Julian Descottes, Vincent Renaudin",
"name": "piskel", "name": "piskel",
"main": "./dest/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",
@ -24,6 +26,11 @@
"grunt-ghost": "1.0.12", "grunt-ghost": "1.0.12",
"grunt-open": "0.2.3", "grunt-open": "0.2.3",
"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.19",
"nodewebkit": "0.8.4"
},
"window": {
"toolbar": false
} }
} }

View File

@ -44,7 +44,7 @@
}; };
ns.PublicPiskelController.prototype.duplicateCurrentFrame = function () { ns.PublicPiskelController.prototype.duplicateCurrentFrame = function () {
this.piskelController.duplicateFrameAt(this.getCurrentFrameIndex()); this.duplicateFrameAt(this.getCurrentFrameIndex());
}; };
ns.PublicPiskelController.prototype.raiseSaveStateEvent_ = function (fn, args) { ns.PublicPiskelController.prototype.raiseSaveStateEvent_ = function (fn, args) {