diff options
author | Sheogorath | 2018-09-06 15:00:02 +0100 |
---|---|---|
committer | Sheogorath | 2018-09-06 15:04:20 +0100 |
commit | 5aec047a3e0fcb27b06c54dc692cfa78145057df (patch) | |
tree | 98b132633bbbc8c90d30f0e7588ff6c3190b27db /bin/setup | |
parent | f27e11adabd601caa246fa306e24224aebe36467 (diff) |
Some minor improvements for setup script
Since we use `yarn` for our container setup and try to enforce
dependencies, we should also use yarn in the setup script.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rwxr-xr-x | bin/setup | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -8,11 +8,12 @@ if [ -d .git ]; then cd "$(git rev-parse --show-toplevel)" fi -if ! type npm > /dev/null +if ! type yarn > /dev/null then cat << EOF -npm is not installed, please install Node.js and npm. +yarn is not installed, please install Node.js, npm and yarn. Read more on Node.js official website: https://nodejs.org +And for yarn package manager at: https://yarnpkg.com/en/ Setup will not be run EOF exit 0 @@ -27,8 +28,9 @@ if [ ! -f .sequelizerc ]; then cp .sequelizerc.example .sequelizerc fi -echo "install npm packages" -BUILD_ASSETS=false npm install +echo "install packages" +yarn install --pure-lockfile +yarn install --production=false --pure-lockfile cat << EOF |