Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Latest commit

 

History

History
58 lines (43 loc) · 1.7 KB

CONTRIBUTING.md

File metadata and controls

58 lines (43 loc) · 1.7 KB

Contributing

Thanks for helping out!

Dependencies

We have a three-way dependency scheme:

  • package.json:dependencies: Production dependencies for the archetype installed in a project.
  • package.json:devDependencies: The development dependencies used internally for the this archetype during development (self tests, checks, etc.) that are not part of the overall archeype outside workflow.
  • ../builder-react-component-dev/package.json:dependencies: Development dependencies for the archetype installed in a project.

Checks, Tests

Run npm run builder:check

Documentation

To generate the usage snippet in the README.md, first go to a project that uses the archetype and then run:

$ builder help builder-react-component | egrep "^[^\[]|^$"

in any project where this archetype is installed and paste in the output.

Release

For tagged official releases only, make sure to:

  1. Update appropriate HISTORY.md notes
  2. Bump package.json version
  3. Generate a new ARCHETYPE-dev package.json at the exact same version
  4. Add to git, tag, and publish
$ vim HISTORY.md              # Version notes
$ vim package.json            # Bump version
$ builder-support gen-dev     # Generate `../builder-react-component-dev/` files
$ npm run builder:check       # Last check!
$ git add package.json HISTORY.md
$ git commit -m "Version bump"
$ git tag -a "vNUMBER" -m "Version NUMBER"
$ git push && git push --tags
$ npm publish                 # Publish main project

$ cd ../builder-react-component-dev
$ git commit -m "Version bump"
$ git tag -a "vNUMBER" -m "Version NUMBER"
$ git push && git push --tags
$ npm publish                 # Publish dev project