mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Makefile: dependency-driven target to build node_modules
- added `node_modules` as new target - dependency on `package.json` and `yarn.lock` allows for quick `make node_modules` after a branch change, which noops when the deps have not changed - also added `clean` target
This commit is contained in:
10
Makefile
10
Makefile
@@ -5,8 +5,7 @@ all: deps build
|
|||||||
deps-go:
|
deps-go:
|
||||||
go run build.go setup
|
go run build.go setup
|
||||||
|
|
||||||
deps-js:
|
deps-js: node_modules
|
||||||
yarn install --pure-lockfile --no-progress
|
|
||||||
|
|
||||||
deps: deps-js
|
deps: deps-js
|
||||||
|
|
||||||
@@ -43,3 +42,10 @@ test: test-go test-js
|
|||||||
|
|
||||||
run:
|
run:
|
||||||
./bin/grafana-server
|
./bin/grafana-server
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf node_modules
|
||||||
|
rm -rf public/build
|
||||||
|
|
||||||
|
node_modules: package.json yarn.lock
|
||||||
|
yarn install --pure-lockfile --no-progress
|
||||||
|
|||||||
Reference in New Issue
Block a user