edrone-components-lib
v0.31.1
Published
## How to Run local server of Edrone Components Library ```shell cd componenets-lib ``` ```js npm install ``` ```js npm run serve ```
Downloads
417
Readme
Edrone Components Library
How to Run local server of Edrone Components Library
cd componenets-libnpm installnpm run serveHow to add new component to Edrone Components Library
- Add new component
src/lib-components/- use TypeScript
- use methods from @vue/composition-api plugin (migration to vue3)
- use SCSS preprocessor and place styles in separate files in location:
src/lib-scss/- for any assets required to build components use location:
src/lib-assets/- Add Unit test for component
tests/more info goes here
- Add component story into storybook
- include all props, events
stories/- Update changelog
CHANGELOG.md- Run Chromatic (for UI tests and UI review):
- add environment variable
CHROMATIC_PROJECT_TOKENwith project token generated in the Chromatic project's settings (how to set env variable in Linux) npm run chromatic
How to update npm package with new changes
- Add new version to package.json
{
"name": "edrone-components-lib",
"version": "0.0.3", //semantic versioning
"description": "",
...- Build project
npm run build- Connect to edrone npm account via CLI
npm adduser- username: ask admin
- password: ask admin
- email: ask admin
- OTP: ask admin
- Push new package to www.npmjs.com
npm publish- Update MissionControl and Admin projects with latest version of the package
"edrone-components-lib": "0.0.3",