add license to those extracted during javascript minification (temporary hack)
This commit is contained in:
parent
56962196ea
commit
b0dfb44e96
2 changed files with 25 additions and 1 deletions
|
|
@ -22,12 +22,13 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "BUILD_PATH='../docs' react-scripts build && npm run build-tutorial",
|
||||
"build": "BUILD_PATH='../docs' react-scripts build && npm run build-tutorial && npm add-license",
|
||||
"test": "mocha ./src/test --colors",
|
||||
"snapshot": "cd ./src/ && rm -f ./tunes.snapshot.mjs && node ./shoot.mjs > ./tunes.snapshot.mjs",
|
||||
"eject": "react-scripts eject",
|
||||
"tutorial": "parcel src/tutorial/index.html --no-cache",
|
||||
"build-tutorial": "rm -rf ../docs/tutorial && parcel build src/tutorial/index.html --dist-dir ../docs/tutorial --public-url /tutorial --no-scope-hoist --no-cache",
|
||||
"add-license": "cat etc/agpl-header.txt ../docs/static/js/*LICENSE.txt > /tmp/strudel-license.txt && cp /tmp/strudel-license.txt ../docs/static/js/*LICENSE.txt",
|
||||
"predeploy": "npm run build",
|
||||
"deploy": "gh-pages -d ../docs",
|
||||
"static": "npx serve ../docs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue