Skip to content

Commit 6f0f19c

Browse files
committed
chore: wips
1 parent b9f5333 commit 6f0f19c

File tree

15 files changed

+456
-0
lines changed

15 files changed

+456
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import tseslint from 'typescript-eslint';
2+
import baseConfig from '../../eslint.config.js';
3+
4+
export default tseslint.config(...baseConfig, {
5+
files: ['**/*.ts'],
6+
languageOptions: {
7+
parserOptions: {
8+
projectService: true,
9+
tsconfigRootDir: import.meta.dirname,
10+
},
11+
},
12+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import docCoveragePlugin from '@code-pushup/doc-coverage-plugin';
2+
3+
export default {
4+
plugins: [await docCoveragePlugin({ sourceGlob: ['**/*.ts'] })],
5+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
h1 {
2+
color: #336699;
3+
text-align: center;
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>{{ title }}</h1>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function notRealisticFunction() {
2+
return 'notRealisticFunction';
3+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Basic Angular component that displays a welcome message
3+
*/
4+
export class AppComponent {
5+
protected readonly title = 'My Angular App';
6+
7+
/**
8+
* Dummy method that returns a welcome message
9+
* @returns {string} - The welcome message
10+
*/
11+
getWelcomeMessage() {
12+
return 'Welcome to My Angular App!';
13+
}
14+
15+
sendEvent() {
16+
return 'Event sent';
17+
}
18+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const someVariable = 'Hello World 1';
2+
3+
export function mapEventToCustomEvent(event: string) {
4+
return event;
5+
}
6+
7+
/** Commented */
8+
export function mapCustomEventToEvent(event: string) {
9+
return event;
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import docCoveragePlugin from '@code-pushup/doc-coverage-plugin';
2+
3+
export default {
4+
plugins: [await docCoveragePlugin({ sourceGlob: ['**/*.ts'] })],
5+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function MyComponent() {
2+
return (
3+
<div>
4+
<h1>Hello World</h1>
5+
<p>This is a basic React component</p>
6+
</div>
7+
);
8+
}
9+
10+
export default MyComponent;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "plugin-doc-coverage-e2e",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "e2e/plugin-doc-coverage-e2e/src",
5+
"projectType": "application",
6+
"targets": {
7+
"lint": {
8+
"executor": "@nx/linter:eslint",
9+
"outputs": ["{options.outputFile}"],
10+
"options": {
11+
"lintFilePatterns": ["e2e/plugin-doc-coverage-e2e/**/*.ts"]
12+
}
13+
},
14+
"e2e": {
15+
"executor": "@nx/vite:test",
16+
"options": {
17+
"configFile": "e2e/plugin-doc-coverage-e2e/vite.config.e2e.ts"
18+
}
19+
}
20+
},
21+
"implicitDependencies": ["cli", "plugin-doc-coverage"],
22+
"tags": ["scope:plugin", "type:e2e"]
23+
}

0 commit comments

Comments
 (0)