Skip to content

Commit

Permalink
Ran NX migrations & updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lega0208 committed Oct 11, 2023
1 parent c277a07 commit ca9114d
Show file tree
Hide file tree
Showing 132 changed files with 18,331 additions and 42,200 deletions.
16 changes: 12 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"root": true,
"ignorePatterns": ["**/*", "**/*.d.ts"],
"plugins": ["@nrwl/nx", "@ngrx"],
"plugins": ["@nx", "@ngrx"],
"overrides": [
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {}
},
{
"files": ["*[^.d$].ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,12 +28,15 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript", "plugin:@ngrx/eslint-plugin/recommended"],
"extends": [
"plugin:@nx/typescript",
"plugin:@ngrx/eslint-plugin/recommended"
],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
.ipynb_checkpoints/

# System Files
.DS_Store
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.validate": ["json"]
}
8 changes: 4 additions & 4 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/api",
Expand Down Expand Up @@ -42,20 +42,20 @@
}
},
"serve": {
"executor": "@nrwl/node:node",
"executor": "@nx/js:node",
"options": {
"buildTarget": "api:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/api/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/api"],
"options": {
"jestConfig": "apps/api/jest.config.ts",
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/internal-search/internal-search.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { InternalSearchService } from './internal-search.service';
import { InternalSearchController } from './internal-search.controller';
import { DbModule, DbService } from '@dua-upd/db';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/overall/overall.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { OverallService } from './overall.service';
import { OverallController } from './overall.controller';
import { DbModule, DbService } from '@dua-upd/db';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/pages/pages.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { PagesService } from './pages.service';
import { PagesController } from './pages.controller';
import { DbModule, DbService } from '@dua-upd/db';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/projects/projects.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { DbModule } from '@dua-upd/db';
import { ProjectsController } from './projects.controller';
import { ProjectsService } from './projects.service';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/reports/reports.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { DbModule } from '@dua-upd/db';
import { ReportsController } from './reports.controller';
import { ReportsService } from './reports.service';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/tasks/tasks.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { TasksService } from './tasks.service';
import { TasksController } from './tasks.controller';
import { DbModule, DbService } from '@dua-upd/db';
Expand Down
2 changes: 1 addition & 1 deletion apps/api/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "commonjs",
"types": ["node"],
"emitDecoratorMetadata": true,
"target": "es2020",
"target": "es2021",
"lib": ["ESNext", "DOM", "DOM.Iterable"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
Expand Down
4 changes: 1 addition & 3 deletions apps/db-cli/.swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"loose": true
},
"module": {
"type": "es6",
"strict": true,
"noInterop": true
"type": "es6"
},
"exclude": [
"jest.config.js",
Expand Down
8 changes: 4 additions & 4 deletions apps/db-cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"targets": {
"build": {
"defaultConfiguration": "production",
"executor": "@nrwl/webpack:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/db-cli",
Expand Down Expand Up @@ -49,20 +49,20 @@
}
},
"serve": {
"executor": "@nrwl/node:node",
"executor": "@nx/js:node",
"options": {
"buildTarget": "db-cli:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/db-cli/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/db-cli"],
"options": {
"jestConfig": "apps/db-cli/jest.config.ts",
Expand Down
1 change: 1 addition & 0 deletions apps/db-cli/src/app/scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zcratchpad.ts
8 changes: 4 additions & 4 deletions apps/db-updater/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/db-updater",
Expand Down Expand Up @@ -38,20 +38,20 @@
}
},
"serve": {
"executor": "@nrwl/node:node",
"executor": "@nx/js:node",
"options": {
"buildTarget": "db-updater:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/db-updater/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/db-updater"],
"options": {
"jestConfig": "apps/db-updater/jest.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/log-viewer/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@nrwl/js/babel"]
"presets": ["@nx/js/babel"]
}
8 changes: 4 additions & 4 deletions apps/log-viewer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"tags": [],
"targets": {
"build": {
"executor": "@nrwl/vite:build",
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
Expand All @@ -22,7 +22,7 @@
}
},
"serve": {
"executor": "@nrwl/vite:dev-server",
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "log-viewer:build"
Expand All @@ -39,7 +39,7 @@
}
},
"preview": {
"executor": "@nrwl/vite:preview-server",
"executor": "@nx/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "log-viewer:build"
Expand All @@ -54,7 +54,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/log-viewer/**/*.ts"]
Expand Down
4 changes: 2 additions & 2 deletions apps/log-viewer/src/app/app.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export class AppElement extends HTMLElement {
Add UI library
</summary>
<pre><span># Generate UI lib</span>
nx g @nrwl/angular:lib ui
nx g @nx/angular:lib ui
<span># Add a component</span>
nx g @nrwl/angular:component button --project ui</pre>
nx g @nx/angular:component button --project ui</pre>
</details>
<details>
<summary>
Expand Down
6 changes: 2 additions & 4 deletions apps/log-viewer/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';

import viteTsConfigPaths from 'vite-tsconfig-paths';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
console.log(process.cwd());
export default defineConfig({
cacheDir: '../../node_modules/.vite/log-viewer',
Expand All @@ -18,9 +18,7 @@ export default defineConfig({
},

plugins: [
viteTsConfigPaths({
root: '../../',
}),
nxViteTsPaths(),
],

// Uncomment this if you are using workers.
Expand Down
4 changes: 2 additions & 2 deletions apps/upd-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "application",
"targets": {
"e2e": {
"executor": "@nrwl/cypress:cypress",
"executor": "@nx/cypress:cypress",
"options": {
"tsConfig": "apps/upd-e2e/tsconfig.json",
"cypressConfig": "apps/upd-e2e/cypress.json",
Expand All @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/upd-e2e/**/*.{js,ts}"]
Expand Down
4 changes: 2 additions & 2 deletions apps/upd/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"files": ["*.ts"],
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
Expand All @@ -29,7 +29,7 @@
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
Expand Down
8 changes: 4 additions & 4 deletions apps/upd/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "upd",
"targets": {
"build": {
"executor": "@nrwl/angular:webpack-browser",
"executor": "@nx/angular:webpack-browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/upd",
Expand Down Expand Up @@ -62,7 +62,7 @@
"defaultConfiguration": "production"
},
"serve": {
"executor": "@nrwl/angular:webpack-dev-server",
"executor": "@nx/angular:webpack-dev-server",
"configurations": {
"production": {
"browserTarget": "upd:build:production"
Expand All @@ -87,13 +87,13 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"options": {
"lintFilePatterns": ["apps/upd/src/**/*.ts", "apps/upd/src/**/*.html"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/upd"],
"options": {
"jestConfig": "apps/upd/jest.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getJestProjects } = require('@nrwl/jest');
const { getJestProjects } = require('@nx/jest');

export default {
projects: getJestProjects(),
Expand Down
2 changes: 1 addition & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const nxPreset = require('@nrwl/jest/preset').default;
const nxPreset = require('@nx/jest/preset').default;

module.exports = {
...nxPreset,
Expand Down
4 changes: 1 addition & 3 deletions libs/blob-storage/.swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"loose": true
},
"module": {
"type": "es6",
"strict": true,
"noInterop": true
"type": "es6"
},
"exclude": [
"jest.config.js",
Expand Down
Loading

0 comments on commit ca9114d

Please sign in to comment.