@@ -25,18 +25,6 @@ module.exports = function (grunt) {
2525 grunt . initConfig ( {
2626 yeoman : yeomanConfig ,
2727 watch : {
28- coffee : {
29- files : [ '<%= yeoman.app %>/scripts/{,*/}*.coffee' ] ,
30- tasks : [ 'coffee:dist' ]
31- } ,
32- coffeeTest : {
33- files : [ 'test/spec/{,*/}*.coffee' ] ,
34- tasks : [ 'coffee:test' ]
35- } ,
36- compass : {
37- files : [ '<%= yeoman.app %>/styles/{,*/}*.{scss,sass}' ] ,
38- tasks : [ 'compass:server' ]
39- } ,
4028 livereload : {
4129 options : {
4230 livereload : LIVERELOAD_PORT
@@ -125,75 +113,6 @@ module.exports = function (grunt) {
125113 }
126114 }
127115 } ,
128- coffee : {
129- dist : {
130- files : [
131- {
132- expand : true ,
133- cwd : '<%= yeoman.app %>/scripts' ,
134- src : '{,*/}*.coffee' ,
135- dest : '.tmp/scripts' ,
136- ext : '.js'
137- }
138- ]
139- } ,
140- test : {
141- files : [
142- {
143- expand : true ,
144- cwd : 'test/spec' ,
145- src : '{,*/}*.coffee' ,
146- dest : '.tmp/spec' ,
147- ext : '.js'
148- }
149- ]
150- }
151- } ,
152- compass : {
153- options : {
154- sassDir : '<%= yeoman.app %>/styles' ,
155- cssDir : '.tmp/styles' ,
156- generatedImagesDir : '.tmp/images/generated' ,
157- imagesDir : '<%= yeoman.app %>/images' ,
158- javascriptsDir : '<%= yeoman.app %>/scripts' ,
159- fontsDir : '<%= yeoman.app %>/styles/fonts' ,
160- importPath : '<%= yeoman.app %>/bower_components' ,
161- httpImagesPath : '/images' ,
162- httpGeneratedImagesPath : '/images/generated' ,
163- httpFontsPath : '/styles/fonts' ,
164- relativeAssets : false
165- } ,
166- dist : { } ,
167- server : {
168- options : {
169- debugInfo : true
170- }
171- }
172- } ,
173- // not used since Uglify task does concat,
174- // but still available if needed
175- /*concat: {
176- dist: {}
177- },*/
178- requirejs : {
179- dist : {
180- // Options: https://github.com/jrburke/r.js/blob/master/build/example.build.js
181- options : {
182- // `name` and `out` is set by grunt-usemin
183- baseUrl : yeomanConfig . app + '/scripts' ,
184- optimize : 'none' ,
185- // TODO: Figure out how to make sourcemaps work with grunt-usemin
186- // https://github.com/yeoman/grunt-usemin/issues/30
187- //generateSourceMaps: true,
188- // required to support SourceMaps
189- // http://requirejs.org/docs/errors.html#sourcemapcomments
190- preserveLicenseComments : false ,
191- useStrict : true ,
192- wrap : true
193- //uglify2: {} // https://github.com/mishoo/UglifyJS2
194- }
195- }
196- } ,
197116 rev : {
198117 dist : {
199118 files : {
@@ -285,6 +204,15 @@ module.exports = function (grunt) {
285204 // Put files not handled in other tasks here
286205 copy : {
287206 dist : {
207+ styles : {
208+ expand : true ,
209+ cwd : '<%= yeoman.app %>' ,
210+ dest : '.tmp/' ,
211+ src : [
212+ 'styles/{,*/}*.css' ,
213+ 'bower_components/bootstrap/dist/css/bootstrap.min.css'
214+ ]
215+ } ,
288216 files : [
289217 {
290218 expand : true ,
@@ -311,15 +239,11 @@ module.exports = function (grunt) {
311239 } ,
312240 concurrent : {
313241 server : [
314- 'compass' ,
315- 'coffee:dist'
242+
316243 ] ,
317244 test : [
318- 'coffee'
319245 ] ,
320246 dist : [
321- 'coffee' ,
322- 'compass' ,
323247 'imagemin' ,
324248 'svgmin' ,
325249 'htmlmin'
0 commit comments