|
| 1 | +diff --git a/.circleci/config.yml b/.circleci/config.yml |
| 2 | +index 0f9cbca..aec2d6b 100644 |
| 3 | +--- a/.circleci/config.yml |
| 4 | ++++ b/.circleci/config.yml |
| 5 | +@@ -69,6 +69,21 @@ jobs: |
| 6 | + name: Build |
| 7 | + command: yarn build |
| 8 | + |
| 9 | ++ generate-docs: |
| 10 | ++ docker: |
| 11 | ++ - image: cimg/node:<< pipeline.parameters.node-image-tag >> |
| 12 | ++ resource_class: << pipeline.parameters.resource-class >> |
| 13 | ++ steps: |
| 14 | ++ - checkout |
| 15 | ++ - install-yarn |
| 16 | ++ - install-dependencies |
| 17 | ++ - run: |
| 18 | ++ name: Build |
| 19 | ++ command: yarn build |
| 20 | ++ - run: |
| 21 | ++ name: Generate Docs |
| 22 | ++ command: yarn docs:all |
| 23 | ++ |
| 24 | + run-example: |
| 25 | + docker: |
| 26 | + - image: cimg/node:<< pipeline.parameters.node-image-tag >> |
| 27 | +@@ -90,4 +105,5 @@ workflows: |
| 28 | + - lint |
| 29 | + - build |
| 30 | + - coverage |
| 31 | ++ - generate-docs |
| 32 | + - run-example |
| 33 | +diff --git a/.gitignore b/.gitignore |
| 34 | +index 2680f21..50804b0 100644 |
| 35 | +--- a/.gitignore |
| 36 | ++++ b/.gitignore |
| 37 | +@@ -27,3 +27,6 @@ package-lock.json |
| 38 | + !.yarn/versions |
| 39 | + #!.yarn/cache |
| 40 | + .pnp.* |
| 41 | ++ |
| 42 | ++# Typedoc output |
| 43 | ++doc/ |
| 44 | +\ No newline at end of file |
| 45 | +diff --git a/package.json b/package.json |
| 46 | +index c9a8d1c..a986c3c 100644 |
| 47 | +--- a/package.json |
| 48 | ++++ b/package.json |
| 49 | +@@ -19,6 +19,9 @@ |
| 50 | + "example": "yarn workspace @evolvedbinary/lwdita-xdita run example", |
| 51 | + "test": "mocha", |
| 52 | + "test:watch": "mocha -w", |
| 53 | ++ "docs:ast": "typedoc --options typedoc.config.mjs --entryPoints packages/lwdita-ast/src/index.ts --out doc/ast", |
| 54 | ++ "docs:xdita": "typedoc --options typedoc.config.mjs --entryPoints packages/lwdita-xdita/src/index.ts --out doc/xdita", |
| 55 | ++ "docs:all": "rimraf doc && yarn docs:ast && yarn docs:xdita", |
| 56 | + "lint": "eslint", |
| 57 | + "coverage": "rimraf coverage && nyc yarn mocha", |
| 58 | + "coveralls": "nyc --reporter=text-lcov report | coveralls" |
| 59 | +@@ -62,6 +65,7 @@ |
| 60 | + "nodemon": "^3.1.10", |
| 61 | + "nyc": "^17.1.0", |
| 62 | + "rimraf": "^6.1.0", |
| 63 | ++ "typedoc": "^0.28.14", |
| 64 | + "typescript": "5.9.3", |
| 65 | + "typescript-eslint": "^8.46.2" |
| 66 | + }, |
| 67 | +diff --git a/tsconfig.json b/tsconfig.json |
| 68 | +index 2614f00..50d46b6 100644 |
| 69 | +--- a/tsconfig.json |
| 70 | ++++ b/tsconfig.json |
| 71 | +@@ -1,6 +1,6 @@ |
| 72 | + { |
| 73 | + "extends": "@tsconfig/recommended/tsconfig.json", |
| 74 | +- |
| 75 | ++ "exclude": ["**/test/**", "**/dist/**", "node_modules", "eslint.config.mts"], |
| 76 | + // overrides recommended |
| 77 | + "compilerOptions": { |
| 78 | + "skipLibCheck": false, /* Do NOT skip type checking of declaration files. */ |
| 79 | +@@ -9,7 +9,6 @@ |
| 80 | + "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 81 | + "noEmit": false, /* NOTE(AR) just making it explicit that we are using tsc (and not another tool) to emit compiled JavaScript */ |
| 82 | + "moduleResolution": "node10", /* NOTE(AR) just making it explicit that this is the tsc compilation strategy for module resolution that we are currently using */ |
| 83 | +- "rootDir": "src", |
| 84 | + "outDir": "dist", /* Redirect output structure to the `dist/` directory. */ |
| 85 | + }, |
| 86 | + } |
0 commit comments