File tree 2 files changed +42
-4
lines changed
2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 9
9
" unexpected-dom.min.js"
10
10
],
11
11
"scripts" : {
12
- "bundle:browserify" : " browserify lib/index.js --standalone unexpected.dom --debug --x jsdom > unexpected-dom.js" ,
13
- "bundle:min" : " uglifyjs unexpected-dom.js > unexpected-dom.min.js" ,
14
- "bundle" : " npm run bundle:browserify && npm run bundle:min" ,
12
+ "bundle" : " rollup -c" ,
15
13
"build" : " babel --out-dir lib --quiet src" ,
16
14
"build-tests" : " babel --out-dir build/test --quiet test" ,
17
15
"changelog" : " offline-github-changelog > CHANGELOG.md" ,
49
47
"babel-cli" : " ^6.26.0" ,
50
48
"babel-core" : " ^6.26.3" ,
51
49
"babel-preset-env" : " ^1.7.0" ,
52
- "browserify" : " ^16.2.3" ,
53
50
"coveralls" : " ^3.0.2" ,
54
51
"eslint" : " ^6.0.0" ,
55
52
"eslint-config-prettier" : " ^6.0.0" ,
72
69
"nyc" : " ^14.0.0" ,
73
70
"offline-github-changelog" : " ^1.2.0" ,
74
71
"prettier" : " ~1.18.2" ,
72
+ "rollup" : " ^1.0.2" ,
73
+ "rollup-plugin-commonjs" : " ^10.0.0" ,
74
+ "rollup-plugin-json" : " ^4.0.0" ,
75
+ "rollup-plugin-node-globals" : " ^1.4.0" ,
76
+ "rollup-plugin-node-resolve" : " ^5.0.0" ,
77
+ "rollup-plugin-terser" : " ^5.1.2" ,
75
78
"uglifyjs" : " ^2.4.11" ,
76
79
"unexpected" : " ^11.6.1" ,
77
80
"unexpected-documentation-site-generator" : " ^6.0.0" ,
Original file line number Diff line number Diff line change
1
+ var terser = require ( 'rollup-plugin-terser' ) . terser ;
2
+
3
+ var plugins = [
4
+ require ( 'rollup-plugin-json' ) ( ) ,
5
+ require ( 'rollup-plugin-commonjs' ) ( ) ,
6
+ require ( 'rollup-plugin-node-resolve' ) ( ) ,
7
+ require ( 'rollup-plugin-node-globals' ) ( )
8
+ ] ;
9
+
10
+ module . exports = [
11
+ {
12
+ input : 'lib/index.js' ,
13
+ output : {
14
+ file : 'unexpected-dom.js' ,
15
+ name : 'unexpected.dom' ,
16
+ exports : 'named' ,
17
+ format : 'umd' ,
18
+ sourcemap : false ,
19
+ strict : false
20
+ } ,
21
+ plugins
22
+ } ,
23
+ {
24
+ input : 'lib/index.js' ,
25
+ output : {
26
+ file : 'unexpected-dom.min.js' ,
27
+ name : 'unexpected.dom' ,
28
+ exports : 'named' ,
29
+ format : 'umd' ,
30
+ sourcemap : false ,
31
+ strict : false
32
+ } ,
33
+ plugins : plugins . concat ( [ terser ( ) ] )
34
+ }
35
+ ] ;
You can’t perform that action at this time.
0 commit comments