Skip to content

Commit 5fafe16

Browse files
committed
Release v0.2.0
1 parent dc64865 commit 5fafe16

File tree

8 files changed

+23543
-7
lines changed

8 files changed

+23543
-7
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,20 @@ This file has utility functions used throughout the codebase. All functions are
258258

259259
# Steps for new release
260260

261-
- Change the version in package.json but don't commit yet.
262-
- Generate files so they get the new version
263-
- Run `gulp minify` since `gulp watch` doesn't run that
264-
- Move `mavo.css`, `mavo.js`, `mavo.es5.js`, `mavo.min.js` and `mavo.es5.min.js` to a new folder in `dist`, with the name of the version you’re releasing
265-
- In the `_redirects` file, change where `stable` points to
261+
Change the version in package.json, save but don't commit yet.
262+
263+
Start from the repo root and run the following commands (replace X.Y.Z with the new version number e.g. 0.2.0):
264+
```shell
265+
mv src/local.js src/local1.js # prevent local.js from being included in generated files
266+
gulp # generate files (remember gulp watch doesn't minify!)
267+
mv src/local1.js src/local.js # restore local.js
268+
cd dist
269+
mkdir -m 777 X.Y.Z
270+
mv mavo.css mavo.js mavo.es5.js mavo.es5.min.js mavo.min.js X.Y.Z
271+
cd .. && gulp # regenerate local files
272+
```
273+
Then:
274+
- in the `dist/_redirects` file replace `/stable/* /U.V.W/:splat 302` with `/stable/* /X.Y.Z/:splat 302` and any X.Y and X rules as needed.
266275
- Commit and push
267276
- Create new release on Github
268277
- `npm publish`

0 commit comments

Comments
 (0)