-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·95 lines (71 loc) · 2.58 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.
SHELL=/bin/bash
CONDA=source $$(conda info --base)/etc/profile.d/conda.sh
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate
CONDA_DEACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda deactivate
CONDA_REMOVE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda remove -y --all -n
ENV_NAME=datalayer
VERSION=1.1.1
.DEFAULT_GOAL := default
.SILENT: init
.PHONY: port-forward storybook
help: ## display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
default: help ## default target is help
clean: ui-clean services-clean ## clean
install: ui-install services-install ## install
build: ui-build services-build ## build
env-dev: ## env-dev
($(CONDA_ACTIVATE) ${ENV_NAME}; \
./../bin/dla env-dev all )
env-rm: warning ## env-rm
($(CONDA); \
conda deactivate && \
conda remove -y --name ${ENV_NAME} --all || true )
env-status: ## env-status
($(CONDA_ACTIVATE) ${ENV_NAME}; \
./../bin/dla env-status )
init: ## init
# eval $(DOCKER_ENV)
storybook:
($(CONDA_ACTIVATE) datalayer; \
yarn storybook )
jupyterpool-sqlite:
($(CONDA_ACTIVATE) datalayer; \
cd ./tech/jupyter/pool/dev/utils && \
./jupyterpool-sqlite.sh )
kill:
./dev/utils/kill.sh
warning:
echo "\x1b[34m\x1b[43mEnsure you have run \x1b[1;37m\x1b[41m conda deactivate \x1b[22m\x1b[34m\x1b[43m before invoking this.\x1b[0m"
typedoc: ## generate typedoc
rm -fr typedoc && \
yarn typedoc --tsconfig ./tsconfig.json && \
open typedoc/index.html
publish-typedoc: typedoc ## deploy typedoc
aws s3 rm \
s3://datalayer-typedoc/datalayer/core/${VERSION}/ \
--recursive \
--profile datalayer
aws s3 cp \
typedoc \
s3://datalayer-typedoc/datalayer/core/${VERSION}/ \
--recursive \
--profile datalayer
aws cloudfront create-invalidation \
--distribution-id XXX \
--paths /datalayer/jupyter-kernels/${VERSION}/ \
--profile datalayer
echo open ✨ https://typedoc.datalayer.tech/datalayer/core/${VERSION}
publish-npm: # publish the npm package
yarn build && \
npm publish --access public
echo https://www.npmjs.com/package/@datalayer/core?activeTab=versions
publish-pypi: # publish the pypi package
git clean -fdx && \
python -m build
@exec echo
@exec echo twine upload ./dist/*-py3-none-any.whl
@exec echo
@exec echo https://pypi.org/project/datalayer-core/#history