-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 3.96 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 3.96 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
{
"name": "craft",
"version": "0.0.87",
"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": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; cd packages/zig && zig build -Doptimize=ReleaseSafe -Dversion=$(bun -e \"console.log(require('../../package.json').version)\")",
"build:debug": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; 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",
"verify": "bun scripts/verify.ts",
"verify:packages": "bun scripts/verify-packages.ts",
"verify:create": "bun scripts/verify-create-craft.ts",
"verify:cimports": "bun scripts/audit-cimports.ts",
"test": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; cd packages/zig && zig build test",
"test:sdk": "cd packages/typescript && bun test",
"test:native-lifecycle": "bun scripts/native-lifecycle.ts",
"typecheck": "cd packages/typescript && bun run typecheck && cd ../create-craft && bun run typecheck && cd ../ts-maps && bun run typecheck",
"run": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; cd packages/zig && zig build run",
"run:demo": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; 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": "bun x --bun pickier .",
"lint:fix": "bun x --bun pickier . --fix",
"format": "bun x --bun pickier . --format",
"format:fix": "bun x --bun pickier . --format --write",
"fmt": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; cd packages/zig && zig fmt src/ build.zig",
"fmt:check": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; cd packages/zig && zig fmt --check src/ build.zig",
"pantry:env": "pantry env",
"zig": "command -v zig >/dev/null 2>&1 || eval \"$(pantry env | sed -n '/^export /,$p')\"; zig",
"dev": "cd packages/typescript && bun run dev",
"changelog": "bun x logsmith --verbose",
"changelog:generate": "bun x logsmith --output CHANGELOG.md",
"release": "bun x --bun bumpx prompt --recursive",
"release:patch": "bun x --bun bumpx patch --recursive --yes"
},
"devDependencies": {
"@stacksjs/buddy": "0.72.56",
"@stacksjs/bumpx": "^0.2.10",
"@stacksjs/bunpress": "^0.2.13",
"@stacksjs/env": "^0.72.50",
"better-dx": "^0.2.15"
},
"git-hooks": {
"pre-commit": {
"staged-lint": {
"*.{js,ts,json,yaml,yml,md}": "bun x --bun pickier lint --fix"
}
},
"pre-push": "bun run typecheck",
"commit-msg": "bun x gitlint --edit .git/COMMIT_EDITMSG"
},
"patchedDependencies": {
"ts-maps@0.3.1": "patches/ts-maps@0.3.1.patch"
}
}