Checkout the project and install its dependencies:
git clone git@github.com:puzzle/puzzle-shell.git
cd puzzle-shell
nvm use
npm install
To run a local instance of Storybook, run:
npm run storybookTo build a production version of Storybook, run:
npm run build-storybookTo scan the project for linting or type errors, run:
npm run lintTo automatically fix many linting errors & reformat code using Prettier, run:
npm run lint:fixTo automatically generate the custom-elements.json manifest using the web-component-analyzer, run:
npm run manifestTo publish a new package version, do the following:
- Build the library with
npm run build - Execute
npm run manifestto make sure thecustom-elements.jsonmanifest is up-to-date - Update the
CHANGELOG.md - Bump the version with npm version (updates
package.jsonand creates Git tag) - Execute
npm publishto upload the new package version