Skip to content

Commit 51d537a

Browse files
committed
generate project
1 parent 9bc5d47 commit 51d537a

File tree

8 files changed

+126
-0
lines changed

8 files changed

+126
-0
lines changed

apps/di/.eslintrc.json

Lines changed: 18 additions & 0 deletions
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+
}

apps/di/jest.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'di',
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]s$': 'ts-jest',
13+
},
14+
moduleFileExtensions: ['ts', 'js', 'html'],
15+
coverageDirectory: '../../coverage/apps/di',
16+
};

apps/di/project.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "di",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "apps/di/src",
5+
"projectType": "application",
6+
"targets": {
7+
"build": {
8+
"executor": "@nrwl/webpack:webpack",
9+
"outputs": ["{options.outputPath}"],
10+
"options": {
11+
"target": "node",
12+
"outputPath": "dist/apps/di",
13+
"main": "apps/di/src/main.ts",
14+
"tsConfig": "apps/di/tsconfig.app.json",
15+
"externalDependencies": "none",
16+
"optimization": true,
17+
"extractLicenses": true,
18+
"inspect": false,
19+
"buildLibsFromSource": false
20+
},
21+
"configurations": {
22+
"tsc": {
23+
"compiler": "tsc"
24+
},
25+
"swc": {
26+
"compiler": "swc"
27+
}
28+
}
29+
},
30+
"serve": {
31+
"executor": "@nrwl/js:node",
32+
"options": {
33+
"buildTarget": "di:build"
34+
},
35+
"configurations": {
36+
"production": {
37+
"buildTarget": "di:build:production"
38+
}
39+
}
40+
},
41+
"lint": {
42+
"executor": "@nrwl/linter:eslint",
43+
"outputs": ["{options.outputFile}"],
44+
"options": {
45+
"lintFilePatterns": ["apps/di/**/*.ts"]
46+
}
47+
},
48+
"test": {
49+
"executor": "@nrwl/jest:jest",
50+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
51+
"options": {
52+
"jestConfig": "apps/di/jest.config.ts",
53+
"passWithNoTests": true
54+
}
55+
}
56+
},
57+
"tags": []
58+
}

apps/di/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Hello World!');

apps/di/tsconfig.app.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"module": "commonjs",
6+
"types": ["node"]
7+
},
8+
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"],
9+
"include": ["**/*.ts"]
10+
}

apps/di/tsconfig.json

Lines changed: 13 additions & 0 deletions
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.app.json"
8+
},
9+
{
10+
"path": "./tsconfig.spec.json"
11+
}
12+
]
13+
}

apps/di/tsconfig.spec.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"module": "commonjs",
6+
"types": ["jest", "node"]
7+
},
8+
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
9+
}

workspace.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"cart": "apps/cart",
55
"cart-cart-page": "libs/cart/cart-page",
66
"cart-e2e": "apps/cart-e2e",
7+
"di": "apps/di",
78
"products": "apps/products",
89
"products-e2e": "apps/products-e2e",
910
"products-home-page": "libs/products/home-page",

0 commit comments

Comments
 (0)