0.0.12 • Published 3 years ago

web-components-aspire v0.0.12

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

Web Components Aspire

Installation

Clone the repo and run.

$ npm install lerna -g
$ npm run postinstall

Packages

Development

Create package

Create new package to the project. The script will promt you with a name field and package select.

  • Name field: Only letters from a-z in lowercase, exept hyphen (-). Not allowed with prefix, eds nor cap.
  • Dependencies select: List of all available dependencies, selected will be added in the new package package.json.
$ npm run package:create

Add dependencies to package

From the root of the project run this command to add dependencies.

$ lerna add <package-name> --scope=<destination-package>

Manually add dependencies to Storybook

Only required if package is added without the create package command.

$ lerna add <package-name> --scope=storybook

After command is completed, add the package and base file to the packages/storybook/.storybook/storybook.json.