Skip to content

Commit

Permalink
Rename application projects
Browse files Browse the repository at this point in the history
  • Loading branch information
wcalderipe committed Jan 8, 2024
1 parent 72a78f1 commit e63ba14
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 35 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include ./apps/authz/Makefile
include ./apps/orchestration/Makefile
include ./apps/authz-node/Makefile

# For more terminal color codes, head over to https://opensource.com/article/19/9/linux-terminal-colors
TERM_NO_COLOR := \033[0m
Expand All @@ -14,8 +14,8 @@ install/ci:
setup:
make install
make docker/up
make orchestration/setup
make authz/setup
make orchestration/setup
@echo ""
@echo "${TERM_GREEN}Orchestration & AuthZ applications are ready 🐋${TERM_NO_COLOR}"
@echo "${TERM_GREEN}Run 'make orchestration/start/dev' or/and 'make authz/start/dev' to get them running.${TERM_NO_COLOR}"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apps/authz-node/Makefile → apps/authz/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AUTHZ_PROJECT_NAME := apps/authz-node
AUTHZ_PROJECT_DIR := ./apps/authz-node
AUTHZ_PROJECT_NAME := authz
AUTHZ_PROJECT_DIR := ./apps/authz

authz/setup:
make authz/copy-default-env
Expand Down
2 changes: 1 addition & 1 deletion apps/authz-node/README.md → apps/authz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ TBD

```bash
# Boot PostgreSQL and Redis
make docker/up
make docker/up
make authz/copy-default-env
```

Expand Down
4 changes: 2 additions & 2 deletions apps/authz-node/jest.config.ts → apps/authz/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Config } from 'jest'

const config: Config = {
displayName: 'apps/authz-node',
displayName: 'authz',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }]
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/authz-node',
coverageDirectory: '../../coverage/apps/authz',
moduleNameMapper: {
'^@app/authz/(.*)$': '<rootDir>/src/$1'
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 13 additions & 14 deletions apps/authz-node/project.json → apps/authz/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "apps/authz-node",
"name": "authz",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/authz-node/src",
"sourceRoot": "apps/authz/src",
"projectType": "application",
"targets": {
"build": {
Expand All @@ -11,11 +11,11 @@
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "dist/apps/authz-node",
"main": "apps/authz-node/src/main.ts",
"tsConfig": "apps/authz-node/tsconfig.app.json",
"outputPath": "dist/apps/authz",
"main": "apps/authz/src/main.ts",
"tsConfig": "apps/authz/tsconfig.app.json",
"isolatedConfig": true,
"webpackConfig": "apps/authz-node/webpack.config.js"
"webpackConfig": "apps/authz/webpack.config.js"
},
"configurations": {
"development": {},
Expand All @@ -26,25 +26,24 @@
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "apps/authz-node:build"
"buildTarget": "authz:build"
},
"configurations": {
"development": {
"buildTarget": "apps/authz-node:build:development"
"buildTarget": "authz:build:development"
},
"production": {
"buildTarget": "apps/authz-node:build:production"
"buildTarget": "authz:build:production"
}
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/authz-node/**/*.ts"]
"lintFilePatterns": ["apps/authz/**/*.ts"]
}
},

"test:type": {
"executor": "nx:run-commands",
"options": {
Expand All @@ -55,15 +54,15 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/authz-node/jest.unit.ts",
"jestConfig": "apps/authz/jest.unit.ts",
"verbose": true
}
},
"test:integration": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/authz-node/jest.integration.ts",
"jestConfig": "apps/authz/jest.integration.ts",
"verbose": true,
"runInBand": true
}
Expand All @@ -72,7 +71,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/authz-node/jest.e2e.ts",
"jestConfig": "apps/authz/jest.e2e.ts",
"verbose": true,
"runInBand": true
}
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.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"jest.config.ts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
"include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { composePlugins, withNx } = require('@nx/webpack');
const { composePlugins, withNx } = require('@nx/webpack')

// Nx plugins for webpack.
module.exports = composePlugins(withNx(), (config) => {
// Update the webpack config as needed here.
// e.g. `config.plugins.push(new MyPlugin())`
return config;
});
return config
})
2 changes: 1 addition & 1 deletion apps/orchestration/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ORCHESTRATION_PROJECT_NAME := apps/orchestration
ORCHESTRATION_PROJECT_NAME := orchestration
ORCHESTRATION_PROJECT_DIR := ./apps/orchestration
ORCHESTRATION_DATABASE_SCHEMA := ${ORCHESTRATION_PROJECT_DIR}/src/persistence/schema/schema.prisma

Expand Down
8 changes: 4 additions & 4 deletions apps/orchestration/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "apps/orchestration",
"name": "orchestration",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/orchestration/src",
"projectType": "application",
Expand All @@ -26,14 +26,14 @@
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "apps/orchestration:build"
"buildTarget": "orchestration:build"
},
"configurations": {
"development": {
"buildTarget": "apps/orchestration:build:development"
"buildTarget": "orchestration:build:development"
},
"production": {
"buildTarget": "apps/orchestration:build:production"
"buildTarget": "orchestration:build:production"
}
}
},
Expand Down

0 comments on commit e63ba14

Please sign in to comment.