chore: clean dist before build

pull/81/head
moonrailgun 3 years ago
parent 577687921b
commit a7cacb57e5

@ -51,6 +51,6 @@ for (const lang of langs) {
}); });
}) })
.then(() => { .then(() => {
console.log(`Build [${lang}] Success!`); console.log(`Build Translation [${lang}] Success!`);
}); });
} }

@ -227,6 +227,7 @@ importers:
react-use-gesture: ^9.1.3 react-use-gesture: ^9.1.3
react-virtualized-auto-sizer: ^1.0.6 react-virtualized-auto-sizer: ^1.0.6
react-virtuoso: ^2.8.3 react-virtuoso: ^2.8.3
rimraf: ^3.0.2
rollup-plugin-copy: ^3.4.0 rollup-plugin-copy: ^3.4.0
rollup-plugin-replace: ^2.2.0 rollup-plugin-replace: ^2.2.0
socket.io-client: ^4.1.2 socket.io-client: ^4.1.2
@ -329,6 +330,7 @@ importers:
mini-css-extract-plugin: 1.6.2_webpack@5.65.0 mini-css-extract-plugin: 1.6.2_webpack@5.65.0
postcss: 8.4.5 postcss: 8.4.5
postcss-loader: 6.2.1_postcss@8.4.5+webpack@5.65.0 postcss-loader: 6.2.1_postcss@8.4.5+webpack@5.65.0
rimraf: 3.0.2
rollup-plugin-copy: 3.4.0 rollup-plugin-copy: 3.4.0
rollup-plugin-replace: 2.2.0 rollup-plugin-replace: 2.2.0
style-loader: 3.3.1_webpack@5.65.0 style-loader: 3.3.1_webpack@5.65.0
@ -8496,7 +8498,7 @@ packages:
dev: true dev: true
/rimraf/3.0.2: /rimraf/3.0.2:
resolution: {integrity: sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=, registry: https://registry.npm.taobao.org/, tarball: https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz} resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
hasBin: true hasBin: true
dependencies: dependencies:
glob: 7.2.0 glob: 7.2.0

@ -7,7 +7,7 @@
"license": "GPLv3", "license": "GPLv3",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "pnpm plugins:all && pnpm build:webpack", "build": "rimraf ./dist && pnpm plugins:all && pnpm build:webpack",
"build:webpack": "cross-env TS_NODE_PROJECT='tsconfig.node.json' webpack --config ./build/webpack.config.ts", "build:webpack": "cross-env TS_NODE_PROJECT='tsconfig.node.json' webpack --config ./build/webpack.config.ts",
"build:stats": "pnpm build:webpack --profile --json=compilation-stats.json", "build:stats": "pnpm build:webpack --profile --json=compilation-stats.json",
"dev": "cross-env TS_NODE_PROJECT='tsconfig.node.json' NODE_ENV=development webpack serve --config ./build/webpack.config.ts", "dev": "cross-env TS_NODE_PROJECT='tsconfig.node.json' NODE_ENV=development webpack serve --config ./build/webpack.config.ts",
@ -103,6 +103,7 @@
"mini-css-extract-plugin": "^1.6.2", "mini-css-extract-plugin": "^1.6.2",
"postcss": "^8.3.5", "postcss": "^8.3.5",
"postcss-loader": "^6.1.0", "postcss-loader": "^6.1.0",
"rimraf": "^3.0.2",
"rollup-plugin-copy": "^3.4.0", "rollup-plugin-copy": "^3.4.0",
"rollup-plugin-replace": "^2.2.0", "rollup-plugin-replace": "^2.2.0",
"style-loader": "^3.0.0", "style-loader": "^3.0.0",

Loading…
Cancel
Save