File tree 4 files changed +108
-70
lines changed
4 files changed +108
-70
lines changed Original file line number Diff line number Diff line change 6
6
],
7
7
"plugins" : [
8
8
" transform-flow-comments" ,
9
- ]
9
+ ],
10
+ "env" : {
11
+ "test" : {
12
+ "plugins" : [
13
+ // Makes power-assert work
14
+ " espower"
15
+ ]
16
+ }
17
+ }
10
18
}
Original file line number Diff line number Diff line change @@ -24,14 +24,18 @@ module.exports = function(config) {
24
24
module : {
25
25
loaders : [
26
26
{
27
- test : / \. (?: j s | e s ) . ? $ / ,
28
- loader : 'babel-loader ' ,
27
+ test : / \. (?: j s x ? | e s 6 ) $ / ,
28
+ loader : 'babel' ,
29
29
query : {
30
30
cacheDirectory : true ,
31
31
} ,
32
- exclude : / ( n o d e _ m o d u l e s ) /
32
+ exclude : / n o d e _ m o d u l e s /
33
+ } ,
34
+ {
35
+ test : / \. j s o n $ / ,
36
+ loader : 'json'
33
37
}
34
- ]
38
+ ] ,
35
39
} ,
36
40
plugins : [
37
41
new webpack . DefinePlugin ( {
Original file line number Diff line number Diff line change 31
31
"babel-core" : " ^6.5.1" ,
32
32
"babel-eslint" : " ^6.0.2" ,
33
33
"babel-loader" : " ^6.2.2" ,
34
+ "babel-plugin-espower" : " ^2.1.2" ,
34
35
"babel-plugin-transform-flow-comments" : " ^6.7.0" ,
35
36
"babel-preset-es2015" : " ^6.5.0" ,
36
37
"babel-preset-react" : " ^6.5.0" ,
37
38
"babel-preset-stage-1" : " ^6.5.0" ,
38
39
"eslint" : " ^2.7.0" ,
39
40
"eslint-plugin-react" : " ^4.3.0" ,
41
+ "jasmine-core" : " ^2.4.1" ,
42
+ "json-loader" : " ^0.5.4" ,
40
43
"karma" : " ^0.13.14" ,
41
44
"karma-chrome-launcher" : " ^0.2.1" ,
42
45
"karma-cli" : " 0.1.2" ,
48
51
"lodash" : " ^4.11.1" ,
49
52
"open" : " 0.0.5" ,
50
53
"phantomjs-prebuilt" : " >=1.9" ,
54
+ "power-assert" : " ^1.4.1" ,
51
55
"pre-commit" : " ^1.1.2" ,
52
56
"react" : " ^15.0.0" ,
53
57
"react-dom" : " ^15.0.0" ,
64
68
"dependencies" : {
65
69
"classnames" : " ^2.2.0"
66
70
}
67
- }
71
+ }
You can’t perform that action at this time.
0 commit comments