File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ if [ -d .git ]; then
88 cd " $( git rev-parse --show-toplevel) "
99fi
1010
11- if ! type npm > /dev/null
11+ if ! type yarn > /dev/null
1212then
1313 cat << EOF
14- npm is not installed, please install Node.js and npm .
14+ yarn is not installed, please install Node.js, npm and yarn .
1515Read more on Node.js official website: https://nodejs.org
16+ And for yarn package manager at: https://yarnpkg.com/en/
1617Setup will not be run
1718EOF
1819 exit 0
@@ -27,8 +28,9 @@ if [ ! -f .sequelizerc ]; then
2728 cp .sequelizerc.example .sequelizerc
2829fi
2930
30- echo " install npm packages"
31- BUILD_ASSETS=false npm install
31+ echo " install packages"
32+ yarn install --pure-lockfile
33+ yarn install --production=false --pure-lockfile
3234
3335cat << EOF
3436
Original file line number Diff line number Diff line change 1212 "dev" : " webpack --config webpack.dev.js --progress --colors --watch" ,
1313 "build" : " webpack --config webpack.prod.js --progress --colors --bail" ,
1414 "postinstall" : " bin/heroku" ,
15- "start" : " node app.js" ,
15+ "start" : " sequelize db:migrate && node app.js" ,
1616 "doctoc" : " doctoc --title='# Table of Contents' README.md"
1717 },
1818 "dependencies" : {
You can’t perform that action at this time.
0 commit comments