0.1.5 • Published 7 years ago
@prisel/react v0.1.5
@prisel/template
A template for creating new package
Usage
- Make a copy of this module
- Change the project name in
package.json - Change the test name in
jest.config.js - Install in main package.json
npm install ./packages/<name>.
Install dependencies
Install dependency at the root project using lerna
> npx lerna add <dependency> --scope @prisel/<package-name>If you see root package.json already has the package we need, try installing the same version
> npx lerna add <dependency>@^16.6.3 --scope @prisel/<package-name>Lerna only supports adding one dependency at a time.
Install devDependencies
DevDependencies are installed at root project only.
> npm i -D eslintIf we need to add devDependencies to sub packages, copy the name and version to sub package
package.json, no installation is needed.
If you want to use lerna to do that
> npx lerna add --dev <dependency> --scope @prisle/<package-name>