File tree 5 files changed +43
-62
lines changed
5 files changed +43
-62
lines changed Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+ const fs = require ( 'fs' ) ;
3
+ const path = require ( 'path' ) ;
4
+
5
+ // Import the require hook. Enables us to require TS files natively.
6
+ require ( 'ts-node/register' ) ;
7
+
8
+
9
+ const Angular2App = require ( 'angular-cli/lib/broccoli/angular2-app' ) ;
10
+ const Funnel = require ( 'broccoli-funnel' ) ;
11
+ const MergeTree = require ( 'broccoli-merge-trees' ) ;
12
+ const autoPrefixerTree = require ( 'broccoli-autoprefixer' ) ;
13
+
14
+
15
+ module . exports = function ( defaults ) {
16
+ var angularAppTree = new Angular2App ( defaults , {
17
+ sourceDir : 'src/' ,
18
+ sassCompiler : {
19
+ includePaths : [
20
+ 'src/core/style'
21
+ ]
22
+ } ,
23
+ vendorNpmFiles : [ ]
24
+ } ) ;
25
+
26
+ const ngTree = angularAppTree . toTree ( ) ;
27
+ const cssAutoprefixed = autoPrefixerTree ( new Funnel ( ngTree , {
28
+ include : [ '**/*.css' ]
29
+ } ) ) ;
30
+
31
+ return new MergeTree ( [
32
+ new Funnel ( 'src' , { include : [ '**/*.scss' ] } ) ,
33
+ angularAppTree . toTree ( ) ,
34
+ cssAutoprefixed
35
+ ] , { overwrite : true } ) ;
36
+ } ;
Original file line number Diff line number Diff line change 3
3
"declaration" : true ,
4
4
"emitDecoratorMetadata" : true ,
5
5
"experimentalDecorators" : true ,
6
+ "inlineSources" : true ,
6
7
"mapRoot" : " " ,
7
8
"module" : " commonjs" ,
8
9
"moduleResolution" : " node" ,
11
12
"outDir" : " ../dist/e2e/" ,
12
13
"rootDir" : " ." ,
13
14
"sourceMap" : true ,
14
- "sourceRoot" : " /" ,
15
15
"target" : " es5"
16
16
},
17
17
"files" : [
18
+ " index.e2e.ts" ,
18
19
" e2e.d.ts"
19
20
]
20
21
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
},
36
36
"devDependencies" : {
37
37
"add-stream" : " ^1.0.0" ,
38
- "angular-cli" : " ^0.0.28" ,
39
- "angular-cli-github-pages" : " ^0.2.0" ,
38
+ "angular-cli" : " ^0.0.31" ,
40
39
"broccoli-autoprefixer" : " ^4.1.0" ,
41
- "broccoli-caching-writer" : " ^2.2.1" ,
42
40
"broccoli-funnel" : " ^1.0.1" ,
43
- "broccoli-merge-trees" : " ^1.1.1" ,
44
- "broccoli-sass" : " ^0.7.0" ,
45
- "broccoli-source" : " ^1.1.0" ,
46
41
"browserstacktunnel-wrapper" : " ^1.4.2" ,
47
42
"conventional-changelog" : " ^1.1.0" ,
48
43
"ember-cli-inject-live-reload" : " ^1.3.0" ,
59
54
"karma-firefox-launcher" : " ^0.1.7" ,
60
55
"karma-jasmine" : " ^0.3.6" ,
61
56
"karma-sauce-launcher" : " ^0.2.14" ,
57
+ "node-sass" : " ^3.4.2" ,
62
58
"protractor" : " ^3.1.1" ,
59
+ "sass" : " ^0.5.0" ,
63
60
"strip-ansi" : " ^3.0.0" ,
64
61
"symlink-or-copy" : " ^1.0.1" ,
65
62
"ts-node" : " ^0.5.5" ,
Original file line number Diff line number Diff line change
1
+ @import " variables" ;
2
+
1
3
/* *
2
4
* A collection of mixins and CSS classes that can be used to apply elevation to a material
3
5
* element.
You can’t perform that action at this time.
0 commit comments