Make desktop app directory with all nedded files before build it.
This commit is contained in:
parent
b2bdb252b7
commit
7fb5fe93fa
2 changed files with 17 additions and 6 deletions
16
Gruntfile.js
16
Gruntfile.js
|
@ -157,7 +157,15 @@ module.exports = function(grunt) {
|
|||
linux64: true
|
||||
},
|
||||
src: ['./**/*']
|
||||
},
|
||||
},
|
||||
copy: {
|
||||
desktop: {
|
||||
files: [
|
||||
{expand: true, cwd: "build/", src: ['*'], dest: 'desktop/build/', filter: 'isFile'},
|
||||
{expand: true, cwd: "src/", src: ['**'], dest: 'desktop/'},
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.config.set('leadingIndent.indentation', 'spaces');
|
||||
|
@ -179,7 +187,8 @@ module.exports = function(grunt) {
|
|||
grunt.loadNpmTasks('grunt-ghost');
|
||||
grunt.loadNpmTasks('grunt-leading-indent');
|
||||
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
|
||||
// Validate
|
||||
grunt.registerTask('lint', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint']);
|
||||
|
||||
|
@ -201,5 +210,6 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('serve', ['connect:serve']);
|
||||
|
||||
// Build stand alone app with nodewebkit
|
||||
grunt.registerTask('nw', ['nodewebkit']);
|
||||
grunt.registerTask('desktop', ['compile', 'merge', 'copy:desktop', 'nodewebkit']);
|
||||
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"author": "Julian Descottes, Vincent Renaudin",
|
||||
"name": "piskel",
|
||||
"main": "./src/index.html",
|
||||
"main": "./desktop/index.html",
|
||||
"description": "Web based 2d animations editor",
|
||||
"version": "0.0.1",
|
||||
"homepage": "http://github.com/juliandescottes/piskel",
|
||||
|
@ -22,9 +22,10 @@
|
|||
"grunt-ghost": "1.0.12",
|
||||
"grunt-leading-indent": "0.1.0",
|
||||
"grunt-closure-tools": "~0.8.3",
|
||||
"grunt-node-webkit-builder": "~0.1.21"
|
||||
"grunt-node-webkit-builder": "~0.1.21",
|
||||
"grunt-contrib-copy": "~0.5.0"
|
||||
},
|
||||
"window": {
|
||||
"toolbar": false
|
||||
"toolbar": false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue