-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
65 lines (54 loc) · 1.32 KB
/
justfile
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
set dotenv-load := false
# Generate components and build the bundle
build:
sed -i .bak 's/{{{{VERSION_PLACEHOLDER}}/0.0.0/g' package.json
npm run build
rm -f package.json
mv package.json.bak package.json
# Build the webpack bundle
build-js:
npm run build:js
# Generate the components
generate:
npm run build:backends
# Rebuild the bundle on change
watch:
npm run watch
# Create a new python environment
venv:
python -m venv venv
. venv/bin/activate
# Install pip requirements & node modules.
install:
pip install -r requirements.txt
npm install
# Package the application for distribution using python wheel.
package: clean build
python -m build --wheel
# Publish the package to pypi using twine.
publish: package
npm publish
twine upload dist/*
# Remove dist & build directories
clean:
rm -rf dist
rm -rf build
# Remove generated code
clean-gen:
rm -f Manifest.toml
rm -f JuliaManifest.toml
rm -rf inst
rm -rf man
rm -rf R
rm -f DESCRIPTION
rm -f NAMESPACE
rm -rf deps
rm -rf src/*.jl
rm -rf src/jl
rm -f Project.toml
find dash_chat_components -type f -not -name '__init__.py' -delete
rm -rf dash_chat_components/__pycache__
rm -rf dash_chat_components.egg-info
# Format source code
format:
npx prettier --write src/ts/