Use npm ci to install front-end dependencies in dev

The ci command is meant for any situation where you want to make sure
you're doing a clean install of your dependencies.

It is significantly faster than npm install. If a node_modules is
already present, it will be automatically removed before npm ci begins
its install.

Matches the GitHub actions to build the package.

The clean-dev rule is now unused and can be removed.

https://docs.npmjs.com/cli/v7/commands/npm-ci
Signed-off-by: François Freitag <mail@franek.fr>
This commit is contained in:
François Freitag 2021-02-20 19:56:02 +01:00
parent 1795fe3af5
commit 3cc95c474f
No known key found for this signature in database
GPG Key ID: 0CD53670BCA9253D
1 changed files with 2 additions and 5 deletions

View File

@ -4,10 +4,10 @@
all: dev-setup lint build-js-production test test-php
# Dev env management
dev-setup: clean clean-dev npm-init
dev-setup: clean npm-init
npm-init:
npm install
npm ci
composer-init:
composer install --prefer-dist
@ -62,9 +62,6 @@ stylelint-fix:
clean:
rm -rf js
clean-dev:
rm -rf node_modules
# Builds the source package for the app store, ignores php and js tests
appstore:
krankerl package