|
25 | 25 | "README.md"
|
26 | 26 | ],
|
27 | 27 | "scripts": {
|
28 |
| - "build": "NODE_OPTIONS='--openssl-legacy-provider' rm -rf dist && yarn build:sw && yarn build:app", |
| 28 | + "build": "run-s cleanup:dist build:project", |
29 | 29 | "build:app": "NODE_OPTIONS='--openssl-legacy-provider' run -T webpack --config webpack.app.${WEBPACK_ENV:-prod}.js --progress",
|
30 | 30 | "build:dev": "WEBPACK_ENV=dev yarn build",
|
31 | 31 | "build:firefox": "BROWSER=firefox yarn build",
|
32 | 32 | "build:firefox:dev": "WEBPACK_ENV=dev yarn build:firefox",
|
| 33 | + "build:project": "run-p build:sw build:app", |
33 | 34 | "build:sw": "NODE_OPTIONS='--openssl-legacy-provider' run -T webpack --config webpack.sw.${WEBPACK_ENV:-prod}.js --progress",
|
34 |
| - "cleanup": "yarn exec rm -rf dist node_modules", |
35 |
| - "dev": "NODE_OPTIONS='--openssl-legacy-provider' rm -rf dist & run -T webpack --config webpack.sw.dev.js --progress --watch & run -T webpack serve --config webpack.app.dev.js --env RUN_DEV_SERVER=true", |
| 35 | + "cleanup": "run-p cleanup:*", |
| 36 | + "cleanup:dist": "rm -rf dist", |
| 37 | + "cleanup:firefox-artifacts": "rm -rf artifacts-firefox", |
| 38 | + "cleanup:node_modules": "rm -rf node_modules", |
| 39 | + "dev": "run-s cleanup:dist watch:sw serve:app", |
| 40 | + "dev:firefox": "BROWSER=firefox run-s cleanup:dist watch:sw serve:app ", |
36 | 41 | "format-check": "echo \"@lace/browser-extension-wallet: no format-check command specified\"",
|
37 | 42 | "lint": "cd ../.. && yarn extension:lint",
|
38 | 43 | "prepack": "yarn build",
|
39 |
| - "pack:firefox": "rm -rf artifacts-firefox && web-ext build --source-dir=dist --artifacts-dir=artifacts-firefox", |
| 44 | + "pack:firefox": "run-s cleanup:firefox-artifacts && web-ext build --source-dir=dist --artifacts-dir=artifacts-firefox", |
40 | 45 | "prepare": "ts-patch install -s",
|
41 | 46 | "prettier": "run -T prettier --write .",
|
| 47 | + "serve:app": "NODE_OPTIONS='--openssl-legacy-provider' run -T webpack serve --config webpack.app.dev.js --env RUN_DEV_SERVER=true", |
42 | 48 | "test": "run -T jest --config test/jest.config.js",
|
43 | 49 | "test:e2e": "yarn exec echo \"No e2e tests on this app yet!\"",
|
44 | 50 | "type-check": "echo \"@lace/browser-extension-wallet: no type-check command specified\"",
|
45 |
| - "watch": "NODE_OPTIONS='--openssl-legacy-provider' rm -rf dist & run -T webpack --config webpack.sw.dev.js --progress --watch & run -T webpack --config webpack.app.dev.js --progress --watch" |
| 51 | + "watch": " run-s cleanup:dist watch:project", |
| 52 | + "watch:app": "NODE_OPTIONS='--openssl-legacy-provider' run -T webpack --config webpack.app.dev.js --progress --watch", |
| 53 | + "watch:sw": "NODE_OPTIONS='--openssl-legacy-provider' run -T webpack --config webpack.sw.dev.js --progress --watch", |
| 54 | + "watch:project": "run-p watch:sw watch:app" |
46 | 55 | },
|
47 | 56 | "dependencies": {
|
48 | 57 | "@ant-design/icons": "^4.7.0",
|
|
129 | 138 | "fake-indexeddb": "3.1.3",
|
130 | 139 | "fork-ts-checker-webpack-plugin": "^7.2.1",
|
131 | 140 | "jest-webextension-mock": "^3.9.0",
|
| 141 | + "npm-run-all": "4.1.5", |
132 | 142 | "source-map-loader": "^5.0.0",
|
133 | 143 | "text-encoding-utf-8": "^1.0.2",
|
134 | 144 | "tsconfig-paths-webpack-plugin": "3.5.2",
|
|
0 commit comments