|
17 | 17 | "type": "module", |
18 | 18 | "scripts": { |
19 | 19 | "clean": "rimraf coverage && rimraf dist", |
20 | | - "build": "npm run clean && npm run build:es5 && npm run build:es-modules", |
| 20 | + "build": "npm run clean && npm run build:es5 && npm run build:es-modules && npm run buildall", |
21 | 21 | "build:es5": "BABEL_ENV=es5 babel lib -d dist/es5", |
22 | 22 | "build:es-modules": "BABEL_ENV=es-modules babel lib -d dist/es-modules", |
| 23 | + "buildall": "npm run buildnode && npm run buildweb && npm run buildreactnative && npm run buildnativescript", |
| 24 | + "buildnode": "webpack --config webpack/webpack.node.js --mode production", |
| 25 | + "buildreactnative": "webpack --config webpack/webpack.react-native.js --mode production", |
| 26 | + "buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production", |
| 27 | + "buildweb": "webpack --config webpack/webpack.web.js --mode production", |
23 | 28 | "test": "BABEL_ENV=test nyc --reporter=html --reporter=text mocha --require @babel/register ./test/test.js -t 30000 --reporter mochawesome --require babel-polyfill", |
24 | 29 | "test:debug": "BABEL_ENV=test mocha debug --require @babel/register ./test", |
25 | 30 | "lint": "eslint lib test", |
26 | 31 | "format": "eslint --fix lib test", |
27 | 32 | "pretest": "rimraf coverage && npm run lint", |
28 | 33 | "precommit": "npm run lint", |
29 | 34 | "prepush": "npm run test:unit", |
30 | | - "generate:docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose", |
31 | | - "buildall": "npm run buildnode&npm run buildweb&npm run buildreactnative&npm run buildnativescript", |
32 | | - "buildnode": "webpack --config webpack/webpack.node.js --mode production", |
33 | | - "buildreactnative": "webpack --config webpack/webpack.react-native.js --mode production", |
34 | | - "buildnativescript": "webpack --config webpack/webpack.nativescript.js --mode production", |
35 | | - "buildweb": "webpack --config webpack/webpack.web.js --mode production" |
| 35 | + "generate:docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose" |
36 | 36 | }, |
37 | 37 | "engines": { |
38 | 38 | "node": ">=8.0.0 <11.0.0" |
|
0 commit comments