Builder Docs Archetype
A Builder archetype for Formidable static React landers.
Requirements
-
In the root, you need to create a ./static-routes.js
file that exports an array
of all the routes your heart desires.
module.exports = [
"/",
"/about",
"/pineapples"
];
Builder Dependencies
You can read the Builder docs for the full story. Here is an overview of the
Builder three-way dependency scheme:
package.json:dependencies
: Production dependencies for the archetype
installed in a project.dev/package.json:dependencies
: Development 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 archetype outside workflow.
Checks, Tests
Run npm run builder:check
Release
For tagged official releases only, make sure to:
- Bump
package.json
version - Generate a new
ARCHETYPE-dev
package.json
- Add to git, tag, and publish
$ vim package.json
$ vim CHANGELOG.md
$ builder-support gen-dev
$ npm run builder:check
$ git add package.json dev
$ git commit -m "Version bump"
$ git tag -a "vNUMBER" -m "vNUMBER - INSERT_REASONS"
$ git push --follow-tags
$ npm publish
$ cd dev && npm publish