Skip to content

Instantly share code, notes, and snippets.

@drumnation
Last active March 1, 2019 12:51
Show Gist options
  • Select an option

  • Save drumnation/6146d3b72d019b4f195ee39822da0ec3 to your computer and use it in GitHub Desktop.

Select an option

Save drumnation/6146d3b72d019b4f195ee39822da0ec3 to your computer and use it in GitHub Desktop.
Bit.src Command Flow

Install Bit

npm install bit-bin --global yarn global add bit-bin

Login

bit login

Initialize Bit Repo

bit init

Status - anything to tag or export

bit status

Create Components

bit add src/components/*

Add file to component

bit add src/foo.js --id foo/bar

Define a compiler

bit import bit.envs/compilers/babel --compiler bit import bit.envs/compilers/react -c

Build component with compiler

bit build

Imports component into your project

bit import mieloch-react-development.robot1/karate-chop

Commits changes to component / Versioning

bit tag --all

Push Changes

bit export mieloch-react-development.robot1

Push changes back to Bit

bit export mieloch-react-development.robot1 --eject

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