|
20 | 20 | "options": {
|
21 | 21 | "mocha": "--require babel-register --require scripts/mocha-bootload src/**/__tests__/*.js"
|
22 | 22 | },
|
23 |
| - "browserify-shim": { |
24 |
| - "react": "global:React" |
25 |
| - }, |
26 | 23 | "scripts": {
|
27 | 24 | "postinstall": "npm run download && npm run build",
|
28 | 25 | "test": "npm run lint && npm run check && npm run testonly",
|
|
36 | 33 | "coveralls": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
37 | 34 | "build": "babel src --optional runtime --ignore __tests__,public --out-dir lib/",
|
38 | 35 | "download": "babel-node scripts/download.js cache/data.json",
|
39 |
| - "build-public": "browserify --standalone Schema -t babelify --outfile public/schema.js src/schema-proxy.js", |
| 36 | + "build-public": "webpack -p", |
| 37 | + "bundle-stats": "webpack -p --profile --json > public/stats.json && npx webpack-bundle-analyzer public/stats.json", |
40 | 38 | "serve-public": "babel-node scripts/serve-public",
|
41 | 39 | "deploy": "scripts/build-public && scripts/deploy-public",
|
42 | 40 | "prettier": "prettier --write 'src/**/*.js'",
|
|
55 | 53 | "babel-cli": "^6.26.0",
|
56 | 54 | "babel-core": "^6.26.0",
|
57 | 55 | "babel-eslint": "^8.2.2",
|
| 56 | + "babel-loader": "^7.1.4", |
58 | 57 | "babel-plugin-syntax-async-functions": "6.13.0",
|
59 | 58 | "babel-plugin-transform-flow-strip-types": "^6.22.0",
|
60 | 59 | "babel-plugin-transform-object-rest-spread": "^6.26.0",
|
61 | 60 | "babel-plugin-transform-runtime": "^6.23.0",
|
62 | 61 | "babel-preset-env": "^1.6.1",
|
63 | 62 | "babel-register": "^6.26.0",
|
64 |
| - "babelify": "^8.0.0", |
65 |
| - "browserify": "^15.0.0", |
66 |
| - "browserify-shim": "^3.8.10", |
67 | 63 | "chai": "^4.1.2",
|
68 | 64 | "coveralls": "^3.0.0",
|
69 | 65 | "eslint": "^4.19.1",
|
|
74 | 70 | "isparta": "^4.0.0",
|
75 | 71 | "mocha": "^5.0.5",
|
76 | 72 | "prettier": "^1.11.1",
|
77 |
| - "sane": "^2.5.0" |
| 73 | + "sane": "^2.5.0", |
| 74 | + "webpack": "^4.5.0", |
| 75 | + "webpack-cli": "^2.0.14" |
78 | 76 | }
|
79 | 77 | }
|
0 commit comments