Last active
March 1, 2018 15:30
-
-
Save josellausas/235d96f7a56b5a138fc16b19f8b9e3fa to your computer and use it in GitHub Desktop.
Setup Mapstory story-tools-composer for development.
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
#!/usr/bin/env bash | |
rm -fr story-tools | |
rm -fr story-tools-composer | |
git clone https://github.com/MapStory/story-tools | |
git clone https://github.com/MapStory/story-tools-composer | |
# Setup story-tools | |
cd story-tools && \ | |
git checkout composer && \ | |
yarn install && \ | |
gulp build && \ | |
# gulp scripts | |
# Setup composer | |
cd ../story-tools-composer | |
git checkout update-storypins && \ | |
yarn install && \ | |
webpack | |
# Symlink it | |
echo "Creating symlink" | |
cd .. | |
echo "Source = `pwd`/story-tools" | |
echo "Dest = `pwd`/story-tools-composer/node_modules/story-tools" | |
rm -fr story-tools-composer/node_modules/story-tools && \ | |
ln -s "`pwd`/story-tools" story-tools-composer/node_modules/story-tools && \ | |
echo "DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment