Skip to content

Commit 6f7fd74

Browse files
authored
Merge pull request #943 from SISheogorath/feature/improveSetup
Some minor improvements for setup script
2 parents 1e2bf36 + db59bb9 commit 6f7fd74

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

bin/setup

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ if [ -d .git ]; then
88
cd "$(git rev-parse --show-toplevel)"
99
fi
1010

11-
if ! type npm > /dev/null
11+
if ! type yarn > /dev/null
1212
then
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.
1515
Read more on Node.js official website: https://nodejs.org
16+
And for yarn package manager at: https://yarnpkg.com/en/
1617
Setup will not be run
1718
EOF
1819
exit 0
@@ -27,8 +28,9 @@ if [ ! -f .sequelizerc ]; then
2728
cp .sequelizerc.example .sequelizerc
2829
fi
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

3335
cat << EOF
3436

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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": {

0 commit comments

Comments
 (0)