This repository was archived by the owner on Oct 26, 2018. It is now read-only.
File tree 3 files changed +57
-4
lines changed
3 files changed +57
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" es2015" ]
3
- }
2
+ "presets" : [" es2015" ],
3
+ "plugins" : [" transform-object-assign" ]
4
+ }
Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' ) ;
2
+ var webpack = require ( 'webpack' ) ;
3
+
4
+ module . exports = function ( config ) {
5
+
6
+ config . set ( {
7
+
8
+ browsers : [ 'Firefox' ] ,
9
+ frameworks : [ 'mocha' ] ,
10
+ reporters : [ 'mocha' ] ,
11
+
12
+ files : [
13
+ 'test/index.js'
14
+ ] ,
15
+
16
+ preprocessors : {
17
+ 'test/index.js' : [ 'webpack' , 'sourcemap' ]
18
+ } ,
19
+
20
+ singleRun : true ,
21
+
22
+ webpack : {
23
+ devtool : 'inline-source-map' ,
24
+ entry : path . join ( __dirname , 'test' , 'index.js' ) ,
25
+ module : {
26
+ preLoaders : [
27
+ {
28
+ test : / \. j s $ / ,
29
+ exclude : / n o d e _ m o d u l e s / ,
30
+ loader : 'babel'
31
+ }
32
+ ]
33
+ }
34
+ } ,
35
+
36
+ webpackServer : {
37
+ noInfo : true
38
+ } ,
39
+ } ) ;
40
+ } ;
Original file line number Diff line number Diff line change 12
12
],
13
13
"license" : " MIT" ,
14
14
"scripts" : {
15
- "build" : " mkdir -p lib && babel ./src/index.js --plugins transform-object-assign -- out-file ./lib/index.js" ,
15
+ "build" : " mkdir -p lib && babel ./src/index.js --out-file ./lib/index.js" ,
16
16
"test" : " mocha --compilers js:babel-core/register --recursive" ,
17
+ "test:browser" : " karma start" ,
17
18
"test:cov" : " babel-node $(npm bin)/isparta cover $(npm bin)/_mocha -- --recursive" ,
18
19
"prepublish" : " npm run build"
19
20
},
29
30
"devDependencies" : {
30
31
"babel-cli" : " ^6.1.2" ,
31
32
"babel-core" : " ^6.2.1" ,
33
+ "babel-loader" : " ^6.2.0" ,
32
34
"babel-plugin-transform-object-assign" : " ^6.0.14" ,
33
35
"babel-preset-es2015" : " ^6.1.2" ,
34
36
"expect" : " ^1.13.0" ,
35
37
"history" : " ^1.13.1" ,
36
38
"isparta" : " ^4.0.0" ,
39
+ "karma" : " ^0.13.3" ,
40
+ "karma-chrome-launcher" : " ^0.2.0" ,
41
+ "karma-firefox-launcher" : " ^0.1.7" ,
42
+ "karma-ie-launcher" : " ^0.2.0" ,
43
+ "karma-mocha" : " ^0.2.0" ,
44
+ "karma-mocha-reporter" : " ^1.0.4" ,
45
+ "karma-safari-launcher" : " ^0.1.1" ,
46
+ "karma-sourcemap-loader" : " ^0.3.5" ,
47
+ "karma-webpack" : " ^1.7.0" ,
37
48
"mocha" : " ^2.3.4" ,
38
- "redux" : " ^3.0.4"
49
+ "redux" : " ^3.0.4" ,
50
+ "webpack" : " ^1.12.9"
39
51
},
40
52
"dependencies" : {
41
53
"deep-equal" : " ^1.0.1"
You can’t perform that action at this time.
0 commit comments