-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 2.74 KB
/
package.json
File metadata and controls
61 lines (61 loc) · 2.74 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
{
"name": "craft",
"version": "0.0.25",
"private": true,
"description": "Build desktop apps with web languages, powered by Zig",
"author": "Chris Breuer <chris@stacksjs.org>",
"license": "MIT",
"bin": {
"craft": "./bin/craft"
},
"workspaces": [
"packages/*",
"benchmarks"
],
"scripts": {
"build": "bun run build:core && bun run build:sdk",
"build:core": "cd packages/zig && zig build -Doptimize=ReleaseSafe -Dversion=$(jq -r .version ../../package.json)",
"build:debug": "cd packages/zig && zig build",
"build:sdk": "cd packages/typescript && bun run build",
"build:ios": "cd packages/ios && bun run build",
"build:android": "cd packages/android && bun run build",
"build:react": "cd packages/react && bun run build",
"build:vue": "cd packages/vue && bun run build",
"build:svelte": "cd packages/svelte && bun run build",
"build:desktop": "bun run build:core",
"build:mobile": "bun run build:ios && bun run build:android",
"build:web": "bun run build:sdk && bun run build:react && bun run build:vue && bun run build:svelte",
"build:all": "bun run build:core && bun run build:sdk && bun run build:ios && bun run build:android && bun run build:react && bun run build:vue && bun run build:svelte",
"build:check": "bun scripts/verify-builds.ts",
"test": "cd packages/zig && zig build test",
"test:sdk": "cd packages/typescript && bun test",
"typecheck": "cd packages/typescript && bun run typecheck && cd ../create-craft && bun run typecheck",
"run": "cd packages/zig && zig build run",
"run:demo": "cd packages/zig && zig build run-demo",
"create": "cd packages/create-craft && bun bin/cli.ts",
"clean": "rm -rf packages/zig/zig-cache packages/zig/zig-out && bun run clean:packages",
"clean:packages": "rm -rf packages/*/dist packages/*/node_modules",
"lint": "bunx --bun pickier .",
"lint:fix": "bunx --bun pickier . --fix",
"format": "bunx --bun pickier . --format",
"format:fix": "bunx --bun pickier . --format --write",
"fmt": "cd packages/zig && zig fmt src/ build.zig",
"fmt:check": "cd packages/zig && zig fmt --check src/ build.zig",
"dev": "cd packages/typescript && bun run dev",
"changelog": "bunx logsmith --verbose",
"changelog:generate": "bunx logsmith --output CHANGELOG.md",
"release": "bun --bun run changelog:generate && bunx --bun bumpx prompt --recursive",
"release:patch": "bun --bun run changelog:generate && bunx --bun bumpx patch --recursive --yes"
},
"devDependencies": {
"better-dx": "^0.2.7"
},
"git-hooks": {
"pre-commit": {
"staged-lint": {
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
}
},
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"
}
}