- npm: Add add-release script (Newer versions of Git might be able to use set-branch, but the Git version with Mac does not so using another approach)

- Docs: Fix `ReleaseInstructions.md`
This commit is contained in:
Brett Zamir
2020-02-22 09:20:26 +08:00
parent ec881e2362
commit 105037ef79
4 changed files with 10 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
"node": ">=8.5.0"
},
"scripts": {
"add-release": "git submodule add -b \"release-v$VERSION\" https://github.com/SVG-Edit/svgedit.git \"releases/svg-edit-$VERSION\" && git submodule set-branch -b \"release-v$VERSION\" releases/latest",
"add-release": "git submodule add -b \"release-v$VERSION\" https://github.com/SVG-Edit/svgedit.git \"releases/svg-edit-$VERSION\" && git config --file=.gitmodules submodule.releases/latest.branch \"release-v$VERSION\"",
"start-allow-origin": "static -p 8001 -H '{\"Access-Control-Allow-Origin\": \"*\"}'",
"start-embedded": "run-p start start-allow-origin",
"start": "echo \"Open file, e.g., to http://localhost:8000/editor/svg-editor-es.html\" && static -p 8000",