Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2f21d3

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
chore: migrate nx 16
1 parent 781c929 commit a2f21d3

17 files changed

+253
-254
lines changed

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getJestProjects } from '@nrwl/jest';
1+
import { getJestProjects } from '@nx/jest';
22

33
export default {
44
projects: getJestProjects(),

jest.preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const nxPreset = require('@nrwl/jest/preset').default;
1+
const nxPreset = require('@nx/jest/preset').default;
22

33
module.exports = {
44
...nxPreset,

libs/angular-three/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"@typescript-eslint/member-ordering": "off",
1717
"@typescript-eslint/no-non-null-assertion": "off"
1818
},
19-
"extends": ["plugin:@nrwl/nx/angular", "plugin:@angular-eslint/template/process-inline-templates"]
19+
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"]
2020
},
2121
{
2222
"files": ["*.html"],
23-
"extends": ["plugin:@nrwl/nx/angular-template"],
23+
"extends": ["plugin:@nx/angular-template"],
2424
"rules": {}
2525
}
2626
]

libs/angular-three/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"lib": {
55
"entryFile": "src/index.ts"
66
},
7-
"allowedNonPeerDependencies": ["ngx-resize", "@rx-angular/state", "@nrwl/devkit"]
7+
"allowedNonPeerDependencies": ["ngx-resize", "@rx-angular/state", "@nx/devkit"]
88
}

libs/angular-three/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"dependencies": {
2929
"ngx-resize": "^1.0.0",
3030
"@rx-angular/state": "^14.0.0",
31-
"@nrwl/devkit": "^15.0.0",
32-
"tslib": "^2.3.0"
31+
"tslib": "^2.3.0",
32+
"@nx/devkit": "16.0.1"
3333
},
3434
"sideEffects": false,
3535
"generators": "./plugin/generators.json",

libs/angular-three/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"prefix": "angular-three",
77
"targets": {
88
"build": {
9-
"executor": "@nrwl/angular:package",
9+
"executor": "@nx/angular:package",
1010
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
1111
"options": {
1212
"project": "libs/angular-three/ng-package.json"
@@ -29,15 +29,15 @@
2929
}
3030
},
3131
"test": {
32-
"executor": "@nrwl/jest:jest",
32+
"executor": "@nx/jest:jest",
3333
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
3434
"options": {
3535
"jestConfig": "libs/angular-three/jest.config.ts",
3636
"passWithNoTests": true
3737
}
3838
},
3939
"lint": {
40-
"executor": "@nrwl/linter:eslint",
40+
"executor": "@nx/linter:eslint",
4141
"outputs": ["{options.outputFile}"],
4242
"options": {
4343
"lintFilePatterns": ["libs/angular-three/**/*.ts", "libs/angular-three/**/*.html"]

libs/plugin/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"files": ["./package.json", "./generators.json", "./executors.json"],
1919
"parser": "jsonc-eslint-parser",
2020
"rules": {
21-
"@nrwl/nx/nx-plugin-checks": "error"
21+
"@nx/nx-plugin-checks": "error"
2222
}
2323
}
2424
]

libs/plugin/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "library",
66
"targets": {
77
"build": {
8-
"executor": "@nrwl/js:tsc",
8+
"executor": "@nx/js:tsc",
99
"outputs": ["{options.outputPath}"],
1010
"options": {
1111
"outputPath": "dist/libs/angular-three/plugin",
@@ -32,7 +32,7 @@
3232
}
3333
},
3434
"lint": {
35-
"executor": "@nrwl/linter:eslint",
35+
"executor": "@nx/linter:eslint",
3636
"outputs": ["{options.outputFile}"],
3737
"options": {
3838
"lintFilePatterns": [
@@ -44,7 +44,7 @@
4444
}
4545
},
4646
"test": {
47-
"executor": "@nrwl/jest:jest",
47+
"executor": "@nx/jest:jest",
4848
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
4949
"options": {
5050
"jestConfig": "libs/plugin/jest.config.ts",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { convertNxGenerator } from '@nrwl/devkit';
1+
import { convertNxGenerator } from '@nx/devkit';
22
import init from './init';
33

44
export default convertNxGenerator(init);

libs/plugin/src/generators/init/init.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { readJson, Tree } from '@nrwl/devkit';
2-
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
1+
import { readJson, Tree } from '@nx/devkit';
2+
import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
33
import init, { ANGULAR_THREE_VERSION, THREE_TYPE_VERSION, THREE_VERSION } from './init';
44

55
describe('init generator', () => {

libs/plugin/src/generators/init/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addDependenciesToPackageJson, installPackagesTask, logger, readJson, Tree, updateJson } from '@nrwl/devkit';
1+
import { addDependenciesToPackageJson, installPackagesTask, logger, readJson, Tree, updateJson } from '@nx/devkit';
22

33
export const ANGULAR_THREE_VERSION = '^1.0.0';
44
export const THREE_VERSION = '^0.149.0';

0 commit comments

Comments
 (0)