Skip to content

Commit

Permalink
docs: added aegir doc-check command to compile Typescript in document…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
maschad committed Jan 13, 2023
1 parent 9a6022b commit dba4a95
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present lint
- run: npm run --if-present dep-check
- run: npm run --if-present doc-check

test-node:
needs: check
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ dist
.coverage
package-lock.json
yarn.lock

# IDE
.DS_STORE
17 changes: 17 additions & 0 deletions doc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
/* Language and Environment */
"target": "ES2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
/* Modules */
"module": "ESNext" /* Specify what module code is generated. */,
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
"strict": true /* Enable all strict type-checking options. */,
/* Completeness */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"noImplicitAny": false,
"isolatedModules": false
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check",
"doc-check": "aegir doc-check --inputFiles doc/LIMITS.md --tsConfigPath doc/",
"prepublishOnly": "node scripts/update-version.js",
"build": "aegir build",
"docs": "aegir docs",
Expand Down Expand Up @@ -187,7 +188,7 @@
"@types/p-fifo": "^1.0.0",
"@types/varint": "^6.0.0",
"@types/xsalsa20": "^1.1.0",
"aegir": "^37.5.6",
"aegir": "^38.1.0",
"cborg": "^1.8.1",
"delay": "^5.0.0",
"execa": "^6.1.0",
Expand Down

0 comments on commit dba4a95

Please sign in to comment.