Created
January 23, 2017 07:17
-
-
Save hanpama/361452395707f9205ec64017ae642f0d to your computer and use it in GitHub Desktop.
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
export REPOSITORIES=$HOME/Repositories | |
alias installStrapiV3=' | |
npm uninstall strapi -g | |
npm cache clean -f | |
npm cache clear -f | |
sudo rm -rf /usr/local/bin/strapi | |
mkdir -p $REPOSITORIES | |
cd $REPOSITORIES | |
sudo rm -rf strapi | |
git clone -b admin git@github.com:strapi/strapi.git | |
cd $REPOSITORIES/strapi/packages/strapi-mongoose | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-utils | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate-admin | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate-admin/files/admin/public | |
npm install | |
npm run build | |
cd $REPOSITORIES/strapi/packages/strapi-generate-api | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate-policy | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate-service | |
npm link | |
cd $REPOSITORIES/strapi/packages/strapi-generate-new | |
npm install | |
cd $REPOSITORIES/strapi/packages/strapi | |
npm link strapi-generate-new | |
npm link strapi-generate | |
npm link strapi-generate-admin | |
npm link strapi-generate-api | |
npm link strapi-generate-policy | |
npm link strapi-generate-service | |
npm link strapi-generate-migrations | |
npm link strapi-mongoose | |
npm link strapi-utils | |
npm install | |
npm link | |
cd $REPOSITORIES/strapi | |
npm install | |
cd $REPOSITORIES/strapi/packages/strapi/node_modules/koa-joi-router | |
sed -i.bu 's/await-busboy/co-busboy/' joi-router.js | |
npm install co-busboy | |
cd $REPOSITORIES' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment