build: Fix build break when make_docs is slow

This commit is contained in:
Colin Caine 2017-11-09 05:54:10 +00:00
parent e82218e156
commit a0a29aec27
3 changed files with 5 additions and 4 deletions

View file

@ -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"
}, },

View file

@ -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/

View file

@ -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" },
]), ]),
] ]
} }