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:
parent
1795fe3af5
commit
3cc95c474f
7
Makefile
7
Makefile
|
@ -4,10 +4,10 @@
|
||||||
all: dev-setup lint build-js-production test test-php
|
all: dev-setup lint build-js-production test test-php
|
||||||
|
|
||||||
# Dev env management
|
# Dev env management
|
||||||
dev-setup: clean clean-dev npm-init
|
dev-setup: clean npm-init
|
||||||
|
|
||||||
npm-init:
|
npm-init:
|
||||||
npm install
|
npm ci
|
||||||
|
|
||||||
composer-init:
|
composer-init:
|
||||||
composer install --prefer-dist
|
composer install --prefer-dist
|
||||||
|
@ -62,9 +62,6 @@ stylelint-fix:
|
||||||
clean:
|
clean:
|
||||||
rm -rf js
|
rm -rf js
|
||||||
|
|
||||||
clean-dev:
|
|
||||||
rm -rf node_modules
|
|
||||||
|
|
||||||
# Builds the source package for the app store, ignores php and js tests
|
# Builds the source package for the app store, ignores php and js tests
|
||||||
appstore:
|
appstore:
|
||||||
krankerl package
|
krankerl package
|
||||||
|
|
Loading…
Reference in New Issue