@stacksjs/ts-cloud-types 0.1.2 → 0.1.6
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 +13 -13
- package/package.json +10 -1
- package/src/index.ts +0 -2759
- package/tsconfig.json +0 -12
- package/tsconfig.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] -->
|
|
7
7
|
<!-- [![Codecov][codecov-src]][codecov-href] -->
|
|
8
8
|
|
|
9
|
-
# ts-cloud
|
|
9
|
+
# @stacksjs/ts-cloud
|
|
10
10
|
|
|
11
11
|
> Zero-dependency AWS infrastructure as TypeScript. Deploy production-ready cloud infrastructure without AWS SDK or CLI.
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
14
14
|
|
|
15
|
-
ts-cloud is a modern infrastructure-as-code framework that lets you define AWS infrastructure using TypeScript configuration files. Unlike AWS CDK or Terraform, ts-cloud:
|
|
15
|
+
@stacksjs/ts-cloud is a modern infrastructure-as-code framework that lets you define AWS infrastructure using TypeScript configuration files. Unlike AWS CDK or Terraform, @stacksjs/ts-cloud:
|
|
16
16
|
|
|
17
17
|
- **Zero AWS Dependencies** - No AWS SDK, no AWS CLI. Direct AWS API calls only.
|
|
18
18
|
- **Type-Safe Configuration** - Full TypeScript types for all AWS resources
|
|
@@ -69,7 +69,7 @@ No SDK, no CLI - pure AWS Signature V4 API calls:
|
|
|
69
69
|
### Installation
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
bun add ts-cloud
|
|
72
|
+
bun add @stacksjs/ts-cloud
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Your First Deployment
|
|
@@ -77,7 +77,7 @@ bun add ts-cloud
|
|
|
77
77
|
Create a `cloud.config.ts`:
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
|
-
import { createStaticSitePreset } from 'ts-cloud/presets'
|
|
80
|
+
import { createStaticSitePreset } from '@stacksjs/ts-cloud/presets'
|
|
81
81
|
|
|
82
82
|
export default createStaticSitePreset({
|
|
83
83
|
name: 'My Website',
|
|
@@ -104,7 +104,7 @@ That's it! You now have:
|
|
|
104
104
|
#### Full-Stack Application
|
|
105
105
|
|
|
106
106
|
```typescript
|
|
107
|
-
import { createFullStackAppPreset } from 'ts-cloud/presets'
|
|
107
|
+
import { createFullStackAppPreset } from '@stacksjs/ts-cloud/presets'
|
|
108
108
|
|
|
109
109
|
export default createFullStackAppPreset({
|
|
110
110
|
name: 'My App',
|
|
@@ -125,7 +125,7 @@ Includes:
|
|
|
125
125
|
#### Serverless API
|
|
126
126
|
|
|
127
127
|
```typescript
|
|
128
|
-
import { createApiBackendPreset } from 'ts-cloud/presets'
|
|
128
|
+
import { createApiBackendPreset } from '@stacksjs/ts-cloud/presets'
|
|
129
129
|
|
|
130
130
|
export default createApiBackendPreset({
|
|
131
131
|
name: 'My API',
|
|
@@ -148,7 +148,7 @@ Includes:
|
|
|
148
148
|
You can extend any preset with custom configuration:
|
|
149
149
|
|
|
150
150
|
```typescript
|
|
151
|
-
import { createNodeJsServerPreset, extendPreset } from 'ts-cloud/presets'
|
|
151
|
+
import { createNodeJsServerPreset, extendPreset } from '@stacksjs/ts-cloud/presets'
|
|
152
152
|
|
|
153
153
|
export default extendPreset(
|
|
154
154
|
createNodeJsServerPreset({
|
|
@@ -175,7 +175,7 @@ export default extendPreset(
|
|
|
175
175
|
Combine multiple presets:
|
|
176
176
|
|
|
177
177
|
```typescript
|
|
178
|
-
import { composePresets, createStaticSitePreset, createApiBackendPreset } from 'ts-cloud/presets'
|
|
178
|
+
import { composePresets, createStaticSitePreset, createApiBackendPreset } from '@stacksjs/ts-cloud/presets'
|
|
179
179
|
|
|
180
180
|
export default composePresets(
|
|
181
181
|
createStaticSitePreset({ name: 'Frontend', slug: 'frontend', domain: 'example.com' }),
|
|
@@ -198,7 +198,7 @@ export default composePresets(
|
|
|
198
198
|
Generate templates programmatically:
|
|
199
199
|
|
|
200
200
|
```typescript
|
|
201
|
-
import { CloudFormationBuilder } from 'ts-cloud/cloudformation'
|
|
201
|
+
import { CloudFormationBuilder } from '@stacksjs/ts-cloud/cloudformation'
|
|
202
202
|
|
|
203
203
|
const builder = new CloudFormationBuilder(config)
|
|
204
204
|
const template = builder.build()
|
|
@@ -211,7 +211,7 @@ console.log(JSON.stringify(template, null, 2))
|
|
|
211
211
|
Use the AWS clients directly:
|
|
212
212
|
|
|
213
213
|
```typescript
|
|
214
|
-
import { CloudFormationClient, S3Client, CloudFrontClient } from 'ts-cloud/aws'
|
|
214
|
+
import { CloudFormationClient, S3Client, CloudFrontClient } from '@stacksjs/ts-cloud/aws'
|
|
215
215
|
|
|
216
216
|
// CloudFormation
|
|
217
217
|
const cfn = new CloudFormationClient('us-east-1')
|
|
@@ -264,7 +264,7 @@ bun run typecheck
|
|
|
264
264
|
|
|
265
265
|
### No Dependencies
|
|
266
266
|
|
|
267
|
-
ts-cloud uses **zero external dependencies** for AWS operations:
|
|
267
|
+
@stacksjs/ts-cloud uses **zero external dependencies** for AWS operations:
|
|
268
268
|
|
|
269
269
|
- **AWS Signature V4** - Manual request signing for authentication
|
|
270
270
|
- **Direct HTTPS** - Native `fetch()` for API calls
|
|
@@ -312,8 +312,8 @@ The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.
|
|
|
312
312
|
Made with 💙
|
|
313
313
|
|
|
314
314
|
<!-- Badges -->
|
|
315
|
-
[npm-version-src]: https://img.shields.io/npm/v/ts-cloud?style=flat-square
|
|
316
|
-
[npm-version-href]: https://npmjs.com/package/ts-cloud
|
|
315
|
+
[npm-version-src]: https://img.shields.io/npm/v/@stacksjs/ts-cloud?style=flat-square
|
|
316
|
+
[npm-version-href]: https://npmjs.com/package/@stacksjs/ts-cloud
|
|
317
317
|
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/ts-cloud/ci.yml?style=flat-square&branch=main
|
|
318
318
|
[github-actions-href]: https://github.com/stacksjs/ts-cloud/actions?query=workflow%3Aci
|
|
319
319
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ts-cloud-types",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript types for ts-cloud",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/stacksjs/ts-cloud#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/stacksjs/ts-cloud.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/stacksjs/ts-cloud/issues"
|
|
15
|
+
},
|
|
8
16
|
"exports": {
|
|
9
17
|
".": {
|
|
10
18
|
"types": "./dist/index.d.ts",
|
|
@@ -19,6 +27,7 @@
|
|
|
19
27
|
],
|
|
20
28
|
"scripts": {
|
|
21
29
|
"build": "bun build src/index.ts --outdir dist --target bun",
|
|
30
|
+
"prepublishOnly": "bun --bun run build",
|
|
22
31
|
"typecheck": "tsc --noEmit"
|
|
23
32
|
},
|
|
24
33
|
"devDependencies": {
|