Giter Site home page Giter Site logo

lerna-playground's Introduction

javascript-monorepo

Usage

Alias Tool Description
yarn cleanup lerna Clean all packages
yarn create-component create-react-component Create a new React component
yarn create-app create-react-app Create a new React app
yarn diff lerna View changes since last release
yarn lint eslint Static code analysis
yarn release lerna Update/release packages
yarn styleguide styleguidist Start the component workbench
yarn test jest Run all tests
yarn updated lerna List updated packages

Example workflow

# We should initialize the repository
yarn

# Let's add a new component called react-button
yarn create-component react-button
yarn styleguide
editor packages/react-button/src/*.jsx
git commit -am "Add react-button"
yarn release

# And now let's add a new website called www.example.com
yarn create-app www.example.com
cd websites/www.example.com
yarn start &
cd ../..
editor websites/www.example.com/src/App.js
git commit -am "Initial www.example.com proof of concept"
git push origin master

# We should use our react-button here
yarn add react-button
editor src/App.js
git commit -am "www.example.com: Add react-button"
git push origin master

# Now let's update our react-button
cd ../..
editor packages/react-button/src/*.jsx
git commit -am "react-button: Awesome new feature"
yarn release

# Repeat!

lerna-playground's People

Contributors

fuglu avatar kotielnikov avatar bfncs avatar

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.