Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
IIIMADDINIII authored Jul 3, 2024
2 parents b6e7b7a + 9a64966 commit 5126e6b
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
creds: ${{ secrets.GH_APP_CREDS }}

- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: true
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: semantic-pull-request
uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e # tag: v5
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # tag: v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ packages/plugin/webpack/test/fixtures/apps/native-modules/package-lock.json
packages/plugin/fuses/test/fixture/app
.links
reports
packages/**/typedoc.json
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ packages/*/*/index.d.ts
packages/*/*/index.ts
packages/*/*/README.md
packages/*/*/tsconfig.json
packages/*/*/typedoc.json
packages/api/core/test/fixture/bad_external_forge_config/bad.js
packages/plugin/webpack/test/**/.webpack
.links
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"build": "tsc -b packages",
"build:watch": "yarn build --watch",
"postbuild": "ts-node tools/test-dist",
"docs": "yarn build && yarn docs:generate",
"docs:generate": "yarn docs:plugin && node --max-old-space-size=16384 -r ts-node/register ./tools/gen-docs.ts",
"docs:plugin": "cd ./tools/doc-plugin && yarn build",
"docs": "yarn build && npx typedoc",
"lerna:publish": "lerna publish --force-publish --conventional-commits --no-changelog --exact",
"lint:js": "prettier --check . && eslint .",
"lint:markdown": "electron-markdownlint \"**/*.md\"",
Expand Down Expand Up @@ -89,7 +87,6 @@
"devDependencies": {
"@electron/fuses": ">=1.0.0",
"@electron/lint-roller": "1.10.1",
"@knodes/typedoc-plugin-monorepo-readmes": "0.22.5",
"@malept/eslint-config": "^2.0.0",
"@types/chai": "^4.2.12",
"@types/chai-as-promised": "^7.1.2",
Expand Down Expand Up @@ -145,9 +142,7 @@
"sinon-chai": "^3.6.0",
"syncpack": "^8.4.11",
"ts-node": "^10.0.0",
"typedoc": "^0.22.15",
"typedoc-plugin-missing-exports": "^1.0.0",
"typedoc-plugin-rename-defaults": "^0.6.4",
"typedoc": "0.25.13",
"typescript": "^4.6.3",
"xvfb-maybe": "^0.2.1",
"yaml-hook": "^1.0.0"
Expand Down
58 changes: 0 additions & 58 deletions tools/gen-docs.ts

This file was deleted.

14 changes: 14 additions & 0 deletions tools/gen-ts-glue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function convertMainToSrc(main: string): string {
}

(async () => {
const baseTypedocJson = path.resolve(__dirname, '../typedoc.base.json');
const pkgs = await getPackageInfo();

// Run each package in parallel
Expand All @@ -56,6 +57,19 @@ function convertMainToSrc(main: string): string {
// Write the facade entry-point file
const importTarget = './' + srcMain.replace(/\.ts$/, '');
const facadeFilePath = path.resolve(pkg.path, 'index.ts');
const typedocJsonPath = path.resolve(pkg.path, 'typedoc.json');
await fs.writeFile(
typedocJsonPath,
JSON.stringify(
{
$schema: 'https://typedoc.org/schema.json',
extends: [baseTypedocJson],
entryPoints: [srcMain],
},
null,
2
)
);
let facadeFileContents =
'// ⚠️ AUTOGENERATED ⚠️ AUTOGENERATED ⚠️ AUTOGENERATED ⚠️\n' +
'// This file was automatically generated by `tools/gen-ts-glue.ts`. Do not modify directly if you want to keep your changes.\n' +
Expand Down
4 changes: 4 additions & 0 deletions typedoc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://typedoc.org/schema.json",
"excludeInternal": true
}
5 changes: 5 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPointStrategy": "packages",
"entryPoints": ["packages/api/core", "packages/maker/*", "packages/plugin/*", "packages/plugin/*", "packages/publisher/*", "packages/utils/types"]
}
Loading

0 comments on commit 5126e6b

Please sign in to comment.