Runtime-deprecate ospec, change change-log to changelog, fix a few assorted bugs (#2578)
This commit is contained in:
parent
1630b06106
commit
9f0dc2ab46
76 changed files with 484 additions and 410 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
- [Releasing a new Mithril version](#releasing-a-new-mithril-version)
|
||||
- [Updating mithril.js.org](#updating-mithriljsorg)
|
||||
- [Releasing a new ospec version](#releasing-a-new-ospec-version)
|
||||
|
||||
## Releasing a new Mithril version
|
||||
|
||||
|
|
@ -18,7 +17,7 @@ $ git pull --rebase mithriljs next
|
|||
```
|
||||
|
||||
2. Determine patch level of the change
|
||||
3. Update information in `docs/change-log.md` to match reality of the new version being prepared for release.
|
||||
3. Update information in `docs/changelog.md` to match reality of the new version being prepared for release.
|
||||
- Don't forget to add today's date under the version heading!
|
||||
4. Replace all existing references to `mithril@next` to `mithril` if moving from a release candidate to stable.
|
||||
- Note: if making an initial release candidate, don't forget to move all the playground snippets to pull from `mithril@next`!
|
||||
|
|
@ -96,11 +95,11 @@ $ git push mithriljs next
|
|||
|
||||
### Update the GitHub release
|
||||
|
||||
16. The GitHub Release will require a manual description & title to be added. I suggest coming up with a fun title & then copying the `docs/change-log.md` entry for the build.
|
||||
16. The GitHub Release will require a manual description & title to be added. I suggest coming up with a fun title & then copying the `docs/changelog.md` entry for the build.
|
||||
|
||||
## Updating mithril.js.org
|
||||
|
||||
Fixes to documentation can land whenever, updates to the site are published via Travis.
|
||||
Fixes to documentation can land whenever, updates to the site are built and published via `scripts/update-docs.js`.
|
||||
|
||||
```bash
|
||||
# These steps assume that MithrilJS/mithril.js is a git remote named "mithriljs"
|
||||
|
|
@ -115,69 +114,9 @@ $ git checkout next -- ./docs
|
|||
|
||||
# Manually ensure that no new feature docs were added
|
||||
|
||||
$ git push mithriljs
|
||||
$ node scripts/update-docs
|
||||
```
|
||||
|
||||
After the Travis build completes the updated docs should appear on https://mithril.js.org in a few minutes.
|
||||
After the docs build completes, the updated docs should appear on https://mithril.js.org in a few minutes.
|
||||
|
||||
**Note:** When updating the stable version with a release candidate out, ***make sure to update the index + navigation to point to the new stable version!!!***
|
||||
|
||||
## Releasing a new ospec version
|
||||
|
||||
1. Ensure your local branch is up to date
|
||||
|
||||
```bash
|
||||
$ git checkout next
|
||||
$ git pull --rebase mithriljs next
|
||||
```
|
||||
|
||||
2. Determine patch level of the change
|
||||
3. Update `version` field in `ospec/package.json` to match new version being prepared for release.
|
||||
4. Update `ospec/change-log.md` to match new version being prepared for release.
|
||||
- Don't forget to add today's date under the version heading!
|
||||
5. Commit changes to `next`
|
||||
|
||||
```
|
||||
$ git add .
|
||||
$ git commit -m "chore(ospec): ospec@<version>"
|
||||
|
||||
# Push to your branch
|
||||
$ git push
|
||||
|
||||
# Push to MithrilJS/mithril.js
|
||||
$ git push mithriljs next
|
||||
```
|
||||
|
||||
### Merge from `next` to `master`
|
||||
|
||||
5. Switch to `master` and make sure it's up to date
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
$ git pull --rebase mithriljs master
|
||||
```
|
||||
|
||||
6. merge `next` on top of it
|
||||
|
||||
```bash
|
||||
$ git checkout next -- ./ospec
|
||||
$ git add .
|
||||
$ git commit -m "chore(ospec): ospec@<version>"
|
||||
```
|
||||
|
||||
7. Ensure the tests are passing!
|
||||
|
||||
### Publish the release
|
||||
|
||||
8. Push the changes to `MithrilJS/mithril.js`
|
||||
|
||||
```bash
|
||||
$ git push mithriljs master
|
||||
```
|
||||
|
||||
9. Publish the changes to npm **from the `/ospec` folder**. That bit is important to ensure you don't accidentally ship a new Mithril release!
|
||||
|
||||
```bash
|
||||
$ cd ./ospec
|
||||
$ npm publish
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue