1+ # Copyright (c) 2021-2025 Datalayer, Inc.
2+ # Distributed under the terms of the Modified BSD License.
3+
4+ # Copyright (c) 2021-2024 Datalayer, Inc.
5+ # Distributed under the terms of the Modified BSD License.
6+
17# Copyright (c) Datalayer, Inc. https://datalayer.io
28# Distributed under the terms of the MIT License.
39
@@ -15,33 +21,33 @@ help: ## display this help
1521default : help # # default target is help
1622
1723env : warning # # env
18- micromamba env create -y -n ${ENV_NAME} -f environment.yml
24+ conda env create -y -n ${ENV_NAME} -f environment.yml
1925 @exec echo " -------------------------------------------------------"
20- @exec echo " micromamba activate ${ENV_NAME} "
26+ @exec echo " conda activate ${ENV_NAME} "
2127 @exec echo " -------------------------------------------------------"
2228
2329env-rm : warning # # env-rm
24- micromamba deactivate && \
25- micromamba remove -y --name ${ENV_NAME} --all || true
30+ conda deactivate && \
31+ conda remove -y --name ${ENV_NAME} --all || true
2632
2733kill :
28- yarn kill
34+ npm run kill
2935
3036warning :
3137 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"
3238
3339clean : # # clean
34- yarn clean
40+ npm clean
3541
3642build : # # build
37- yarn build
43+ npm run build
3844
3945build-webpack : # # build-webpack
40- yarn build:webpack
46+ npm run build:webpack
4147
4248build-webpack-prod : # # build-webpack-prod
4349 rm -fr ./dist
44- yarn build:webpack:prod
50+ npm run build:webpack:prod
4551
4652build-prod : # # build-prod
4753 git clean -fdx
@@ -98,3 +104,10 @@ publish: build-webpack-prod ## publish
98104 --paths " /*" \
99105 --profile datalayer && \
100106 echo open ✨ https://viewer.datalayer.tech )
107+
108+ clean-npm : # # clean-npm
109+ npm run clean
110+
111+ publish-npm : clean-npm build # # publish-npm
112+ npm publish
113+ echo open https://www.npmjs.com/package/@datalayer/jupyter-viewer
0 commit comments