Skip to content

Commit

Permalink
feat(nxdoc): scaffold plugin + generate-docs v1
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 21, 2021
1 parent bddc5b5 commit 80b0368
Show file tree
Hide file tree
Showing 33 changed files with 280 additions and 17,135 deletions.
11 changes: 10 additions & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
"scope-enum": [
1,
"always",
["repo", "dotnet", "core", "utils", "typescript", "ci", "release"]
[
"repo",
"dotnet",
"core",
"utils",
"typescript",
"ci",
"release",
"nxdoc"
]
],
"type-enum": [1, "always", ["test", "docs", "chore", "feat", "fix"]]
}
Expand Down
1 change: 1 addition & 0 deletions docs/nxdoc/executors/generate-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# generate-docs
1 change: 1 addition & 0 deletions docs/nxdoc/generators/generate-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# generate-docs
1 change: 1 addition & 0 deletions docs/nxdoc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nxdoc
14 changes: 14 additions & 0 deletions e2e/nxdoc-e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
displayName: 'nxdoc-e2e',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
transform: {
'^.+\\.[tj]s$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/e2e\nxdoc-e2e',
};
6 changes: 6 additions & 0 deletions e2e/nxdoc-e2e/tests/nxdoc.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('nxdoc e2e', () => {
it('should have a test', async (done) => {
expect(true).toBeTruthy();
done();
});
});
13 changes: 13 additions & 0 deletions e2e/nxdoc-e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.e2e.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
9 changes: 9 additions & 0 deletions e2e/nxdoc-e2e/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ module.exports = {
'<rootDir>/packages/utils',
'<rootDir>/packages/utils',
'<rootDir>/packages/dotnet',
'<rootDir>/packages/nxdoc',
'<rootDir>/e2e\\nxdoc-e2e',
],
};
7 changes: 7 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
},
"dotnet": {
"tags": []
},
"nxdoc": {
"tags": []
},
"nxdoc-e2e": {
"tags": [],
"implicitDependencies": ["nxdoc"]
}
},
"workspaceLayout": {
Expand Down
Loading

0 comments on commit 80b0368

Please sign in to comment.