Make dev depend on build

Also, run `npm install` before building.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2019-08-29 21:27:56 +10:00
parent e337267d76
commit b1574a3987
No known key found for this signature in database
GPG key ID: 6F82C3C767D655AA

View file

@ -16,13 +16,15 @@ install: ## Install wallabag with the latest version
update: ## Update the wallabag installation to the latest version
@./scripts/update.sh $(ENV)
dev: ## Install the latest dev version
dev: ENV=dev
dev: build ## Install the latest dev version
@./scripts/dev.sh
run: ## Run the wallabag built-in server
@php bin/console server:run --env=dev
build: ## Run webpack
@npm install
@npm run build:$(ENV)
prepare: clean ## Prepare database for testsuite