|
19 | 19 | "preversion": "npm ci --ignore-scripts && npm test",
|
20 | 20 | "changelog": "ts-node scripts/gen-changelog.ts",
|
21 | 21 | "test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling",
|
22 |
| - "start": "npm run build:worker && webpack serve --config=webpack-demo.config.ts --mode=development", |
| 22 | + "start": "npm run build:worker && webpack serve --mode=development --env standalone", |
23 | 23 | "serve": "ts-node ./scripts/serve-directory.ts -p 9090 demo-dist",
|
24 | 24 | "clean:release": "rm -rf middleware",
|
25 | 25 | "clean:worker": "rm -rf worker-dist",
|
26 |
| - "bundle:standalone": "webpack --config=webpack.config.ts --mode=production --env standalone", |
27 |
| - "bundle:lib": "webpack --config=webpack.config.ts --mode=production --env lib", |
| 26 | + "bundle:standalone": "webpack --mode=production --env standalone", |
| 27 | + "bundle:lib": "webpack --mode=production --env lib", |
28 | 28 | "bundle": "rm -rf dist && npm run bundle:lib && npm run bundle:standalone",
|
29 | 29 | "compile:middleware": "tsc -d src/middleware/index.ts --outDir middleware --lib ES6,DOM,esnext.asynciterable",
|
30 | 30 | "build:worker": "npm run clean:worker && docker-compose up --abort-on-container-exit --build build-worker",
|
31 | 31 | "build:release": "npm run build:worker && npm run bundle && npm run compile:middleware && npm run declarations",
|
32 |
| - "build:demo": "npm run build:worker && NODE_ENV=production webpack --config=webpack-demo.config.ts --mode=production", |
33 |
| - "stats": "NODE_ENV=production webpack --json --config=webpack.config.ts --mode=production > stats.json", |
| 32 | + "build:demo": "npm run build:release && rm -rf demo-dist && cp -R demo/ demo-dist/ && cp dist/voyager.css* dist/voyager.standalone.js* demo-dist/", |
| 33 | + "stats": "NODE_ENV=production webpack --json --mode=production > stats.json", |
34 | 34 | "lint": "eslint --cache --max-warnings 0 .",
|
35 | 35 | "check": "tsc",
|
36 | 36 | "prettier": "prettier --cache --write --list-different . **/*.svg",
|
|
64 | 64 | "@types/react-dom": "18.0.10",
|
65 | 65 | "@typescript-eslint/eslint-plugin": "5.30.7",
|
66 | 66 | "@typescript-eslint/parser": "5.30.7",
|
67 |
| - "copy-webpack-plugin": "11.0.0", |
68 | 67 | "cspell": "6.2.3",
|
69 | 68 | "css-loader": "6.7.1",
|
70 | 69 | "eslint": "8.20.0",
|
|
74 | 73 | "eslint-plugin-react-hooks": "4.6.0",
|
75 | 74 | "eslint-plugin-simple-import-sort": "10.0.0",
|
76 | 75 | "graphql": "16.5.0",
|
77 |
| - "html-webpack-plugin": "5.5.0", |
78 | 76 | "mini-css-extract-plugin": "2.6.0",
|
79 | 77 | "postcss-cssnext": "3.1.1",
|
80 | 78 | "postcss-import": "12.0.1",
|
|
0 commit comments