mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 19:18:12 +08:00
Use npm ci instead of npm install during build (#1080)
Currently the client build is not reproducible since, each time you run `make build-client` the package lockfile is updated. This should be handled separately by `make gen-package-lock` when developers actually want to update the dependencies. `npm ci` installs dependencies directly from the lockfile without updating them, making builds reproducible.
This commit is contained in:
@@ -27,7 +27,7 @@ build: clean build-server
|
|||||||
|
|
||||||
.PHONY: build-client
|
.PHONY: build-client
|
||||||
build-client:
|
build-client:
|
||||||
cd client && $(MAKE) install build
|
cd client && $(MAKE) ci build
|
||||||
|
|
||||||
.PHONY: build-server
|
.PHONY: build-server
|
||||||
build-server: build-client
|
build-server: build-client
|
||||||
@@ -122,7 +122,7 @@ release-directly-to-prod: dev-env pydist twine-prod
|
|||||||
|
|
||||||
.PHONY: dev-env
|
.PHONY: dev-env
|
||||||
dev-env:
|
dev-env:
|
||||||
cd client && $(MAKE) install
|
cd client && $(MAKE) ci
|
||||||
pip install -r server/requirements-dev.txt
|
pip install -r server/requirements-dev.txt
|
||||||
|
|
||||||
.PHONY: gui-env
|
.PHONY: gui-env
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
clean:
|
clean:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
|
||||||
|
.PHONY: ci
|
||||||
|
ci:
|
||||||
|
npm ci client
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
npm install client
|
npm install client
|
||||||
|
|||||||
Reference in New Issue
Block a user