Skip to content

Instantly share code, notes, and snippets.

@chefnobody
Created May 22, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chefnobody/d46596155b3be8e8d38a8c7668f17ec8 to your computer and use it in GitHub Desktop.
Save chefnobody/d46596155b3be8e8d38a8c7668f17ec8 to your computer and use it in GitHub Desktop.
consumer-frontend and Gluestick 1.x

consumer-frontend and GlueStick 1.0

Overview

consumer-frontend is a Gluestick project built using gluestick-cli�—a thin wrapper application for helping you build and manage Gluestick projects. gluestick is a package that is part of the gluestick-cli monorepo. The gluestick-cli is available on npm and is comprised of several modules or "packages."

Terms & Definitions

  • Gluestick is a monorepo. It is published to npm with Learna and contains depdent modules or "packages" for building Gluestick apps. The Gluestick repo uses Lerna 1,2 to help break what would otherwise be a potentially large code base in to smaller, versioned packages.
  • gluestick-cli - A package in the Gluestick monorepo that acts as a thin wrapper for managing Gluestick apps from the command-line. With it you can create an app, destroy it, auto upgrade all of its dependent packages, etc... It has a few commands of its own, but several are proxied to your local Gluestick package.
  • gluestick - A package in the Gluestick monorepo that provides additional command line functionality for building for universal-React apps as well as the internals (guts) for driving the Gluestickm Universal React apps themselves.
  • Lerna - "A tool for managing JavaScript projects with multiple packages", or put another way: "Lerna is a tool that optimizes the workflow around managing multi-package repositories with git and npm." Packages are independent codebases that can be versioned and published to npm.
  • consumer-frontend - a repository for maintaining various Gluestick apps. Current apps include: /used-cars-for-sale, /dfe (dealer-frontend) and shopping-tools.

F.A.Q.s

Q: The main project is called "Gluestick", but the binary is called "gluestick-cli", but there's a package in the main project called "gluestick". What's up with that?

A: Gluestick is a monorepo. gluestick-cli is a sub-package in that repo that is deployed to npm and is used to manage Gluestick apps. gluestick (little 'g') is also a sub-package and contains the guts of Gluestick applications.

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment