Permalink
Browse files

apply grunt-contrib-copy

  • Loading branch information...
1 parent b7fb7cc commit 95089175dabf87e4ffb19119d81b77d6a4303f45 @maninzoo maninzoo committed Nov 10, 2013
Showing with 19 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 .npmignore
  3. +17 −2 Gruntfile.js
View
1 .gitignore
@@ -1,4 +1,5 @@
node_modules
npm-debug.log
tmp
+dest
.idea
View
1 .npmignore
@@ -2,5 +2,6 @@
.idea
node_modules/
tmp/
+dest/
.gitignore
npm-debug.log
View
19 Gruntfile.js
@@ -11,7 +11,20 @@ module.exports = function(grunt) {
grunt.initConfig({
clean: {
- tests: ['tmp']
+ tests: ['tmp'],
+ traverse: ['dest']
+ },
+ copy: {
+ main: {
+ files: [
+ {expand: true, src: ['src/**'], dest: 'dest/'}
+ ]
+ },
+ cwd: {
+ files: [
+ {expand: true, cwd: 'src/', src: ['**'], dest: 'dest/'}
+ ]
+ }
},
websquaremin: {
compile: {
@@ -24,7 +37,9 @@ module.exports = function(grunt) {
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.registerTask('test', ['clean', 'websquaremin']);
+ grunt.registerTask('test', ['clean:tests', 'websquaremin:compile']);
+ grunt.registerTask('traverse', ['clean:traverse', 'copy:cwd']);
grunt.registerTask('default', ['test']);
};

0 comments on commit 9508917

Please sign in to comment.