Skip to content

Commit

Permalink
Upgraded dependencies (#130)
Browse files Browse the repository at this point in the history
* updated dependencies

* updated docs
  • Loading branch information
lukeshay authored Apr 9, 2024
1 parent 48af5d1 commit 48e4410
Show file tree
Hide file tree
Showing 17 changed files with 69 additions and 123 deletions.
7 changes: 7 additions & 0 deletions .changeset/eighty-kangaroos-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@astro-aws/constructs": patch
"@astro-aws/adapter": patch
"@astro-aws/scripts": patch
---

Updated dependencies
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ jobs:
uses: ./.github/workflows/deploy.yml
with:
environment_name: development
environment_url: https://static.dev.astro-aws.org/
stack_environment: DEV
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
uses: ./.github/workflows/deploy.yml
with:
environment_name: production
environment_url: https://astro-aws.org/
environment_url: https://www.docs.astro-aws.org/
stack_environment: PROD
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
cmd:
- build
- test
- lint
- prettier
- format
- synth
steps:
- uses: actions/checkout@v3
Expand Down
15 changes: 4 additions & 11 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
"files": [
"dist"
],
"eslintConfig": {
"extends": [
"../../.eslintrc.cjs"
],
"root": false
},
"scripts": {
"astro": "astro",
"build": "pnpm run clean && ./scripts/copy-package-readmes.sh && astro build",
Expand All @@ -30,17 +24,16 @@
"start": "astro dev"
},
"dependencies": {
"@astrojs/starlight": "^0.21.1",
"astro": "^4.4.13",
"sharp": "^0.33.2"
"@astrojs/starlight": "^0.21.5",
"astro": "^4.5.17",
"sharp": "^0.33.3"
},
"devDependencies": {
"@astro-aws/adapter": "workspace:^",
"@types/node": "^18.18.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"starlight-links-validator": "^0.6.0"
"starlight-links-validator": "^0.7.1"
},
"engines": {
"node": "18.x || 20.x"
Expand Down
25 changes: 25 additions & 0 deletions apps/docs/src/content/docs/guides/04-advanced.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Advanced
description: Describes advanced usages of Astro AWS.
---

## Configuring Constructs

All constructs can be configured using the `cdk` object. The following example shows how to configure the `AstroAWS` construct.

```ts ins={11}
import { Stack } from "aws-cdk-lib/core"

export interface HelloCdkStackProps extends StackProps {}

export class HelloCdkStack extends Stack {
public constructor(scope: Construct, id: string, props: HelloCdkStackProps) {
super(scope, id, props)

new AstroAWS(this, "AstroAWS", {
websiteDir: "../my-astro-project",
cdk: {},
})
}
}
```
2 changes: 2 additions & 0 deletions apps/docs/src/content/docs/reference/packages/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ export default defineConfig({

### Edge Usage

> **NOTE:** Environment variables are not supported in edge mode. Due to the limitations of AWS Lambda@Edge.
1. Install the package.

```
Expand Down
20 changes: 6 additions & 14 deletions apps/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,21 @@
"deploy": "./scripts/deploy.sh",
"synth": "cdk synth"
},
"eslintConfig": {
"extends": [
"../../.eslintrc.cjs"
],
"root": false
},
"dependencies": {
"@astro-aws/constructs": "workspace:^",
"@astro-aws/docs": "workspace:^",
"@aws-sdk/client-acm": "^3.525.0",
"aws-cdk": "^2.131.0",
"aws-cdk-lib": "^2.131.0",
"@aws-sdk/client-acm": "^3.549.0",
"aws-cdk": "^2.136.0",
"aws-cdk-lib": "^2.136.0",
"constructs": "^10.3.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.2",
"typescript": "^5.4.4",
"workspace-tools": "^0.36.4"
},
"devDependencies": {
"@astro-aws/scripts": "workspace:^",
"@types/aws-lambda": "^8.10.136",
"@types/node": "^18.18.4",
"eslint-config-get-off-my-lawn": "^7.2.0"
"@types/aws-lambda": "^8.10.137",
"@types/node": "^18.18.4"
},
"engines": {
"node": "18.x || 20.x"
Expand Down
Binary file modified bun.lockb
Binary file not shown.
18 changes: 6 additions & 12 deletions examples/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
"files": [
"dist"
],
"eslintConfig": {
"extends": [
"../../.eslintrc.cjs"
],
"root": false
},
"scripts": {
"build:edge": "MODE=edge astro build",
"build:ssr": "MODE=ssr astro build",
Expand All @@ -35,21 +29,21 @@
"dependencies": {
"@astrojs/tailwind": "^5.1.0",
"@faker-js/faker": "^8.4.1",
"@middy/core": "^5.2.6",
"astro": "^4.4.13",
"daisyui": "^4.7.2",
"@middy/core": "^5.3.2",
"astro": "^4.5.17",
"daisyui": "^4.10.1",
"http-status-codes": "^2.3.0",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.3"
},
"devDependencies": {
"@astro-aws/adapter": "workspace:^",
"@astrojs/check": "^0.5.6",
"@astrojs/check": "^0.5.10",
"@types/node": "^18.18.0",
"eslint": "^8.57.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.2"
"typescript": "^5.4.4"
},
"engines": {
"node": "18.x || 20.x"
Expand Down
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
"deploy:one": "turbo run deploy --filter",
"dev": "turbo run dev",
"dev:one": "turbo run dev --filter",
"lint": "turbo run build && eslint .",
"lint:fix": "bun run lint --fix",
"prettier": "prettier --ignore-unknown --no-error-on-unmatched-pattern --check . '!**/*.astro'",
"prettier:fix": "bun run prettier --write",
"format": "prettier --ignore-unknown --no-error-on-unmatched-pattern --write --check . '!**/*.astro'",
"release:cut": "git add . && git commit -m 'new release' && bun run deploy:one infra -- PROD && bun run changeset publish && git push && git push --follow-tags",
"release:prepare": "bun run build && bun run synth && bun run changeset version && bun run prettier:fix",
"synth": "turbo run synth",
Expand All @@ -39,15 +36,10 @@
"@changesets/changelog-git": "^0.2.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@lshay/eslint-config": "^0.3.5",
"@lshay/prettier-config": "^0.7.0",
"@rushstack/eslint-patch": "^1.7.2",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.5",
"turbo": "^1.12.5",
"typescript": "^5.4.2"
"turbo": "^1.13.2",
"typescript": "^5.4.4"
},
"engines": {
"node": "18.x || 20.x"
Expand Down
2 changes: 2 additions & 0 deletions packages/adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export default defineConfig({

### Edge Usage

> **NOTE:** Environment variables are not supported in edge mode. Due to the limitations of AWS Lambda@Edge.
1. Install the package.

```
Expand Down
21 changes: 7 additions & 14 deletions packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,25 @@
"build": "scripts build",
"test": "vitest run"
},
"eslintConfig": {
"extends": [
"../../.eslintrc.cjs"
],
"root": false
},
"dependencies": {
"@astrojs/webapi": "^2.2.0",
"@middy/core": "^5.2.6",
"esbuild": "^0.20.1",
"@middy/core": "^5.3.2",
"esbuild": "^0.20.2",
"flatted": "^3.3.1",
"http-status-codes": "^2.3.0",
"merge-anything": "^5.1.7",
"pino": "^8.19.0"
"pino": "^8.20.0"
},
"devDependencies": {
"@astro-aws/scripts": "workspace:^",
"@faker-js/faker": "^8.4.1",
"@types/aws-lambda": "^8.10.136",
"@types/aws-lambda": "^8.10.137",
"@types/node": "^18.18.4",
"astro": "^4.4.13",
"astro": "^4.5.17",
"aws-lambda": "^1.0.7",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.2",
"vitest": "^1.3.1"
"typescript": "^5.4.4",
"vitest": "^1.4.0"
},
"peerDependencies": {
"astro": ">=4"
Expand Down
11 changes: 2 additions & 9 deletions packages/constructs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,13 @@
"scripts": {
"build": "scripts build"
},
"eslintConfig": {
"extends": [
"../../.eslintrc.cjs"
],
"root": false
},
"devDependencies": {
"@astro-aws/scripts": "workspace:^",
"@types/node": "^18.18.4",
"aws-cdk-lib": "^2.131.0",
"aws-cdk-lib": "^2.136.0",
"constructs": "^10.3.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.2"
"typescript": "^5.4.4"
},
"peerDependencies": {
"aws-cdk-lib": "^2.94.0",
Expand Down
6 changes: 3 additions & 3 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"dependencies": {
"commander": "^12.0.0",
"cosmiconfig": "^9.0.0",
"esbuild": "^0.20.1",
"esbuild": "^0.20.2",
"globby": "^14.0.1"
},
"devDependencies": {
"@types/node": "^18.18.4",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tsx": "^4.7.1",
"typescript": "^5.4.2"
"tsx": "^4.7.2",
"typescript": "^5.4.4"
},
"peerDependencies": {
"typescript": "^5.2.2"
Expand Down

0 comments on commit 48e4410

Please sign in to comment.