Browse files

Use separate make targets for install and upgrade so that setup honor…

…s lock files
  • Loading branch information...
lovett committed Jan 8, 2019
1 parent 6ca3320 commit 7c8af6e6fefe4b9d4bcd033acd61d627a0bc78ad
Showing with 117 additions and 102 deletions.
  1. +19 −5 Makefile
  2. +77 −76 composer.lock
  3. +21 −21 package-lock.json
@@ -20,18 +20,20 @@ lint: dummy
phpcs -s app

# Install NPM packages quietly.
#setup-js: export NPM_CONFIG_PROGRESS = false
setup-js: dummy
setup-js: export NPM_CONFIG_PROGRESS=false
setup-js: export NO_UPDATE_NOTIFIER=1
npm install

# Install Composer packages quietly.
setup-php: dummy
composer --no-interaction --no-ansi update
# Install Composer packages quietly based on composer.lock
composer --no-interaction --no-ansi --no-suggest install

# Install all packages quietly.
setup: setup-php setup-js

# Check for out-of-date npm packages
outdated-js: export NO_UPDATE_NOTIFIER=1
npm outdated || true

@@ -42,6 +44,18 @@ outdated-php:
# Check for all out-of-date packages
outdated: outdated-php outdated-js

# Install newly updated npm packages.
update-js: export NO_UPDATE_NOTIFIER=1
npm update

# Install newly updated composer packages and update composer.lock
composer update

# Update all packages quietly
update: update-php update-js

# Create a package upgrade commit.
# "puc" stands for Package Upgrade Commit
Oops, something went wrong.

0 comments on commit 7c8af6e

Please sign in to comment.