@aw-webflow/workflow-automation 0.0.0-stage → 1.0.1
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 +5 -0
- package/CLAUDE.md +15 -0
- package/README.md +20 -2
- package/package.json +11 -4
- package/script.js +765 -0
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
## Project overview
|
|
4
|
+
|
|
5
|
+
Custom JavaScript for a Webflow page, published to npm as `@aw-webflow/workflow-automation` and consumed via the jsDelivr CDN.
|
|
6
|
+
|
|
7
|
+
## Code conventions
|
|
8
|
+
|
|
9
|
+
All code in `script.js` must use `var` and ES5 syntax (no `let`/`const`, arrow functions, or template literals) for direct-in-browser compatibility.
|
|
10
|
+
|
|
11
|
+
## Deployment
|
|
12
|
+
|
|
13
|
+
1. Push to GitHub
|
|
14
|
+
2. Bump the version in `package.json`, then `npm publish --access public`
|
|
15
|
+
3. jsDelivr serves it at `https://cdn.jsdelivr.net/npm/@aw-webflow/workflow-automation@<version>/script.min.js`
|
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @aw-webflow/workflow-automation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Usage via jsDelivr CDN
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<script src="https://cdn.jsdelivr.net/npm/@aw-webflow/workflow-automation@1.0.0/script.min.js"></script>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Deployment Workflow
|
|
10
|
+
|
|
11
|
+
1. Push changes to GitHub
|
|
12
|
+
2. Bump the version in `package.json`
|
|
13
|
+
3. Run `npm publish --access public`
|
|
14
|
+
4. Update the script tag version in Webflow
|
|
15
|
+
|
|
16
|
+
## Local Development
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install
|
|
20
|
+
npm start
|
|
21
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aw-webflow/workflow-automation",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "parcel script.js",
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"parcel": "^2.16.4"
|
|
12
|
+
}
|
|
13
|
+
}
|