Lints the projects files with esLint.
Formats the project files with esLint.
Lints the project files with prettier.
Formats the project files with prettier.
Lints with both esLint and prettier.
Formats with both esLint and prettier. Runs before each commit.
Serves UI Library Storybook.
Builds the storybook.
Creates or updates the custom-elements.json file. Run to update the docs in storybook after adding documentation.
Run test.
Run tests in watch mode.
Build each package.
Run postcss on the main stylesheet
Build for production. Clean the build files, lint, run tests, build each package separately.
Clean build artifacts in every package.
For automation use only.
Bumps the versions of all the packages that have changed before. Cleans the package-lock.json and runs npm install to update the dependencies everywhere. Package-lock.json has to be committed after this script makes it's own commit, otherwise the auto-build and publishing will fail. Before running use npm run diff
to see all the changes in the packages. Think carefully about wether you're introducing a breaking change. When in doubt follow the semver spec. This script is for HQ use only, PRs that bump components versions will be rejected.
Diff the packages with the last published version.
Remove the lerna artifacts (gitHead
field) from package.json of each component if publish script fails.
Add, modify or remove a filed in each package.json. Takes following args:
1: action type 'add' | 'remove'
2: key
3: value (mandatory if you're adding or modifying the field)
Running this will add a homepage field to the package.json in every component. It it is already there it will change its value.
npm run lerna:modify-package add homepage https://github.com
This will remove the homepage field from the package.json in each package.
npm run lerna:modify-package remove homepage
Generate tsconfig
for each package.
Scaffolds files for new components.