-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): octo docs website deployed.
- Loading branch information
1 parent
3930418
commit bba42ab
Showing
10 changed files
with
6,508 additions
and
3,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
(async () => { | ||
const { App, LocalStateProvider } = await import('@quadnix/octo'); | ||
const { OctoAws, RegionId, S3StaticWebsiteService } = await import('@quadnix/octo-aws-cdk'); | ||
const { join } = await import('path'); | ||
|
||
const BUCKET_NAME = 'octo.quadnix.com'; | ||
const websiteSourcePath = join(__dirname, '..', 'build'); | ||
|
||
const octoAws = new OctoAws(); | ||
await octoAws.initialize(new LocalStateProvider(__dirname)); | ||
|
||
// Add website. | ||
const app = new App('octo-docs'); | ||
const service = new S3StaticWebsiteService(RegionId.AWS_US_EAST_1A, BUCKET_NAME); | ||
app.addService(service); | ||
|
||
const diffs1 = await octoAws.diff(app); | ||
const generator1 = await octoAws.beginTransaction(diffs1); | ||
|
||
const modelTransactionResult1 = await generator1.next(); | ||
await octoAws.commitTransaction(app, modelTransactionResult1.value); | ||
|
||
// Add files to website. | ||
await service.addSource(`${websiteSourcePath}`); | ||
|
||
const diffs2 = await octoAws.diff(app); | ||
const generator2 = await octoAws.beginTransaction(diffs2); | ||
|
||
const modelTransactionResult2 = await generator2.next(); | ||
await octoAws.commitTransaction(app, modelTransactionResult2.value); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"anchors":[],"dependencies":[{"behaviors":[{"forAction":"delete","onAction":"delete","onField":"name","toField":"serviceId"}],"from":"app=octo-docs","relationship":{"onField":"name","toField":"serviceId","type":"parent"},"to":"service=octo.quadnix.com-s3-static-website,app=octo-docs"},{"behaviors":[{"forAction":"add","onAction":"add","onField":"serviceId","toField":"name"},{"forAction":"update","onAction":"add","onField":"serviceId","toField":"name"}],"from":"service=octo.quadnix.com-s3-static-website,app=octo-docs","relationship":{"onField":"serviceId","toField":"name","type":"child"},"to":"app=octo-docs"}],"models":{"app=octo-docs":{"className":"App","model":{"name":"octo-docs"}},"service=octo.quadnix.com-s3-static-website,app=octo-docs":{"className":"S3StaticWebsiteService","model":{"awsRegionId":"us-east-1","bucketName":"octo.quadnix.com","excludePaths":[],"serviceId":"octo.quadnix.com-s3-static-website","sourcePaths":[{"directoryPath":"/Users/rash/Workspace/@quadnix/octo/apps/octo-docs/build","isDirectory":true,"remotePath":"","subDirectoryOrFilePath":""}]}}},"modules":[],"overlays":[],"version":"0.0.1"} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"dependencies":[],"resources":{"bucket-octo.quadnix.com":{"className":"S3Website","resource":{"properties":{"awsRegionId":"us-east-1","Bucket":"octo.quadnix.com","ErrorDocument":"error.html","IndexDocument":"index.html"},"resourceId":"bucket-octo.quadnix.com","response":{"awsRegionId":"us-east-1"}}}},"version":"0.0.1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"sharedResources":{},"version":"0.0.1"} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.