@shipstatic/ship 0.1.7 → 0.1.8
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 +4 -4
- package/dist/browser.js +17 -25
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +25 -18
- package/dist/cli.cjs.map +1 -1
- package/dist/completions/ship.bash +30 -0
- package/dist/completions/ship.fish +24 -0
- package/dist/completions/ship.zsh +46 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -21
- package/dist/index.d.ts +26 -21
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +13 -10
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ const ship = new Ship({
|
|
|
41
41
|
apiKey: 'ship-your-64-char-hex-string' // API key: ship- prefix + 64-char hex (69 chars total)
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// Deploy
|
|
44
|
+
// Deploy project - SDK automatically fetches platform configuration
|
|
45
45
|
const result = await ship.deployments.create(['./dist'], {
|
|
46
46
|
onProgress: (progress) => console.log(`${progress}%`)
|
|
47
47
|
});
|
|
@@ -59,7 +59,7 @@ ship ./dist
|
|
|
59
59
|
ship
|
|
60
60
|
|
|
61
61
|
# Explicit commands
|
|
62
|
-
ship deploy ./build # Deploy
|
|
62
|
+
ship deploy ./build # Deploy project from path
|
|
63
63
|
ship list # List deployments
|
|
64
64
|
ship get abc123 # Get deployment details
|
|
65
65
|
ship remove abc123 # Remove deployment
|
|
@@ -122,7 +122,7 @@ interface ShipOptions {
|
|
|
122
122
|
### Deployments Resource
|
|
123
123
|
|
|
124
124
|
```typescript
|
|
125
|
-
// Deploy
|
|
125
|
+
// Deploy project
|
|
126
126
|
await ship.deployments.create(input, options?)
|
|
127
127
|
|
|
128
128
|
// List deployments
|
|
@@ -176,7 +176,7 @@ const ship = new Ship({
|
|
|
176
176
|
apiKey: process.env.SHIP_API_KEY // ship-abc123...
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
// Deploy
|
|
179
|
+
// Deploy project and directories
|
|
180
180
|
const result = await ship.deployments.create([
|
|
181
181
|
'./dist/index.html',
|
|
182
182
|
'./dist/assets',
|