Giter Site home page Giter Site logo

probable-spoon's Introduction

Probable Spoon

8bit diagrams

Monorepo gluing all application parts, specific or reusable, each in it's own repository, imported with Git Submodules.

  • :godmode: Composition: Encourage package based development. The application is the sum of it's parts.
  • ๐Ÿš€ High-order CI: Entry point for production deployment. Individual package changes should only trigger development env deployments.
  • ๐Ÿ”’ Private: Lerna links all packages locally, indifferent of published or repository visibility state.
  • โ™ป๏ธ Disposable: Monorepo removal should not bring structural changes to the application. It only automates maintenance tasks, like "npm link" calls, and keeps the packages glued.

Table of contents

Tools

  • ๐Ÿ‰ Lerna: Run scripts across multiple packages and automatic linking for fast local development.
  • ๐Ÿ™ Git Submodules: Allow each component it's own code, scripts, issues, history etc. Can easily point to different commits and (re)deploy.

Development

  • Clone repo with all submodules
git clone --recurse-submodules [email protected]:asd-xiv/probable-spoon.mono.git
  • Link all submodules/packages defined in lerna.json and start Webpack dev server
# "start": "lerna bootstrap && cd ./main.webapp && npm run start"
npm run start
  • Build and watch all submodules
# "build:deps:watch": "lerna bootstrap && lerna run --scope '@asd14/*' --parallel build:watch",
npm run build:deps:watch
  • Add git submodule
git submodule add <remote_url> <destination_folder>
  • Remove git submodule
# Remove submodule entry from .git/config
git submodule deinit -f -- path/to/submodule

# Remove the submodule folder from main project's .git/modules
rm -rf .git/modules/path/to/submodule

# Remove entry in .gitmodules and remove submodule folder
git rm -f a/submodule

Components

Specific:

Reusable:

Random tips

Changelog

See the releases section for details.

probable-spoon's People

Contributors

andreidmt avatar

Watchers

 avatar  avatar  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.