0.0.0 β€’ Published 3 years ago

@onclass/onclass-monoreto-lerna v0.0.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

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 TypeTitleDescriptionEmoji
featFeaturesA new feature✨
fixBug FixesA bug FixπŸ›
docsDocumentationDocumentation only changesπŸ“š
styleStylesChanges that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)πŸ’Ž
refactorCode RefactoringA code change that neither fixes a bug nor adds a featureπŸ“¦
perfPerformance ImprovementsA code change that improves performanceπŸš€
testTestsAdding missing tests or correcting existing tests🚨
buildBuildsChanges that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)πŸ› 
ciContinuous IntegrationsChanges to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)βš™οΈ
choreChoresOther changes that don't modify src or test files♻️
revertRevertsReverts a previous commitπŸ—‘

Publishing pacakge(s) to NPM

Publish all updated packages by running:

npm login
yarn release:latest