File tree Expand file tree Collapse file tree 5 files changed +29
-0
lines changed
Expand file tree Collapse file tree 5 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ tests/.logs
88tests /.tmp
99bashdb-5.0-1.1.2
1010changes.0.2.0.sh
11+ dist /npm /
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ BUILD_TEMP=$( mktemp -d)
4+ DIST_DIR=" ./dist"
5+ VERSION=$( sed -n ' s/^__VERSION="\([^"]*\)"/\1/p' ../giv/src/giv.sh)
6+ printf " Building GIV CLI version %s...\n" " ${VERSION} "
7+ # npm build section
8+ mkdir -p " ${BUILD_TEMP} /npm"
9+ cp -r src templates " ${BUILD_TEMP} /npm/"
10+ sed " s/{{VERSION}}/${VERSION} /g" build/npm/package.json.template > " ${BUILD_TEMP} /npm/package.json"
11+ cp README.md " ${BUILD_TEMP} /npm/" # Optional, but recommended
12+ # Copy BUILD_TEMP to DIST_DIR
13+ mkdir -p " ${DIST_DIR} /npm"
14+ cp -r " ${BUILD_TEMP} /npm" /* " ${DIST_DIR} /npm/"
15+
16+
17+ printf " Build completed. Files are in %s\n" " ${DIST_DIR} "
Original file line number Diff line number Diff line change 1+ {
2+ "name": "giv",
3+ "version": "{{VERSION}}",
4+ "description": "Git history AI assistant CLI tool",
5+ "bin": { "giv": "src/giv.sh" },
6+ "files": [
7+ "src/",
8+ "templates/"
9+ ],
10+ "preferGlobal": true
11+ }
You can’t perform that action at this time.
0 commit comments