- Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`,
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
2018-05-13 01:58:13 +00:00
|
|
|
# Creating a new svg-edit release
|
2015-11-25 00:53:55 +00:00
|
|
|
|
|
|
|
## Update the main project
|
2018-05-30 02:57:28 +00:00
|
|
|
<!--
|
|
|
|
1. Update the VERSION variable in Makefile.
|
|
|
|
-->
|
2018-05-30 03:40:55 +00:00
|
|
|
1. Update `version` in `package.json` (and `package-lock.json` (via `npm i`)).
|
2018-05-30 02:57:28 +00:00
|
|
|
1. Update the CHANGES file with a summary of all changes.
|
2018-05-30 03:40:55 +00:00
|
|
|
1. Update the README references to `svg-edit.github.io` to point to the
|
|
|
|
current version (note that it will not be available until the steps below).
|
2018-05-30 02:57:28 +00:00
|
|
|
1. Commit these changes
|
|
|
|
<!-- with `git commit -m "Updating Makefile and CHANGES for release X.Y"`-->.
|
|
|
|
1. Tag the version, prefixed by "v", e.g., `v3.0.1`.
|
2015-11-25 00:53:55 +00:00
|
|
|
|
|
|
|
The above steps can be done on a fork and committed via a pull request.
|
|
|
|
|
2018-05-30 02:57:28 +00:00
|
|
|
## Create the release on `gh-pages`
|
|
|
|
<!--
|
|
|
|
2. From the root directory run `make`.
|
|
|
|
3. Copy `build/svg-edit-X.Y/`, `build/svg-edit-X.Y-src.tar.gz`, and `build/svg-edit-X.Y.zip` to a temporary directory.
|
|
|
|
-->
|
2015-11-25 00:53:55 +00:00
|
|
|
|
2018-05-30 02:57:28 +00:00
|
|
|
1. Ensure you are on the `master` branch with `git checkout master`.
|
|
|
|
1. Switch to the `gh-pages` branch with `git checkout gh-pages`.
|
2018-05-30 03:08:19 +00:00
|
|
|
1. Copy the `svg-edit-X.Y` directory to `releases/svg-edit-X.Y` (minus
|
2018-05-30 03:40:55 +00:00
|
|
|
`.git` and `.gitignore` and including the working built
|
|
|
|
`svgedit-config-es.js` and `svgedit-config-iife.js` files).
|
2018-05-30 03:08:19 +00:00
|
|
|
1. Commit these changes with `git commit -m "Updating files for release X.Y"`.
|
2018-05-30 02:57:28 +00:00
|
|
|
1. Switch back to the `master` branch with `git checkout master`.
|
|
|
|
1. Ensure this step worked by visiting <https://svgedit.github.io/svgedit/releases/svg-edit-X.Y/svg-editor.html>
|
2018-05-30 03:08:19 +00:00
|
|
|
(and in an ES6-Module-compliant browser,
|
2018-05-30 03:40:55 +00:00
|
|
|
<https://svgedit.github.io/svgedit/releases/svg-edit-X.Y/svg-editor-es.html>).
|
2015-11-25 00:53:55 +00:00
|
|
|
|
|
|
|
The above steps can be done on a fork and committed via a pull request.
|
|
|
|
|
|
|
|
## Create the release on GitHub
|
2018-05-30 02:57:28 +00:00
|
|
|
<!--
|
|
|
|
4. Attach the `svg-edit-X.Y-src.tar.gz` and `build/svg-edit-X.Y.zip` files to the release.
|
|
|
|
-->
|
2018-05-30 03:40:55 +00:00
|
|
|
1. Go to <https://github.com/SVG-Edit/svgedit/releases> and select
|
|
|
|
`Draft a new release`.
|
|
|
|
1. Make the release target point at the commit where the <!-- makefile and -->
|
|
|
|
changes were updated.
|
|
|
|
1. Write a short description of the release and include a link to the live
|
|
|
|
version:
|
|
|
|
<https://svgedit.github.io/svgedit/releases/svg-edit-X.Y/svg-editor.html>.
|
|
|
|
See the previous releases for the format.
|
2018-05-30 02:57:28 +00:00
|
|
|
1. Create the release!
|
|
|
|
|
|
|
|
You will need to be a member of the SVG-Edit GitHub group to do this step.
|
2015-11-25 00:53:55 +00:00
|
|
|
|
- Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`,
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
2018-05-13 01:58:13 +00:00
|
|
|
## Publish to npm
|
|
|
|
|
|
|
|
1. `npm publish`
|
|
|
|
|
2015-11-25 00:53:55 +00:00
|
|
|
## Update the project docs
|
|
|
|
|
- Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`,
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
2018-05-13 01:58:13 +00:00
|
|
|
Update `README.md` with references and links to the shiny new release.
|