summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-01-28 10:02:19 -0500
committerjules <jules@okfoc.us>2014-01-28 10:02:19 -0500
commit03d746887a9ca5ad7c2d0a40c0ca6ae877704d43 (patch)
tree67a76f0deb7f2ff675f831fbcaff684da3f1b71b
parent5d9a59162e35aad1aefc75b14c417a39bf6da5cf (diff)
grunt install task
-rw-r--r--Gruntfile.js9
-rw-r--r--package.json1
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"
}
}