-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
98 lines (73 loc) · 2.12 KB
/
justfile
File metadata and controls
98 lines (73 loc) · 2.12 KB
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
96
97
98
inject:
just build
pnpm pack --out task-pipeliner.tgz
npm i -g task-pipeliner.tgz
just clean-package
inject-force:
just install
just clean-record
just lint
just build-ts
just update-license
pnpm pack --out task-pipeliner.tgz
npm i -g task-pipeliner.tgz
just clean-package
build-binary:
just build
npx -y pkg dist/index.cjs --targets node18-macos-arm64 --output ./binary-result/tp-test --config package.json
install:
pnpm install
cd ./docs && pnpm install
cd ./generator && pnpm install
test:
pnpm run test
build:
just install
just test
just clean-record
just lint
just build-ts
just update-license
build-all:
just build
just build-docs
just build-generator
update-version version:
pnpm exec node scripts/update-version.js {{version}}
bump-version:
pnpm exec node scripts/bump-version.js
clean-record:
pnpm exec node scripts/clean-record.js
build-ts:
pnpm run build
build-docs:
cd ./docs && rm -rf build && pnpm run build
build-generator:
cd ./generator && rm -rf dist && pnpm run build
deploy-docs:
just build-docs
aws s3 sync ./docs/build s3://task-pipeliner-docs --region ap-northeast-2 --delete
@echo "Docs deployed to S3: task-pipeliner-docs"
deploy-generator:
just build-generator
aws s3 sync ./generator/dist s3://task-pipeliner-generator --region ap-northeast-2 --delete
@echo "Docs deployed to S3: task-pipeliner-docs"
deploy:
just deploy-docs
just deploy-generator
publish:
pnpm publish
clean-package:
rm -f ./task-pipeliner.tgz
start-docs:
cd ./docs && pnpm run build && pnpm run write-translations && pnpm run serve
start-generator:
cd ./generator && pnpm run build && pnpm run dev
lint-ts:
pnpm exec tsc --noEmit
pnpm exec eslint . --fix
lint:
just lint-ts
update-license:
npx -y license-checker --json --onlyDirectDependencies --excludePrivatePackages | jq -r 'to_entries | .[] | "\(.key): \(.value.licenses // .value.license // "Unknown")"' | sort > OPEN_SOURCE_LICENSE
echo "License information saved to OPEN_SOURCE_LICENSE"