File tree 2 files changed +15
-2
lines changed 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 47
47
"ts-node" : " ^0.5.5" ,
48
48
"tslint" : " ^3.6.0" ,
49
49
"typescript" : " ^1.8.10" ,
50
- "typings" : " ^0.8.1"
50
+ "typings" : " ^0.8.1" <%= stylePackage %>
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const Blueprint = require('ember-cli/lib/models/blueprint');
2
2
const path = require ( 'path' ) ;
3
3
const stringUtils = require ( 'ember-cli-string-utils' ) ;
4
4
const getFiles = Blueprint . prototype . files ;
5
+ const EOL = require ( 'os' ) . EOL ;
5
6
6
7
module . exports = {
7
8
description : '' ,
@@ -28,6 +29,17 @@ module.exports = {
28
29
const fullAppName = stringUtils . dasherize ( options . entity . name )
29
30
. replace ( / - ( .) / g, ( _ , l ) => ' ' + l . toUpperCase ( ) )
30
31
. replace ( / ^ ./ , ( l ) => l . toUpperCase ( ) ) ;
32
+
33
+ var stylePackage = '' ;
34
+ switch ( options . style . toLowerCase ( ) ) {
35
+ case 'sass' :
36
+ case 'scss' :
37
+ stylePackage = `,${ EOL } "node-sass": "3.7.0"` ;
38
+ break ;
39
+ case 'styl' :
40
+ stylePackage = `,${ EOL } "stylus": "0.54.5"` ;
41
+ break ;
42
+ }
31
43
32
44
return {
33
45
htmlComponentName : stringUtils . dasherize ( options . entity . name ) ,
@@ -38,7 +50,8 @@ module.exports = {
38
50
prefix : options . prefix ,
39
51
styleExt : this . styleExt ,
40
52
refToTypings : refToTypings ,
41
- isMobile : options . mobile
53
+ isMobile : options . mobile ,
54
+ stylePackage : stylePackage
42
55
} ;
43
56
} ,
44
57
You can’t perform that action at this time.
0 commit comments