- You'll need few stuff to before starting :
- Put the
toolbox-setup.sh
in the place you want to create the Toolbox root directory $ sh toolbox-setup.sh
- When VIM open
./toolbox-utils/tasks/prepare.js
, replace on line 8 therawgit
value by your local served url (f.ex:http://localhost/toolbox/toolbox-reader/build
)
- When VIM open
- Then pick a toolbox project directory and start coding for the best
Last active
September 13, 2017 08:54
-
-
Save Yago/085f6b238c14439c5f464d86f40abb36 to your computer and use it in GitHub Desktop.
Quickly setup your Toolbox environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "🛠 Toolbox DEV environment bootstrap starting..." | |
# Remove useless global generator | |
sudo npm -g uninstall generator-toolbox | |
# Create Toolbox dev directory | |
mkdir toolbox-env | |
cd toolbox-env | |
# Define current localtion | |
DIR="$( pwd )" | |
# Clone repositories | |
git clone git@github.com:frontend/toolbox-reader.git | |
git clone git@github.com:frontend/toolbox-utils.git | |
git clone git@github.com:frontend/generator-toolbox.git | |
git clone git@github.com:frontend/toolbox-generated.git | |
# Init generator | |
cd generator-toolbox | |
yarn | |
npm link | |
# Init generated | |
cd ../toolbox-generated | |
yarn | |
yarn build styleguide | |
# Init reader | |
cd ../toolbox-reader | |
yarn | |
# Init utils | |
cd ../toolbox-utils | |
yarn | |
vim ./tasks/prepare.js | |
# Create symlinks | |
cd ../ | |
rm -rf $DIR/toolbox-generated/node_modules/toolbox-utils | |
ln -s $DIR/toolbox-utils $DIR/toolbox-generated/node_modules/toolbox-utils | |
ln -s $DIR/toolbox-generated/build/ $DIR/toolbox-reader/public | |
# Rebuild generated | |
cd toolbox-generated | |
yarn build styleguide | |
echo "Toolbox DEV environment bootstrap completed ! 🎉" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment