mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
build: Fix build break when make_docs is slow
This commit is contained in:
parent
e82218e156
commit
a0a29aec27
3 changed files with 5 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
"watch": "chokidar src scripts --initial --silent -i 'src/excmds_{background,content}.ts' -i 'src/static/docs' -c 'webpack --display errors-only'",
|
"watch": "chokidar src scripts --initial --silent -i 'src/excmds_{background,content}.ts' -i 'src/static/docs' -c 'webpack --display errors-only'",
|
||||||
"clean": "rm -rf build",
|
"clean": "rm -rf build generated",
|
||||||
"test": "npm run build && jest --silent",
|
"test": "npm run build && jest --silent",
|
||||||
"update-buildsystem": "rm -rf src/node_modules; npm run clean"
|
"update-buildsystem": "rm -rf src/node_modules; npm run clean"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
typedoc --out generated/static/docs/ src --ignoreCompilerErrors
|
dest=generated/static/docs
|
||||||
./scripts/commandline_injector.sh generated/static/docs/modules/_excmds_.html
|
typedoc --out $dest src --ignoreCompilerErrors
|
||||||
|
./scripts/commandline_injector.sh $dest/modules/_excmds_.html
|
||||||
|
cp -r $dest build/static/
|
||||||
|
|
|
@ -44,7 +44,6 @@ module.exports = {
|
||||||
new CopyWebPackPlugin([
|
new CopyWebPackPlugin([
|
||||||
{ from: "src/manifest.json" },
|
{ from: "src/manifest.json" },
|
||||||
{ from: "src/static", to: "static" },
|
{ from: "src/static", to: "static" },
|
||||||
{ from: "generated/static", to: "static" },
|
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue