Mercurial > wikked
comparison Gruntfile.js @ 125:886f36b05e5f
More optimized `watch` mode for `grunt`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 24 Nov 2013 14:04:05 -0800 |
parents | f0172c5d8e2c |
children | ffb505cac9c8 |
comparison
equal
deleted
inserted
replaced
124:6c261cb94631 | 125:886f36b05e5f |
---|---|
56 {expand: true, cwd: 'static/', dest: 'build/', src: ['js/**']}, | 56 {expand: true, cwd: 'static/', dest: 'build/', src: ['js/**']}, |
57 {expand: true, cwd: 'static/', dest: 'build/', src: ['tpl/**']}, | 57 {expand: true, cwd: 'static/', dest: 'build/', src: ['tpl/**']}, |
58 {expand: true, cwd: 'static/', dest: 'build/', src: ['bootstrap/js/*.js']} | 58 {expand: true, cwd: 'static/', dest: 'build/', src: ['bootstrap/js/*.js']} |
59 ] | 59 ] |
60 }, | 60 }, |
61 dev_scripts: { | |
62 files: [ | |
63 {expand: true, cwd: 'static/', dest: 'build/', src: ['js/wikked.js', 'js/wikked/**']} | |
64 ] | |
65 }, | |
66 dev_templates: { | |
67 files: [ | |
68 {expand: true, cwd: 'static/', dest: 'build/', src: ['tpl/**']} | |
69 ] | |
70 }, | |
61 production: { | 71 production: { |
62 files: [ | 72 files: [ |
63 {expand: true, cwd: 'static/', dest: 'build/', src: ['js/require.js']}, | 73 {expand: true, cwd: 'static/', dest: 'build/', src: ['js/require.js']}, |
64 {expand: true, cwd: 'static/', dest: 'build/', src: ['css/*.css']}, | 74 {expand: true, cwd: 'static/', dest: 'build/', src: ['css/*.css']}, |
65 {expand: true, cwd: 'static/', dest: 'build/', src: ['font-awesome/font/**']} | 75 {expand: true, cwd: 'static/', dest: 'build/', src: ['font-awesome/font/**']} |
70 all: ['static/js/wikked.js', 'static/js/wikked/**/*.js'], | 80 all: ['static/js/wikked.js', 'static/js/wikked/**/*.js'], |
71 gruntfile: ['Gruntfile.js'] | 81 gruntfile: ['Gruntfile.js'] |
72 }, | 82 }, |
73 watch: { | 83 watch: { |
74 scripts: { | 84 scripts: { |
75 files: ['static/js/**/*.js', 'static/tpl/**/*.html'], | 85 files: ['static/js/wikked.js', 'static/js/wikked/**'], |
76 tasks: ['jshint', 'copy:development'] | 86 tasks: ['jshint:all', 'copy:dev_scripts'] |
87 }, | |
88 templates: { | |
89 files: ['static/tpl/**/*.html'], | |
90 tasks: ['copy:dev_templates'] | |
77 }, | 91 }, |
78 styles: { | 92 styles: { |
79 files: ['static/css/**/*.less'], | 93 files: ['static/css/**/*.less'], |
80 tasks: ['less:development'] | 94 tasks: ['less:development'] |
81 }, | 95 }, |