Code Monkey home page Code Monkey logo

monorepo-template's Introduction

MONOREPO

monorepo quick starter

All things about monorepo frontend. you can see all changes in CHANGELOG.md

Usage

gh repo clone ddalpange/monorepo-template
yarn install
yarn prepare
yarn dev

Release

Versioning

we're using the rule we discussed with QA engineers not semantic versioning.

major - we're not using.
minor - sprint number
fetch - count of deployments

you can see all versions we deployed in package.json or git tags if you want set new version, run this command it will update CHANGELOG.md and commit on your current branch with tag.

yarn versioning
# input your next version (now is 0.15.0)
0.15.1

Process

Big changes.

  1. removed stg, prod branches. those are replaced with git tags.
  2. create sprint release branch from main branch.
  3. if QA engineer finds bug. you can fix it on sprint release branch.
  4. you will increase fetch version on release branch and push tag (stg or prod) to git.
  5. After sprint. merge release branch to main branch.

Example Flow.

main -> yarn versioning 0.15.0
main -> git checkout -B release/sp-15
release/sp-15 -> git tag -a stg 
release/sp-15 -> git push --follow-tags --force # replace old tag
# ... fixed some bugs ...
release/sp-15 -> yarn versioning 0.15.1
release/sp-15 -> git tag -a stg && git tag -a prod
release/sp-15 -> git checkout main
# ... completed sp-15 ...
main -> git merge release/sp-15

Code Structure

Monorepo tooling

we're using yarn workspace and ultra-runner

you can run specific command to all package in <root> folder. ultra detect package's dependencies and sort out commands.

I already defined useful shortcuts. define other thing if you want.

ultra -r yarn build

Packages

@monorepo/token

have minimal unit variables and style sheets. (It may be automatically created later.)

@monorepo/icons

the Icons created automatically through the FIGMA API

@monorepo/core

The actual React component implementation.

@monorepo/portal

This product is provided to users

Links

monorepo-template's People

Contributors

ddalpange avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

agenciavoolu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.