@peterseibel/hug 0.1.8 → 0.1.10
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.md +1 -1
- package/DEVELOPMENT.md +5 -2
- package/README.md +2 -1
- package/bin/hug +1 -1
- package/package.json +2 -2
package/CLAUDE.md
CHANGED
|
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
`hug` is a
|
|
7
|
+
`hug` is a bash CLI that wraps [clasp](https://github.com/google/clasp) to provide opinionated project management for Google Apps Script projects. It handles project creation (from templates or by importing existing projects), forking projects for branch-based workflows, and a push→version→deploy workflow.
|
|
8
8
|
|
|
9
9
|
## Project structure
|
|
10
10
|
|
package/DEVELOPMENT.md
CHANGED
|
@@ -66,8 +66,11 @@ npm version patch # or minor / major
|
|
|
66
66
|
git push --follow-tags
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
`npm version` bumps `package.json`, commits, and creates a `v*` tag. Pushing
|
|
70
|
-
|
|
69
|
+
`npm version` bumps `package.json`, commits, and creates a `v*` tag. Pushing the
|
|
70
|
+
tag triggers the workflow in `.github/workflows/publish.yml`. (You can also use
|
|
71
|
+
`git config push.followTags true` to configure the repo to always push tags and
|
|
72
|
+
then `npm version patch && git push` will do the trick.)
|
|
73
|
+
|
|
71
74
|
|
|
72
75
|
## Dependencies
|
|
73
76
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# hug
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A wrapper around [clasp](https://github.com/google/clasp) for managing Google Apps Script projects.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -116,5 +116,6 @@ git switch -c staging
|
|
|
116
116
|
hug fork # new Apps Script project, updates .clasp.json
|
|
117
117
|
hug config set SPREADSHEET_ID=1Bx.. # point at a staging spreadsheet
|
|
118
118
|
hug deploy # deploys to the staging project
|
|
119
|
+
git commit # Commit work in branch.
|
|
119
120
|
git switch main # .clasp.json and config.js switch back to production
|
|
120
121
|
```
|
package/bin/hug
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peterseibel/hug",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"description": "A wrapper around clasp for managing Google Apps Script projects",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hug": "bin/hug"
|
|
7
7
|
},
|