0.0.0 β’ Published 3 years ago
@onclass/onclass-monoreto-lerna v0.0.0
OnClass Monorepo with Lerna & Yarn Workspaces
A Monorepo with multiple packages and a shared build, test, and release process.
- π Lerna β- The Monorepo manager
- π¦ Yarn Workspacesβ - βSane multi-package management
- π Reactβ - βJavaScript library for user interfaces
- π Vueβ - βThe Progressive JavaScript Framework
- π styled-componentsβ -β CSS in JS elegance
- π Babelβ - βCompiles next-gen JavaScript
- π Webpack 5β - βBundle your scrips, assets and styles
- π Storybook - UI Component Environment
- π Jestβ -β Unit/Snapshot Testing
- π§© commitlintβ -β helps your team adhering to a commit convention.
Usage
yarn dev
- This starts Storybook for viewing all the components locally.yarn bootstrap
- This installs all of the packages and links dependent packages together.yarn build
- This babelfies all of the packages and creates/lib
folders for each one.yarn test
- Run all linting and unit tests before committing.yarn test -o
- Run only the tests that have changed.yarn test -u
- Update all of the snapshot tests.
Lerna
lerna changed
- Show which packages have changed.lerna diff
- Show specifically what files have cause the packages to change.
Install dependencies:
yarn install
Install Lerna globally:
yarn global add lerna
Running
Run Storybook doc:
yarn storybook
Testing
Run Vue components unit tests:
yarn unit
Open test coverage detailed report:
yarn test:coverage
Commit types
Commit Type | Title | Description | Emoji |
---|---|---|---|
feat | Features | A new feature | β¨ |
fix | Bug Fixes | A bug Fix | π |
docs | Documentation | Documentation only changes | π |
style | Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | π |
refactor | Code Refactoring | A code change that neither fixes a bug nor adds a feature | π¦ |
perf | Performance Improvements | A code change that improves performance | π |
test | Tests | Adding missing tests or correcting existing tests | π¨ |
build | Builds | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | π |
ci | Continuous Integrations | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | βοΈ |
chore | Chores | Other changes that don't modify src or test files | β»οΈ |
revert | Reverts | Reverts a previous commit | π |
Publishing pacakge(s) to NPM
Publish all updated packages by running:
npm login
yarn release:latest
0.0.0
3 years ago