File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 3.0.6" ,
4
4
"description" : " Logger for Redux" ,
5
5
"main" : " dist/redux-logger.js" ,
6
+ "module" : " dist/redux-logger.es.js" ,
7
+ "jsnext:main" : " dist/redux-logger.es.js" ,
6
8
"scripts" : {
7
9
"lint" : " eslint src" ,
8
10
"test" : " npm run lint && npm run spec" ,
12
14
"coverage:html" : " nyc report --reporter=html && http-server -p 8077 ./coverage -o" ,
13
15
"coverage:production" : " nyc report --reporter=text-lcov > coverage.lcov && codecov" ,
14
16
"clean" : " rimraf dist" ,
15
- "build" : " rollup -c" ,
17
+ "uglify" : " uglifyjs dist/redux-logger.js -cm -o dist/redux-logger.js" ,
18
+ "build" : " rollup -c && npm run uglify" ,
16
19
"precommit" : " npm test" ,
17
20
"prepublish" : " npm run clean && npm test && npm run build"
18
21
},
38
41
]
39
42
},
40
43
"files" : [
41
- " dist" ,
42
- " src"
44
+ " dist"
43
45
],
44
46
"repository" : {
45
47
"type" : " git" ,
79
81
"rollup-plugin-babel" : " ^2.7.1" ,
80
82
"rollup-plugin-commonjs" : " ^8.0.2" ,
81
83
"rollup-plugin-node-resolve" : " ^3.0.0" ,
82
- "rollup-plugin-uglify " : " ^1.0.2 " ,
83
- "sinon " : " ^1.17.7 "
84
+ "sinon " : " ^1.17.7 " ,
85
+ "uglify-js " : " ^3.0.8 "
84
86
},
85
87
"dependencies" : {
86
88
"deep-diff" : " ^0.3.5"
Original file line number Diff line number Diff line change 1
1
import babel from 'rollup-plugin-babel' ;
2
2
import commonjs from 'rollup-plugin-commonjs' ;
3
3
import nodeResolve from 'rollup-plugin-node-resolve' ;
4
- import uglify from 'rollup-plugin-uglify' ;
5
4
6
5
export default {
7
6
entry : 'src/index.js' ,
8
- format : 'umd' ,
9
7
exports : 'named' ,
10
- moduleName : 'reduxLogger' ,
11
- dest : 'dist/redux-logger.js' ,
12
8
plugins : [
13
9
babel ( {
14
10
babelrc : false ,
@@ -29,7 +25,17 @@ export default {
29
25
jsnext : true ,
30
26
main : true ,
31
27
browser : true ,
32
- } ) ,
33
- uglify ( ) ,
28
+ } )
34
29
] ,
30
+ targets : [
31
+ {
32
+ format : 'umd' ,
33
+ moduleName : 'reduxLogger' ,
34
+ dest : 'dist/redux-logger.js' ,
35
+ } ,
36
+ {
37
+ format : 'es' ,
38
+ dest : 'dist/redux-logger.es.js'
39
+ }
40
+ ]
35
41
} ;
You can’t perform that action at this time.
0 commit comments