diff options
| -rw-r--r-- | Gruntfile.js | 9 | ||||
| -rw-r--r-- | package.json | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 77ac474..db8e0c0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -54,6 +54,13 @@ module.exports = function(grunt) { clean: { release: ["dist/app.concat.js","dist/app.init.js"], }, + copy: { + release: { + files: [ + {expand: true, src: ['dist/*'], dest: '~/asdf/shader/', nonull: true}, + ] + }, + }, watch: { files: ['dist/!(app.min|app.concat).js'], tasks: ['default'] @@ -65,9 +72,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-dentist'); // Default task(s). grunt.registerTask('default', ['dentist', 'concat', 'uglify']); + grunt.registerTask('install', ['dentist', 'concat', 'uglify', 'clean', 'copy']); }; diff --git a/package.json b/package.json index 4faacfc..53a3c10 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "grunt-contrib-uglify": "~0.2.5", "grunt-contrib-watch": "~0.5.3", "grunt-contrib-clean": "~0.5.0", + "grunt-contrib-copy": "~0.5.0", "grunt-dentist": "~0.2.0" } } |
