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
8
8
cd " $( git rev-parse --show-toplevel) "
9
9
fi
10
10
11
- if ! type npm > /dev/null
11
+ if ! type yarn > /dev/null
12
12
then
13
13
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 .
15
15
Read more on Node.js official website: https://nodejs.org
16
+ And for yarn package manager at: https://yarnpkg.com/en/
16
17
Setup will not be run
17
18
EOF
18
19
exit 0
@@ -27,8 +28,9 @@ if [ ! -f .sequelizerc ]; then
27
28
cp .sequelizerc.example .sequelizerc
28
29
fi
29
30
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
32
34
33
35
cat << EOF
34
36
Original file line number Diff line number Diff line change 12
12
"dev" : " webpack --config webpack.dev.js --progress --colors --watch" ,
13
13
"build" : " webpack --config webpack.prod.js --progress --colors --bail" ,
14
14
"postinstall" : " bin/heroku" ,
15
- "start" : " node app.js" ,
15
+ "start" : " sequelize db:migrate && node app.js" ,
16
16
"doctoc" : " doctoc --title='# Table of Contents' README.md"
17
17
},
18
18
"dependencies" : {
You can’t perform that action at this time.
0 commit comments