procedure-cli 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/dist/app.js +6 -2
- package/dist/app.js.map +1 -1
- package/dist/components/guttered-select.d.ts +6 -1
- package/dist/components/guttered-select.js +33 -8
- package/dist/components/guttered-select.js.map +1 -1
- package/dist/lib/fs.d.ts +1 -0
- package/dist/lib/fs.js +4 -0
- package/dist/lib/fs.js.map +1 -1
- package/dist/lib/template.d.ts +18 -0
- package/dist/lib/template.js +67 -2
- package/dist/lib/template.js.map +1 -1
- package/dist/steps/generation.js +36 -3
- package/dist/steps/generation.js.map +1 -1
- package/dist/steps/product-context.js +20 -1
- package/dist/steps/product-context.js.map +1 -1
- package/dist/steps/stack-style.js +19 -13
- package/dist/steps/stack-style.js.map +1 -1
- package/package.json +5 -2
- package/src/app.tsx +5 -2
- package/src/components/guttered-select.tsx +76 -9
- package/src/lib/fs.ts +5 -0
- package/src/lib/template.ts +104 -2
- package/src/steps/generation.tsx +65 -4
- package/src/steps/product-context.tsx +31 -6
- package/src/steps/stack-style.tsx +28 -15
- package/templates/CLAUDE.md.hbs +15 -0
- package/templates/bin/release.sh.hbs +101 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
usage() {
|
|
5
|
+
echo "Usage: $0 [patch|minor|major]"
|
|
6
|
+
exit 1
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if [[ "${1:-}" == "" ]]; then
|
|
10
|
+
usage
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
BUMP="$1"
|
|
14
|
+
if [[ "$BUMP" != "patch" && "$BUMP" != "minor" && "$BUMP" != "major" ]]; then
|
|
15
|
+
usage
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
echo "==> Checking git working tree..."
|
|
19
|
+
if [[ -n "$(git status --porcelain)" ]]; then
|
|
20
|
+
echo "Error: git working tree is not clean. Commit or stash changes first."
|
|
21
|
+
exit 1
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
{{#if (eq packageManager "bun")}}
|
|
25
|
+
echo "==> Running verification..."
|
|
26
|
+
bun run build
|
|
27
|
+
|
|
28
|
+
echo "==> Bumping version ($BUMP)..."
|
|
29
|
+
npm version "$BUMP"
|
|
30
|
+
|
|
31
|
+
CURRENT_BRANCH="$(git branch --show-current)"
|
|
32
|
+
echo "==> Pushing branch and tags to origin/$CURRENT_BRANCH..."
|
|
33
|
+
git push origin "$CURRENT_BRANCH"
|
|
34
|
+
git push origin --tags
|
|
35
|
+
|
|
36
|
+
echo "==> Publishing..."
|
|
37
|
+
bun publish
|
|
38
|
+
{{else if (eq packageManager "pnpm")}}
|
|
39
|
+
echo "==> Checking npm auth..."
|
|
40
|
+
if ! npm whoami >/dev/null 2>&1; then
|
|
41
|
+
echo "Error: npm is not authenticated. Run: npm login"
|
|
42
|
+
exit 1
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
echo "==> Running verification..."
|
|
46
|
+
pnpm run build
|
|
47
|
+
|
|
48
|
+
echo "==> Bumping version ($BUMP)..."
|
|
49
|
+
npm version "$BUMP"
|
|
50
|
+
|
|
51
|
+
CURRENT_BRANCH="$(git branch --show-current)"
|
|
52
|
+
echo "==> Pushing branch and tags to origin/$CURRENT_BRANCH..."
|
|
53
|
+
git push origin "$CURRENT_BRANCH"
|
|
54
|
+
git push origin --tags
|
|
55
|
+
|
|
56
|
+
echo "==> Publishing to npm..."
|
|
57
|
+
pnpm publish --access public
|
|
58
|
+
{{else if (eq packageManager "yarn")}}
|
|
59
|
+
echo "==> Checking npm auth..."
|
|
60
|
+
if ! npm whoami >/dev/null 2>&1; then
|
|
61
|
+
echo "Error: npm is not authenticated. Run: npm login"
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
|
|
65
|
+
echo "==> Running verification..."
|
|
66
|
+
yarn build
|
|
67
|
+
|
|
68
|
+
echo "==> Bumping version ($BUMP)..."
|
|
69
|
+
npm version "$BUMP"
|
|
70
|
+
|
|
71
|
+
CURRENT_BRANCH="$(git branch --show-current)"
|
|
72
|
+
echo "==> Pushing branch and tags to origin/$CURRENT_BRANCH..."
|
|
73
|
+
git push origin "$CURRENT_BRANCH"
|
|
74
|
+
git push origin --tags
|
|
75
|
+
|
|
76
|
+
echo "==> Publishing to npm..."
|
|
77
|
+
yarn npm publish --access public
|
|
78
|
+
{{else}}
|
|
79
|
+
echo "==> Checking npm auth..."
|
|
80
|
+
if ! npm whoami >/dev/null 2>&1; then
|
|
81
|
+
echo "Error: npm is not authenticated. Run: npm login"
|
|
82
|
+
exit 1
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
echo "==> Running verification..."
|
|
86
|
+
npm run build
|
|
87
|
+
|
|
88
|
+
echo "==> Bumping version ($BUMP)..."
|
|
89
|
+
npm version "$BUMP"
|
|
90
|
+
|
|
91
|
+
CURRENT_BRANCH="$(git branch --show-current)"
|
|
92
|
+
echo "==> Pushing branch and tags to origin/$CURRENT_BRANCH..."
|
|
93
|
+
git push origin "$CURRENT_BRANCH"
|
|
94
|
+
git push origin --tags
|
|
95
|
+
|
|
96
|
+
echo "==> Publishing to npm..."
|
|
97
|
+
npm publish --access public
|
|
98
|
+
{{/if}}
|
|
99
|
+
|
|
100
|
+
NEW_VERSION="$(node -p "require('./package.json').version")"
|
|
101
|
+
echo "Release complete: {{projectName}}@$NEW_VERSION"
|