Skip to content

Commit f44c16a

Browse files
committed
refactor: migrate to workspace monorepo
Signed-off-by: Emilien Escalle <[email protected]>
1 parent b718129 commit f44c16a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+15266
-24677
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Bug report
33
about: Create a bug report
4-
title: ''
4+
title: ""
55
labels: bug, needs triage
6-
assignees: ''
6+
assignees: ""
77
---
88

99
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
88

99
**Is your feature request related to a problem? Please describe.** A clear and

.github/dependabot.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
version: 2
22

33
updates:
4-
- package-ecosystem: 'npm'
4+
- package-ecosystem: "npm"
55
open-pull-requests-limit: 20
6-
directory: '/'
6+
directory: "/"
77
versioning-strategy: increase
88
schedule:
9-
interval: 'weekly'
9+
interval: "weekly"
1010
groups:
1111
npm-docusaurus-dependencies:
1212
patterns:
13-
- '@docusaurus/*'
14-
- 'react'
15-
- 'react-*'
16-
- '@mdx-js/react'
17-
- 'clsx'
18-
- 'prism-react-renderer'
13+
- "@docusaurus/*"
14+
- "react"
15+
- "react-*"
16+
- "@mdx-js/react"
17+
- "clsx"
18+
- "prism-react-renderer"
1919
npm-development-dependencies:
20-
dependency-type: 'development'
20+
dependency-type: "development"
2121

2222
- package-ecosystem: github-actions
2323
open-pull-requests-limit: 20
24-
directory: '/'
24+
directory: "/"
2525
schedule:
2626
interval: weekly
2727
groups:
2828
github-actions-dependencies:
2929
patterns:
30-
- '*'
30+
- "*"
3131

32-
- package-ecosystem: 'devcontainers'
32+
- package-ecosystem: "devcontainers"
3333
open-pull-requests-limit: 20
34-
directory: '/'
34+
directory: "/"
3535
schedule:
3636
interval: weekly
3737
groups:
3838
devcontainers-dependencies:
3939
patterns:
40-
- '*'
40+
- "*"
4141

42-
- package-ecosystem: 'docker'
42+
- package-ecosystem: "docker"
4343
open-pull-requests-limit: 20
44-
directory: '/'
44+
directory: "/"
4545
schedule:
46-
interval: 'weekly'
46+
interval: "weekly"
4747
groups:
4848
docker-dependencies:
4949
patterns:
50-
- '*'
50+
- "*"

.github/linters/.yaml-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
4+
ignore:
5+
- pnpm-lock.yaml
6+
7+
rules:
8+
line-length:
9+
max: 170

.github/workflows/__shared-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@b4883995e100e291a1fed68678d47a560328ed08 # 0.24.0
1717
with:
1818
linter-env: |
19-
FILTER_REGEX_EXCLUDE=lib/**/*,docs/build/**/*
19+
FILTER_REGEX_EXCLUDE=packages/theme/lib/**/*,packages/docs/build/**/*
2020
VALIDATE_JSCPD=false
2121
VALIDATE_TYPESCRIPT_ES=false
2222
VALIDATE_TYPESCRIPT_PRETTIER=false
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
build: |
3131
{
32-
"artifact": ["lib", "docs/build"]
32+
"artifact": ["packages/theme/lib", "packages/docs/build"]
3333
}
3434
3535
package-theme:
@@ -46,6 +46,7 @@ jobs:
4646
path: .
4747

4848
- name: Create package tarball
49+
working-directory: packages/theme
4950
run: |
5051
npm pack --pack-destination ${{ runner.temp }}/
5152

.github/workflows/main-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Internal - Main - Continuous Integration
33
on:
44
push:
55
branches: [main]
6-
tags: ['*']
6+
tags: ["*"]
77

88
permissions:
99
actions: read
@@ -46,9 +46,10 @@ jobs:
4646
with:
4747
name: package-tarball
4848
path: .
49+
4950
- name: Publish CLI to npm
5051
run: |
51-
npm publish hoverkraft-docusaurus-theme-*.tgz --provenance --access public --dry-run
52+
npm publish hoverkraft-docusaurus-theme-*.tgz --provenance --access public --dry-run --latest
5253
env:
5354
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5455

@@ -67,5 +68,5 @@ jobs:
6768
- id: deployment
6869
uses: hoverkraft-tech/ci-github-publish/actions/deploy/github-pages@6d9e5d48da1a80c085e8ed867d680a5e99b28217 # 0.8.0
6970
with:
70-
build-path: docs/build
71+
build-path: packages/docs/build
7172
build-artifact-name: build

.github/workflows/need-fix-to-issue.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ on:
88
inputs:
99
#checkov:skip=CKV_GHA_7: required
1010
manual-commit-ref:
11-
description: 'The SHA of the commit to get the diff for'
11+
description: "The SHA of the commit to get the diff for"
1212
required: true
1313
manual-base-ref:
14-
description:
15-
'By default, the commit entered above is compared to the one directly
16-
before it; to go back further, enter an earlier SHA here'
14+
description: "By default, the commit entered above is compared to the one directly
15+
before it; to go back further, enter an earlier SHA here"
1716
required: false
1817

1918
permissions:

.github/workflows/semantic-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Pull Request - Semantic Lint'
1+
name: "Pull Request - Semantic Lint"
22

33
on:
44
pull_request_target:

0 commit comments

Comments
 (0)