@stacksjs/dns 0.56.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2022 Open Web Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # Stacks Domains
2
+
3
+ Easily manage your domains.
4
+
5
+ ## โ˜˜๏ธ Features
6
+
7
+ - DNS management
8
+ - Domain management
9
+ - Custom email addresses
10
+ - SSL management
11
+
12
+ ## ๐Ÿค– Usage
13
+
14
+ ```bash
15
+ pnpm i -D @stacksjs/dns
16
+ ```
17
+
18
+ Now, you can use it in your project:
19
+
20
+ ```js
21
+ import { domains } from '@stacksjs/dns'
22
+
23
+ // wip - coming soon
24
+ ```
25
+
26
+ Learn more in the docs.
27
+
28
+ ## ๐Ÿงช Testing
29
+
30
+ ```bash
31
+ pnpm test
32
+ ```
33
+
34
+ ## ๐Ÿ“ˆ Changelog
35
+
36
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
37
+
38
+ ## ๐Ÿšœ Contributing
39
+
40
+ Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
41
+
42
+ ## ๐Ÿ Community
43
+
44
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
45
+
46
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
47
+
48
+ For casual chit-chat with others using this package:
49
+
50
+ [Join the Stacks Discord Server](https://discord.ow3.org)
51
+
52
+ ## ๐Ÿ“„ License
53
+
54
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
55
+
56
+ Made with โค๏ธ
@@ -0,0 +1,7 @@
1
+ import { NestedStack, Construct, NestedStackProps } from '@aws-cdk/core';
2
+
3
+ declare class DnsStack extends NestedStack {
4
+ constructor(scope: Construct, id: string, props?: NestedStackProps);
5
+ }
6
+
7
+ export { DnsStack };
package/dist/index.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import { NestedStack } from '@aws-cdk/core';
2
+ import * as route53 from '@aws-cdk/aws-route53';
3
+ import { app } from '@stacksjs/config';
4
+
5
+ class DnsStack extends NestedStack {
6
+ constructor(scope, id, props) {
7
+ super(scope, id, props);
8
+ if (!app.url)
9
+ throw new Error("./config app.url is not defined");
10
+ new route53.PublicHostedZone(this, "HostedZone", {
11
+ zoneName: app.url
12
+ });
13
+ }
14
+ }
15
+
16
+ export { DnsStack };
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@stacksjs/dns",
3
+ "type": "module",
4
+ "version": "0.56.3",
5
+ "packageManager": "pnpm@8.6.5",
6
+ "description": "Easily manage your DNS.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/dns#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/dns"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "dns",
21
+ "domain",
22
+ "management",
23
+ "custom emails",
24
+ "stacks",
25
+ "aws",
26
+ "route53",
27
+ "framework",
28
+ "typescript",
29
+ "javascript"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.mjs"
35
+ }
36
+ },
37
+ "contributors": [
38
+ "Chris Breuer <chris@ow3.org>"
39
+ ],
40
+ "files": [
41
+ "dist",
42
+ "README.md"
43
+ ],
44
+ "dependencies": {
45
+ "@aws-cdk/aws-route53": "^1.203.0"
46
+ },
47
+ "devDependencies": {
48
+ "@stacksjs/development": "0.56.3"
49
+ },
50
+ "scripts": {
51
+ "build": "unbuild",
52
+ "dev": "unbuild --stub",
53
+ "typecheck": "tsc --noEmit"
54
+ }
55
+ }