Skip to content

Commit

Permalink
1.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde authored Mar 12, 2021
1 parent fb7dad8 commit 3920d65
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ firebase-debug.*.log*

# cypress videos
*.mp4
*.mp4.meta
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGELOG

## Not released
## Unreleased

## 1.0.0-rc.2 (2021-03-12)
- Add improved htmlForFeature in skeleton [#215](https://github.com/CartoDB/carto-react-template/pull/215)
- Fix immutable/serializable checks for redux middleware in skeleton [#216](https://github.com/CartoDB/carto-react-template/pull/216)

Expand Down
26 changes: 21 additions & 5 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,30 @@ npx create-react-app test-template --template file:./carto-react-template/templa

## Publishing the templates to npm

> ⚠️ Important: remember to set the right version for each template, tag the release in the GitHub repository and deploy the sample app with the latest changes
For each template, execute the release command from its **base folder**. Before this command is executed, a pre-hook will clean all unnecesary development files and folders and copy the hygen templates, before making the npm release
Follow these steps:

1. Open a new branch for the release, eg. release-v1.0.0-rc.2
2. For each template:
- launch the app, with `yarn start`
- test cypress locally, with `yarn cy:run`
- manual review from browser (see errors & warnings)
- from template root folder `yarn clean`
- use create-react-app to build a project
- test cra project result as a user, including hygen generators
3. Bump manually package version in package.json (root level --> package.json & inside template --> package.dev.json)
4. Update changelog: rename 'Unrelased' to new version, eg 1.0.0-rc.2 (2021-03-12)
5. Push branch to remote to run CI (all test green)
6. Execute the release command, for each template, from its **base folder**: `yarn release`.

```bash
cd template-sample-app
yarn release
cd template-sample-app
yarn release
```
Before this command is executed, a prerelease hook will clean all unnecesary development files and folders and copy the latest hygen templates, before making the npm release.
7. After a succesful release, merge the PR and create a tag in github
8. Deploy the sample app template to firebase (if required)




## Deploying the sample app
Expand Down
2 changes: 1 addition & 1 deletion template-sample-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/cra-template-sample-app",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"keywords": [
"react",
"create-react-app",
Expand Down
2 changes: 1 addition & 1 deletion template-sample-app/template/package.dev.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carto-for-react",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"private": true,
"dependencies": {
"@carto/react-api": "1.0.0-rc.1",
Expand Down
2 changes: 1 addition & 1 deletion template-skeleton/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/cra-template",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"keywords": [
"react",
"create-react-app",
Expand Down
2 changes: 1 addition & 1 deletion template-skeleton/template/package.dev.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carto-for-react",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"private": true,
"dependencies": {
"@carto/react-api": "1.0.0-rc.1",
Expand Down

1 comment on commit 3920d65

@vercel
Copy link

@vercel vercel bot commented on 3920d65 Mar 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.