forked from ryantam626/jupyterlab_sublime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 1.18 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
41
42
43
44
45
.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: ## Use npm to install the lab extension in dev mode
cd $(LABEXTENSION_PATH)
npm install
npm run build
jupyter labextension link .
cd -
dev-watch-labextension: ## Recompile labextension on changes
cd $(LABEXTENSION_PATH)
npm run watch
dev-watch-jupyterlab: ## Start jupyterlab under watch mode
jupyter lab --watch
lint: # Run linters
cd $(LABEXTENSION_PATH)
npm run lint
format: # Run formatters
cd $(LABEXTENSION_PATH)
npm run format
publish: # Publish
bin/publish.sh