Skip to content

Commit

Permalink
Merge pull request #14 from nx-quickstart/refactore/apps-names
Browse files Browse the repository at this point in the history
🚚 Rename:  apps names
  • Loading branch information
MikeXado committed Jan 17, 2024
2 parents 1b4169b + 741bd1e commit 20c808d
Show file tree
Hide file tree
Showing 58 changed files with 177 additions and 64 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
export default {
displayName: 'nx-starter-template',
displayName: 'backend',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }]
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/nx-starter-template'
coverageDirectory: '../../coverage/apps/backend',
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nx-starter-template",
"name": "backend",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/nx-starter-template/src",
"sourceRoot": "apps/backend/src",
"projectType": "application",
"targets": {
"build": {
Expand All @@ -11,11 +11,11 @@
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "dist/apps/nx-starter-template",
"main": "apps/nx-starter-template/src/main.ts",
"tsConfig": "apps/nx-starter-template/tsconfig.app.json",
"assets": ["apps/nx-starter-template/src/assets"],
"webpackConfig": "apps/nx-starter-template/webpack.config.js"
"outputPath": "dist/apps/backend",
"main": "apps/backend/src/main.ts",
"tsConfig": "apps/backend/tsconfig.app.json",
"assets": ["apps/backend/src/assets"],
"webpackConfig": "apps/backend/webpack.config.js"
},
"configurations": {
"development": {},
Expand All @@ -26,14 +26,14 @@
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "nx-starter-template:build"
"buildTarget": "backend:build"
},
"configurations": {
"development": {
"buildTarget": "nx-starter-template:build:development"
"buildTarget": "backend:build:development"
},
"production": {
"buildTarget": "nx-starter-template:build:production"
"buildTarget": "backend:build:production"
}
}
},
Expand All @@ -45,7 +45,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/nx-starter-template/jest.config.ts"
"jestConfig": "apps/backend/jest.config.ts"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Module } from '@nestjs/common';
import { TestTsRestModule } from '@nx-starter-template/nx-starter-template-test-ts-rest';
import { TestTsRestModule } from '@nx-starter-template/backend-test-ts-rest';

@Module({
imports: [TestTsRestModule],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": [
"error",
"apps/nx-starter-template-client/pages"
]
"@next/next/no-html-link-for-pages": ["error", "apps/frontend/pages"]
}
},
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
export default {
displayName: 'nx-starter-template-client',
displayName: 'frontend',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/nx-starter-template-client',
coverageDirectory: '../../coverage/apps/frontend',
};
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "nx-starter-template-client",
"name": "frontend",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/nx-starter-template-client",
"sourceRoot": "apps/frontend",
"projectType": "application",
"targets": {
"build": {
"executor": "@nx/next:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/nx-starter-template-client"
"outputPath": "dist/apps/frontend"
},
"configurations": {
"development": {
"outputPath": "apps/nx-starter-template-client"
"outputPath": "apps/frontend"
},
"production": {}
}
Expand All @@ -22,31 +22,31 @@
"executor": "@nx/next:server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "nx-starter-template-client:build",
"buildTarget": "frontend:build",
"dev": true
},
"configurations": {
"development": {
"buildTarget": "nx-starter-template-client:build:development",
"buildTarget": "frontend:build:development",
"dev": true
},
"production": {
"buildTarget": "nx-starter-template-client:build:production",
"buildTarget": "frontend:build:production",
"dev": false
}
}
},
"export": {
"executor": "@nx/next:export",
"options": {
"buildTarget": "nx-starter-template-client:build:production"
"buildTarget": "frontend:build:production"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/nx-starter-template-client/jest.config.ts"
"jestConfig": "apps/frontend/jest.config.ts"
}
},
"lint": {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@
"name": "next"
}
],
"types": [
"jest",
"node"
]
"types": ["jest", "node"]
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"../../apps/nx-starter-template-client/.next/types/**/*.ts",
"../../dist/apps/nx-starter-template-client/.next/types/**/*.ts",
".next/types/**/*.ts",
"../../dist/apps/frontend/.next/types/**/*.ts",
"next-env.d.ts",
".next/types/**/*.ts"
],
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/nx-starter-template/utils-env/tsconfig.*?.json"]
"project": ["libs/backend/data-access-db/tsconfig.*?.json"]
},
"rules": {}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
export default {
displayName: 'nx-starter-template-utils-env',
displayName: 'backend-data-access-db',
preset: '../../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../../coverage/libs/nx-starter-template/utils-env',
coverageDirectory: '../../../coverage/libs/backend/data-access-db',
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nx-starter-template-utils-env",
"name": "backend-data-access-db",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/nx-starter-template/utils-env/src",
"sourceRoot": "libs/backend/data-access-db/src",
"projectType": "library",
"targets": {
"lint": {
Expand All @@ -12,7 +12,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/nx-starter-template/utils-env/jest.config.ts"
"jestConfig": "libs/backend/data-access-db/jest.config.ts"
}
}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/nx-starter-template/test-ts-rest/tsconfig.*?.json"]
"project": ["libs/backend/test-ts-rest/tsconfig.*?.json"]
},
"rules": {}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
export default {
displayName: 'nx-starter-template-test-ts-rest',
displayName: 'backend-test-ts-rest',
preset: '../../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../../coverage/libs/nx-starter-template/test-ts-rest',
coverageDirectory: '../../../coverage/libs/backend/test-ts-rest',
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nx-starter-template-test-ts-rest",
"name": "backend-test-ts-rest",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/nx-starter-template/test-ts-rest/src",
"sourceRoot": "libs/backend/test-ts-rest/src",
"projectType": "library",
"targets": {
"lint": {
Expand All @@ -12,7 +12,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/nx-starter-template/test-ts-rest/jest.config.ts"
"jestConfig": "libs/backend/test-ts-rest/jest.config.ts"
}
}
},
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["libs/nx-starter-template/data-access-db/tsconfig.*?.json"]
"project": ["libs/backend/utils-env/tsconfig.*?.json"]
},
"rules": {}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* eslint-disable */
export default {
displayName: 'nx-starter-template-data-access-db',
displayName: 'backend-utils-env',
preset: '../../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory:
'../../../coverage/libs/nx-starter-template/data-access-db',
coverageDirectory: '../../../coverage/libs/backend/utils-env',
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nx-starter-template-data-access-db",
"name": "backend-utils-env",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/nx-starter-template/data-access-db/src",
"sourceRoot": "libs/backend/utils-env/src",
"projectType": "library",
"targets": {
"lint": {
Expand All @@ -12,7 +12,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/nx-starter-template/data-access-db/jest.config.ts"
"jestConfig": "libs/backend/utils-env/jest.config.ts"
}
}
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 20c808d

Please sign in to comment.