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