Skip to content

Instantly share code, notes, and snippets.

@josellausas
Last active March 1, 2018 15:30
Show Gist options
  • Save josellausas/235d96f7a56b5a138fc16b19f8b9e3fa to your computer and use it in GitHub Desktop.
Save josellausas/235d96f7a56b5a138fc16b19f8b9e3fa to your computer and use it in GitHub Desktop.
Setup Mapstory story-tools-composer for development.
#!/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