Skip to content

Commit f6e31d6

Browse files
authored
chore: Establish root package.json file (#1192)
1 parent 5a4c671 commit f6e31d6

22 files changed

+16417
-16592
lines changed

.github/workflows/pr.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Use Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
- name: Get kubectl version
2323
run: |
2424
source hack/lib/kubectl-version.sh
@@ -29,11 +29,10 @@ jobs:
2929
version: "${{ env.KUBECTL_VERSION }}"
3030
id: install
3131
- name: Run website build
32-
working-directory: website
3332
run: |
3433
export LAB_TIMES_ENABLED='true'
35-
npm install
36-
npm run build
34+
yarn install
35+
yarn workspace website build
3736
3837
build-lab:
3938
name: "Build lab"
@@ -52,27 +51,22 @@ jobs:
5251
runs-on: ubuntu-latest
5352
steps:
5453
- uses: actions/checkout@v4
54+
- name: Use Node.js
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: 20
5558
- uses: actions/setup-python@v5
5659
- name: Setup TFLint
5760
uses: terraform-linters/setup-tflint@v4
5861
- name: Setup terraform-docs
5962
uses: jaxxstorm/[email protected]
6063
with:
6164
repo: terraform-docs/terraform-docs
65+
- name: Yarn install
66+
run: |
67+
yarn install
6268
- uses: pre-commit/[email protected]
6369

64-
spell-check:
65-
name: "Spell checker"
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: actions/checkout@v4
69-
- name: Use Node.js
70-
uses: actions/setup-node@v4
71-
with:
72-
node-version: 18
73-
- run: |
74-
npx cspell lint "website/docs/**/*.md"
75-
7670
terraform-validate:
7771
name: "Validate Terraform"
7872
runs-on: ubuntu-latest

.github/workflows/publish-content.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Use Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
- name: Get kubectl version
2525
run: |
2626
source hack/lib/kubectl-version.sh

.github/workflows/publish-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Use Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
- name: Get kubectl version
2525
run: |
2626
source hack/lib/kubectl-version.sh

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Use Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18
24+
node-version: 20
2525
- name: Release
2626
working-directory: releaser
2727
env:

.gitignore

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,15 @@ cdk.out
3636
node_modules
3737
test-output
3838

39-
terraform-resources
39+
terraform-resources
40+
41+
website/package-lock.json
42+
43+
# Yarn files
44+
.pnp.*
45+
.yarn/*
46+
!.yarn/patches
47+
!.yarn/plugins
48+
!.yarn/releases
49+
!.yarn/sdks
50+
!.yarn/versions

.pre-commit-config.yaml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,11 @@ repos:
33
rev: v1.77.0
44
hooks:
55
- id: terraform_fmt
6-
#- id: terraform_validate
7-
- id: terraform_docs
8-
args:
9-
- "--args=--lockfile=false"
10-
- id: terraform_tflint
11-
args:
12-
- "--args=--only=terraform_deprecated_interpolation"
13-
- "--args=--only=terraform_deprecated_index"
14-
- "--args=--only=terraform_unused_declarations"
15-
- "--args=--only=terraform_comment_syntax"
16-
- "--args=--only=terraform_documented_outputs"
17-
- "--args=--only=terraform_documented_variables"
18-
- "--args=--only=terraform_typed_variables"
19-
- "--args=--only=terraform_module_pinned_source"
20-
- "--args=--only=terraform_naming_convention"
21-
- "--args=--only=terraform_workspace_remote"
226

23-
- repo: https://github.com/pre-commit/mirrors-prettier
24-
rev: "v3.1.0"
7+
- repo: local
258
hooks:
26-
- id: prettier
27-
28-
- repo: https://github.com/tcort/markdown-link-check
29-
rev: "v3.12.1"
30-
hooks:
31-
- id: markdown-link-check
32-
args: [-q, -c, link-check-config.json]
33-
34-
- repo: https://github.com/igorshubovych/markdownlint-cli
35-
rev: v0.41.0
36-
hooks:
37-
- id: markdownlint
38-
files: ^website/docs
39-
args: [-r, mdlint/aws-arn-rule.js]
9+
- id: lint
10+
language: node
11+
name: Run linting
12+
entry: yarn lint:staged
13+
stage: [commit]

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.yarn/releases/yarn-4.5.3.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.5.3.cjs

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ glob='-'
77

88
.PHONY: install
99
install:
10-
cd website; npm install
10+
yarn install
1111

1212
.PHONY: serve
1313
serve: install
14-
bash hack/serve.sh
14+
yarn serve
1515

1616
.PHONY: tf-fmt
1717
tf-fmt:
@@ -40,3 +40,7 @@ create-infrastructure:
4040
.PHONY: destroy-infrastructure
4141
destroy-infrastructure:
4242
bash hack/destroy-infrastructure.sh $(environment)
43+
44+
.PHONY: lint
45+
lint:
46+
yarn lint

0 commit comments

Comments
 (0)