This monorepo contains web and mobile components, and some configurations about @design-system solutions
Packages that are public into this monorepo:
@design-system/eslint-config - Default configs by eslint
@design-system/jest-config - Default configs by jest
@design-system/ts-config - Default configs by typescript
@design-system/web - Web components
Click here to access the documentation.
After the repository was cloned, run:
$ yarn && yarn lerna bootstrap# watch
$ yarn start
# localhost:9009
# build & serve
$ yarn build:doc && yarn serve
# localhost:8000 To publish the packages, you can run at monorepo root or inside the specific package:
$ yarn pubYou need to download Verdaccio docker image, create a container and start it:
# download the verdaccio docker image
$ docker pull verdaccio/verdaccio
# create container with verdaccio
$ docker create -it --name verdaccio -p 4873:4873 verdaccio/verdaccio
# run verdaccio's container
$ docker start verdaccio
# create a user to access the verdaccio registry
$ npm adduser --registry http://localhost:4873To publish the packages locally, you can run at monorepo root or inside the specific package:
$ yarn pub:localTo unpublish the packages locally, you can run at monorepo root or inside the specific package:
$ yarn unpub:local$ yarn add @design-system/PACKAGE_YOU_WANTTo install packages provided by local verdaccio, run:
$ yarn add @design-system/PACKAGE_YOU_WANT --registry http://localhost:4873