GithubHelp home page GithubHelp logo

sample-polyrepo's Introduction

Welcome to All the Things

This is a sample polyrepo. What's a polyrepo? It's a set of normal git repos all inside one repository. It should feel like a normal set of git checkouts in a folder, with each checkout able to work independently.

Workflow

Working in the polyrepo is very similar to working with a set of git checkouts in a folder. Everything is independent, though we can reference things across folders if that's helpful.

For example, if you want to work on @automattic/components you would:

cd packages/components;
npm i;
npm test;
npm run storybook;

Just like you would in a normal environment.

If you want to build and run Calypso:

cd apps/calypso;
npm i;
npm start;

Now, if you want to work on @automattic/components and see how they're used in Calypso you use npm link and a special build flag.

cd apps/calypso;
npm link ../../packages/components;
FOLLOW_SYMLINKS=true npm start;

When you're done, just `npm unlink

Adding a new "repo"

Just add a new folder. If you're building a reusable npm package, place it under packages. If you're building an application that builds and runs, place it under apps. If you're building something else, ping @team-calypso.

That's it!

sample-polyrepo's People

Contributors

blowery avatar

Watchers

 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.