diff --git a/repl/etc/agpl-header.txt b/repl/etc/agpl-header.txt new file mode 100644 index 00000000..7256f033 --- /dev/null +++ b/repl/etc/agpl-header.txt @@ -0,0 +1,23 @@ +/* + +Strudel - javascript-based environment for live coding algorithmic (musical) patterns +https://strudel.tidalcycles.org / https://github.com/tidalcycles/strudel/ + +Copyright (C) Strudel contributors +https://github.com/tidalcycles/strudel/graphs/contributors + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +*/ + diff --git a/repl/package.json b/repl/package.json index 6b8be459..5db12a06 100644 --- a/repl/package.json +++ b/repl/package.json @@ -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"