-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
40 lines (30 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.ONESHELL:
.SHELLFLAGS = -ec
.PHONY: help dev-install
SHELL := /bin/bash
.DEFAULT_GOAL: help
help:
@awk -F ':|##' '/^[^\t].+?:.*?##/ {\
printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST)
conda-install: ## Use conda to install dev dependencies using unpinned env specification
conda env create -f environment.yml --force --name jupyterlab-sublime
conda-freeze: ## Use conda to freeze the current env available
conda env export | grep -v prefix: > environment-frozen.yml
conda-install-frozen: ## Use conda to install dev dependencies using pinned env specification - subject to repodata.json changes
conda env create -f environment-frozen.yml --force --name jupyterlab-sublime
dev-install:
pip install -e .
jupyter labextension develop . --overwrite
jlpm run build
dev-watch-labextension: ## Recompile labextension on changes
cd $(LABEXTENSION_PATH)
npm run watch
lint: # Run linters
cd $(LABEXTENSION_PATH)
npm run lint
format: # Run formatters
cd $(LABEXTENSION_PATH)
npm run format
publish: # Publish
bin/publish.sh