sapper-iq 1.1.36 → 1.1.38

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.
@@ -1,35 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
-
9
- jobs:
10
- test:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- node-version: [16.x, 18.x, 20.x]
15
-
16
- steps:
17
- - name: Checkout code
18
- uses: actions/checkout@v4
19
-
20
- - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: ${{ matrix.node-version }}
24
- cache: 'npm'
25
-
26
- - name: Install dependencies
27
- run: npm ci
28
-
29
- - name: Run tests
30
- run: npm test --if-present
31
-
32
- - name: Check if sapper runs
33
- run: |
34
- chmod +x sapper.mjs
35
- timeout 5s node sapper.mjs --help || true
@@ -1,46 +0,0 @@
1
- name: Publish to NPM
2
-
3
- on:
4
- release:
5
- types: [published]
6
- push:
7
- tags:
8
- - 'v*'
9
-
10
- jobs:
11
- publish:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Checkout code
15
- uses: actions/checkout@v4
16
-
17
- - name: Setup Node.js
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: '18'
21
- registry-url: 'https://registry.npmjs.org'
22
-
23
- - name: Install dependencies
24
- run: npm ci
25
-
26
- - name: Run tests (if any)
27
- run: npm test --if-present
28
-
29
- - name: Publish to NPM
30
- run: npm publish
31
- env:
32
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33
-
34
- - name: Create GitHub Release
35
- if: startsWith(github.ref, 'refs/tags/v')
36
- uses: actions/create-release@v1
37
- env:
38
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
- with:
40
- tag_name: ${{ github.ref }}
41
- release_name: Release ${{ github.ref }}
42
- body: |
43
- ## Changes in this release
44
- - Auto-generated release from tag ${{ github.ref }}
45
- draft: false
46
- prerelease: false
package/PUBLISHING.md DELETED
@@ -1,148 +0,0 @@
1
- # Publishing Sapper to NPM
2
-
3
- This guide explains how to publish Sapper to npm registry manually.
4
-
5
- ## Prerequisites
6
-
7
- 1. **npm account** - Create at [npmjs.com](https://npmjs.com)
8
- 2. **npm login** - Run `npm login` in terminal
9
- 3. **Package name available** - Check if "sapper" is available on npm
10
-
11
- ## Step-by-Step Publishing Process
12
-
13
- ### 1. Verify Package Configuration
14
-
15
- Check `package.json` has correct information:
16
- ```json
17
- {
18
- "name": "sapper",
19
- "version": "1.0.0",
20
- "main": "sapper.mjs",
21
- "bin": {
22
- "sapper": "./sapper.mjs"
23
- },
24
- "type": "module"
25
- }
26
- ```
27
-
28
- ### 2. Make Executable
29
-
30
- Ensure the main file is executable:
31
- ```bash
32
- chmod +x sapper.mjs
33
- ```
34
-
35
- ### 3. Test Locally
36
-
37
- Test the package locally before publishing:
38
- ```bash
39
- npm link
40
- sapper --version # Test if it works
41
- npm unlink -g sapper # Clean up
42
- ```
43
-
44
- ### 4. Check Package Contents
45
-
46
- See what files will be published:
47
- ```bash
48
- npm pack --dry-run
49
- ```
50
-
51
- ### 5. Login to NPM
52
-
53
- ```bash
54
- npm login
55
- # Enter username, password, email, and 2FA code
56
- ```
57
-
58
- ### 6. Publish
59
-
60
- ```bash
61
- npm publish
62
- ```
63
-
64
- If successful, you'll see:
65
- ```
66
- + sapper@1.0.0
67
- ```
68
-
69
- ### 7. Verify Installation
70
-
71
- Test global installation:
72
- ```bash
73
- npm install -g sapper
74
- sapper --version
75
- ```
76
-
77
- ## Publishing Updates
78
-
79
- ### For patch updates (1.0.0 → 1.0.1):
80
- ```bash
81
- npm version patch
82
- git push --follow-tags
83
- npm publish
84
- ```
85
-
86
- ### For minor updates (1.0.0 → 1.1.0):
87
- ```bash
88
- npm version minor
89
- git push --follow-tags
90
- npm publish
91
- ```
92
-
93
- ### For major updates (1.0.0 → 2.0.0):
94
- ```bash
95
- npm version major
96
- git push --follow-tags
97
- npm publish
98
- ```
99
-
100
- ## Troubleshooting
101
-
102
- ### Package name taken
103
- If "sapper" is taken, try alternatives:
104
- - `sapper-ai`
105
- - `sapper-cli`
106
- - `ai-sapper`
107
-
108
- Update `package.json` name field accordingly.
109
-
110
- ### Authentication errors
111
- ```bash
112
- npm logout
113
- npm login
114
- ```
115
-
116
- ### Permission errors
117
- Check if you have publish rights to the package name.
118
-
119
- ### Version conflicts
120
- Each publish must have a unique version number. Increment version in `package.json`.
121
-
122
- ## Post-Publish Steps
123
-
124
- 1. **Verify on npmjs.com** - Visit `https://npmjs.com/package/sapper`
125
- 2. **Test installation** - `npm install -g sapper`
126
- 3. **Update README** - Add npm installation instructions
127
- 4. **Tag release on GitHub** - Create release tag matching npm version
128
-
129
- ## NPM Commands Reference
130
-
131
- - `npm whoami` - Check logged in user
132
- - `npm view sapper` - View package info
133
- - `npm unpublish sapper@1.0.0` - Remove specific version (within 24hrs)
134
- - `npm deprecate sapper@1.0.0 "reason"` - Mark version as deprecated
135
- - `npm owner ls sapper` - List package owners
136
-
137
- ## GitHub Integration
138
-
139
- After publishing, users can install via:
140
- - `npm install -g sapper` (from npm registry)
141
- - `npm install -g git+https://github.com/aledanee/sapper.git` (from GitHub)
142
-
143
- Keep both npm and GitHub versions synchronized.
144
-
145
-
146
-
147
-
148
- git add . && git commit -m "Add specialized Node.js/PostgreSQL prompts with use cases" && npm version patch && npm publish