Skip to content

Commit

Permalink
Document release process; Fix error "cannot remove 'dist'"
Browse files Browse the repository at this point in the history
  • Loading branch information
dotherightthing committed Apr 23, 2023
1 parent 6118942 commit f29006b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ This repo uses a build script so that I can write JavaScript in ES6 rather than
4. Run `npm run watch` to lint and build as you save file changes
* Edit `src/js/m4l-*.js` - the Max-friendly (ES5) version of this file is updated in the `dist` folder
* Edit `dist/*.amxd` in Max - this file is copied back to the `src/patches` folder
5. Run `npm run postinstall` to recreate `dist` folder
5. Run `npm run reinstall` to recreate `dist` folder

## Release

1. Run `npm run changelog`
2. Tag the latest commit with the message `Bump version`
3. Push to Github and an action will run to generate a new *Release*

---

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "npm run backup && npm run lint && npm run compile",
"changelog": "git log --pretty='* [%h] %s' --no-merges $(git describe --tags --abbrev=0 @^)..@ > CHANGELOG.md",
"compile": "babel ./src/js/*.js -d ./dist",
"postinstall": "rm -r dist && mkdir dist && cp ./src/patches/*.amxd ./dist && cp ./src/presets/*.adg ./dist && cp ./src/sets/*.als ./dist && cp ./src/traktor/*.tsi ./dist && npm run build",
"postinstall": "mkdir dist && cp ./src/patches/*.amxd ./dist && cp ./src/presets/*.adg ./dist && cp ./src/sets/*.als ./dist && cp ./src/traktor/*.tsi ./dist && npm run build",
"reinstall": "rm -r dist && mkdir dist && cp ./src/patches/*.amxd ./dist && cp ./src/presets/*.adg ./dist && cp ./src/sets/*.als ./dist && cp ./src/traktor/*.tsi ./dist && npm run build",
"lint": "eslint './src/js/*.js'",
"prepare": "husky install",
"release": "npm run changelog && cp ./README.md ./release && cp ./dist/* ./release",
Expand Down

0 comments on commit f29006b

Please sign in to comment.