Skip to content

Instantly share code, notes, and snippets.

@pfrazee
Created June 13, 2019 20:03
Show Gist options
  • Save pfrazee/28d033c6a10bb385b9fa5b4133bab1a1 to your computer and use it in GitHub Desktop.
Save pfrazee/28d033c6a10bb385b9fa5b4133bab1a1 to your computer and use it in GitHub Desktop.

Blue setup / build process

Create a new directory, let's say ~/blue.

mkdir blue
cd blue

Clone the following repos:

git clone https://github.com/beakerbrowser/beaker.git beaker
git clone https://github.com/beakerbrowser/beaker-core.git beaker-core
git clone https://github.com/beakerbrowser/beaker-app-stdlib.git beaker-app-stdlib
git clone https://github.com/beakerbrowser/beaker-start-app.git beaker-start-app
git clone https://github.com/beakerbrowser/beaker-library-app.git beaker-library-app

Check out blue inside beaker and beaker core:

(cd beaker && git checkout blue)
(cd beaker-core && git checkout blue)

Run npm install in beaker and beaker-core:

(cd beaker && npm i)
(cd beaker-core && npm i)

Symlink beaker-app-stdlib in the apps:

(cd beaker-start-app/vendor && ln -s ../../beaker-app-stdlib beaker-app-stdlib)
(cd beaker-library-app/vendor && ln -s ../../beaker-app-stdlib beaker-app-stdlib)

Link up all the repos from inside beaker:

cd ./beaker/app
npm link @beaker/core
npm link @beaker/start-app
npm link @beaker/library-app

Finally, rebuild beaker (lol):

cd beaker
npm run rebuild

To start beaker, run this command from inside the beaker dir:

BEAKER_USER_DATA_PATH=~/blue/my-profile npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment