srcpack 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/README.md +10 -26
- package/dist/cli.js +23464 -2286
- package/dist/config.d.ts +3 -3
- package/dist/gdrive.d.ts +17 -4
- package/dist/index.js +3 -3
- package/package.json +12 -4
- package/src/bundle.ts +16 -1
- package/src/cli.ts +102 -26
- package/src/config.ts +1 -1
- package/src/gdrive.ts +161 -24
- package/src/init.ts +12 -4
- package/dist/src/bundle.d.ts +0 -37
- package/dist/src/cli.d.ts +0 -2
- package/dist/src/config.d.ts +0 -45
- package/dist/src/gdrive.d.ts +0 -33
- package/dist/src/index.d.ts +0 -2
- package/dist/src/init.d.ts +0 -1
- package/dist/tests/bundle.test.d.ts +0 -1
- package/dist/tests/cli.test.d.ts +0 -1
- package/dist/tests/config.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Zero-config CLI for bundling code into LLM-optimized context files.
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx srcpack
|
|
8
|
+
npx srcpack init # Create config interactively
|
|
9
9
|
npx srcpack # Bundle all
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -69,7 +69,7 @@ Or add to `package.json`:
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Patterns follow glob syntax. Prefix with `!` to exclude. `.gitignore` patterns are respected automatically.
|
|
72
|
+
Patterns follow glob syntax. Prefix with `!` to exclude. `.gitignore` patterns are respected automatically. Binary files are excluded.
|
|
73
73
|
|
|
74
74
|
### Google Drive Upload
|
|
75
75
|
|
|
@@ -82,9 +82,9 @@ export default defineConfig({
|
|
|
82
82
|
},
|
|
83
83
|
upload: {
|
|
84
84
|
provider: "gdrive",
|
|
85
|
-
|
|
86
|
-
clientId: "...",
|
|
87
|
-
clientSecret: "...",
|
|
85
|
+
folderId: "1ABC...", // Google Drive folder ID (from URL)
|
|
86
|
+
clientId: "...",
|
|
87
|
+
clientSecret: "...",
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
90
|
```
|
|
@@ -96,25 +96,7 @@ export default defineConfig({
|
|
|
96
96
|
3. Enable the Google Drive API
|
|
97
97
|
4. Go to **Credentials** → **Create Credentials** → **OAuth client ID**
|
|
98
98
|
5. Select **Desktop app**, then copy the client ID and secret
|
|
99
|
-
|
|
100
|
-
Multiple destinations are supported via array:
|
|
101
|
-
|
|
102
|
-
```typescript
|
|
103
|
-
upload: [
|
|
104
|
-
{
|
|
105
|
-
provider: "gdrive",
|
|
106
|
-
folder: "backup1",
|
|
107
|
-
clientId: "...",
|
|
108
|
-
clientSecret: "...",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
provider: "gdrive",
|
|
112
|
-
folder: "backup2",
|
|
113
|
-
clientId: "...",
|
|
114
|
-
clientSecret: "...",
|
|
115
|
-
},
|
|
116
|
-
];
|
|
117
|
-
```
|
|
99
|
+
6. Run `npx srcpack login` to authenticate
|
|
118
100
|
|
|
119
101
|
## Output Format
|
|
120
102
|
|
|
@@ -140,10 +122,12 @@ export function utils() {
|
|
|
140
122
|
## CLI
|
|
141
123
|
|
|
142
124
|
```bash
|
|
143
|
-
npx srcpack # Bundle all, upload if
|
|
125
|
+
npx srcpack # Bundle all, upload if configured
|
|
144
126
|
npx srcpack web api # Bundle specific bundles only
|
|
145
127
|
npx srcpack --dry-run # Preview without writing files
|
|
146
|
-
npx srcpack --
|
|
128
|
+
npx srcpack --no-upload # Bundle only, skip upload
|
|
129
|
+
npx srcpack init # Interactive config setup
|
|
130
|
+
npx srcpack login # Authenticate with Google Drive
|
|
147
131
|
```
|
|
148
132
|
|
|
149
133
|
## API
|