Skip to content

Commit

Permalink
generate project
Browse files Browse the repository at this point in the history
  • Loading branch information
Bielik20 committed Oct 27, 2022
1 parent 9bc5d47 commit 51d537a
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/di/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
16 changes: 16 additions & 0 deletions apps/di/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-disable */
export default {
displayName: 'di',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/di',
};
58 changes: 58 additions & 0 deletions apps/di/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "di",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/di/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"target": "node",
"outputPath": "dist/apps/di",
"main": "apps/di/src/main.ts",
"tsConfig": "apps/di/tsconfig.app.json",
"externalDependencies": "none",
"optimization": true,
"extractLicenses": true,
"inspect": false,
"buildLibsFromSource": false
},
"configurations": {
"tsc": {
"compiler": "tsc"
},
"swc": {
"compiler": "swc"
}
}
},
"serve": {
"executor": "@nrwl/js:node",
"options": {
"buildTarget": "di:build"
},
"configurations": {
"production": {
"buildTarget": "di:build:production"
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/di/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/di/jest.config.ts",
"passWithNoTests": true
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions apps/di/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hello World!');
10 changes: 10 additions & 0 deletions apps/di/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["node"]
},
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
13 changes: 13 additions & 0 deletions apps/di/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.app.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
9 changes: 9 additions & 0 deletions apps/di/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": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
}
1 change: 1 addition & 0 deletions workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cart": "apps/cart",
"cart-cart-page": "libs/cart/cart-page",
"cart-e2e": "apps/cart-e2e",
"di": "apps/di",
"products": "apps/products",
"products-e2e": "apps/products-e2e",
"products-home-page": "libs/products/home-page",
Expand Down

0 comments on commit 51d537a

Please sign in to comment.