0.0.0 β’ Published 4 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/libfolders 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 installInstall Lerna globally:
yarn global add lernaRunning
Run Storybook doc:
yarn storybookTesting
Run Vue components unit tests:
yarn unitOpen test coverage detailed report:
yarn test:coverageCommit 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 loginyarn release:latest0.0.0
4 years ago