This repository contains the template structure and boilerplate for a new shared module. It can run as-is to give you a sense for how everything functions, but you'll want to follow the instructions under "How to use."
- Replace all occurrences of
TEMPLATE_MODULE
in the copy of the repository with the name of the service. - Remove the
private
flag frompackage.json
and update thedescription
. - If creating a new public module, change the
publishConfig.access
field in thepackage.json
topublic
- this will causesemantic-release
to publish it for any user ofnpm
. Add in the appropriateLICENSE
file and update thelicense
field inpackage.json
. - Remove the example code from
src/index.js
. - Rename the
module-template.sublime-project
file to use the name of the module. - Update this README to remove the setup instructions and document the modules's purpose and API.
npm run build
Outputs a commonjs-compatible bundle to dist/index.js
.
npm test
Merging to master will automatically publish the package if commits with non-trivial changes have been introduced (per commit conventions).