Skip to content

Commit 072c628

Browse files
committedDec 5, 2022
refactor(playwright-ct-angular): 🛠 add new empty library
nx g @nrwl/node:lib playwright-ct-angular --publishable --importPath @jscutlery/playwright-ct-angular
1 parent 787219c commit 072c628

14 files changed

+147
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# playwright-ct-angular
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test playwright-ct-angular` to execute the unit tests via [Jest](https://jestjs.io).
8+
9+
## Running lint
10+
11+
Run `nx lint playwright-ct-angular` to execute the lint via [ESLint](https://eslint.org/).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'playwright-ct-angular',
4+
preset: '../../jest.preset.js',
5+
globals: {
6+
'ts-jest': {
7+
tsconfig: '<rootDir>/tsconfig.spec.json',
8+
},
9+
},
10+
testEnvironment: 'node',
11+
transform: {
12+
'^.+\\.[tj]sx?$': 'ts-jest',
13+
},
14+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
15+
coverageDirectory: '../../coverage/packages/playwright-ct-angular',
16+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@jscutlery/playwright-ct-angular",
3+
"version": "0.0.1"
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "playwright-ct-angular",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "packages/playwright-ct-angular/src",
5+
"projectType": "library",
6+
"targets": {
7+
"lint": {
8+
"executor": "@nrwl/linter:eslint",
9+
"outputs": ["{options.outputFile}"],
10+
"options": {
11+
"lintFilePatterns": ["packages/playwright-ct-angular/**/*.ts"]
12+
}
13+
},
14+
"test": {
15+
"executor": "@nrwl/jest:jest",
16+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
17+
"options": {
18+
"jestConfig": "packages/playwright-ct-angular/jest.config.ts",
19+
"passWithNoTests": true
20+
}
21+
},
22+
"build": {
23+
"executor": "@nrwl/js:tsc",
24+
"outputs": ["{options.outputPath}"],
25+
"options": {
26+
"outputPath": "dist/packages/playwright-ct-angular",
27+
"tsConfig": "packages/playwright-ct-angular/tsconfig.lib.json",
28+
"packageJson": "packages/playwright-ct-angular/package.json",
29+
"main": "packages/playwright-ct-angular/src/index.ts",
30+
"assets": ["packages/playwright-ct-angular/*.md"]
31+
}
32+
}
33+
},
34+
"tags": []
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/playwright-ct-angular';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { playwrightCtAngular } from './playwright-ct-angular';
2+
3+
describe('playwrightCtAngular', () => {
4+
it('should work', () => {
5+
expect(playwrightCtAngular()).toEqual('playwright-ct-angular');
6+
});
7+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function playwrightCtAngular(): string {
2+
return 'playwright-ct-angular';
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"files": [],
4+
"include": [],
5+
"references": [
6+
{
7+
"path": "./tsconfig.lib.json"
8+
},
9+
{
10+
"path": "./tsconfig.spec.json"
11+
}
12+
]
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"outDir": "../../dist/out-tsc",
6+
"declaration": true,
7+
"types": ["node"]
8+
},
9+
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"],
10+
"include": ["**/*.ts"]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"module": "commonjs",
6+
"types": ["jest", "node"]
7+
},
8+
"include": [
9+
"jest.config.ts",
10+
"**/*.test.ts",
11+
"**/*.spec.ts",
12+
"**/*.test.tsx",
13+
"**/*.spec.tsx",
14+
"**/*.test.js",
15+
"**/*.spec.js",
16+
"**/*.test.jsx",
17+
"**/*.spec.jsx",
18+
"**/*.d.ts"
19+
]
20+
}

‎tsconfig.base.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
"packages/cypress-harness/src/support-ct.ts"
2929
],
3030
"@jscutlery/microwave": ["packages/microwave/src/index.ts"],
31-
"@jscutlery/operators": ["packages/operators/src/index.ts"]
31+
"@jscutlery/operators": ["packages/operators/src/index.ts"],
32+
"@jscutlery/playwright-ct-angular": [
33+
"packages/playwright-ct-angular/src/index.ts"
34+
]
3235
}
3336
},
3437
"exclude": ["node_modules", "tmp"]

‎workspace.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"game-of-life": "apps/game-of-life",
88
"microwave": "packages/microwave",
99
"operators": "packages/operators",
10+
"playwright-ct-angular": "packages/playwright-ct-angular",
1011
"sandbox": "apps/sandbox"
1112
},
1213
"$schema": "./node_modules/nx/schemas/workspace-schema.json"

0 commit comments

Comments
 (0)
Please sign in to comment.