Skip to content

Instantly share code, notes, and snippets.

@drumnation
Last active Mar 1, 2019
Embed
What would you like to do?
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