Skip to content

Commit

Permalink
nx
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterjanDeClippel committed Oct 17, 2024
1 parent ffc8579 commit b853d6a
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 37 deletions.
18 changes: 12 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,13 +23,19 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
"extends": ["plugin:@nx/typescript"],
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
"extends": ["plugin:@nx/javascript"],
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
}
]
}
4 changes: 2 additions & 2 deletions apps/angular-demo-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": {
"cypressConfig": "apps/angular-demo-e2e/cypress.json",
"devServerTarget": "angular-demo:serve:development"
Expand All @@ -17,7 +17,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/angular-demo-e2e/**/*.{js,ts}"]
Expand Down
4 changes: 2 additions & 2 deletions apps/angular-demo/.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: 1 addition & 7 deletions apps/angular-demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"apps/angular-demo/src/**/*.ts",
"apps/angular-demo/src/**/*.html"
]
}
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
14 changes: 7 additions & 7 deletions commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ npx create-nx-workspace
> angular-demo
> scss
cd mintplayer-ng-bootstrap
nx g @nrwl/angular:lib mintplayer-ng-youtube-player --buildable --publishable --import-path @mintplayer/ng-youtube-player --directory libs/mintplayer-ng-youtube-player
nx g @nrwl/angular:lib mintplayer-ng-vimeo-player --buildable --publishable --import-path @mintplayer/ng-vimeo-player --directory libs/mintplayer-ng-vimeo-player
nx g @nrwl/angular:lib mintplayer-ng-soundcloud-player --buildable --publishable --import-path @mintplayer/ng-soundcloud-player --directory libs/mintplayer-ng-soundcloud-player
nx g @nrwl/angular:lib mintplayer-ng-soundcloud-player --buildable --publishable --import-path @mintplayer/ng-mixcloud-player --directory libs/mintplayer-ng-mixcloud-player
nx g @nrwl/angular:lib mintplayer-ng-player-progress --buildable --publishable --import-path @mintplayer/ng-player-progress --directory libs/mintplayer-ng-player-progress
nx g @nrwl/angular:lib mintplayer-ng-video-player --buildable --publishable --import-path @mintplayer/ng-video-player --directory libs/mintplayer-ng-video-player
nx g @nrwl/angular:lib mintplayer-ng-playlist-controller --buildable --publishable --import-path @mintplayer/ng-playlist-controller --directory libs/mintplayer-ng-playlist-controller
nx g @nx/angular:lib mintplayer-ng-youtube-player --buildable --publishable --import-path @mintplayer/ng-youtube-player --directory libs/mintplayer-ng-youtube-player
nx g @nx/angular:lib mintplayer-ng-vimeo-player --buildable --publishable --import-path @mintplayer/ng-vimeo-player --directory libs/mintplayer-ng-vimeo-player
nx g @nx/angular:lib mintplayer-ng-soundcloud-player --buildable --publishable --import-path @mintplayer/ng-soundcloud-player --directory libs/mintplayer-ng-soundcloud-player
nx g @nx/angular:lib mintplayer-ng-soundcloud-player --buildable --publishable --import-path @mintplayer/ng-mixcloud-player --directory libs/mintplayer-ng-mixcloud-player
nx g @nx/angular:lib mintplayer-ng-player-progress --buildable --publishable --import-path @mintplayer/ng-player-progress --directory libs/mintplayer-ng-player-progress
nx g @nx/angular:lib mintplayer-ng-video-player --buildable --publishable --import-path @mintplayer/ng-video-player --directory libs/mintplayer-ng-video-player
nx g @nx/angular:lib mintplayer-ng-playlist-controller --buildable --publishable --import-path @mintplayer/ng-playlist-controller --directory libs/mintplayer-ng-playlist-controller
nx g @nx/js:library --name=mintplayer-video-player --buildable --publishable --import-path @mintplayer/video-player

npm i -D @nx/react
Expand Down
4 changes: 2 additions & 2 deletions decorate-angular-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const cp = require('child_process');
const isWindows = os.platform() === 'win32';
let output;
try {
output = require('@nrwl/workspace').output;
output = require('@nx/workspace').output;
} catch (e) {
console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.');
process.exit(0);
Expand Down Expand Up @@ -62,7 +62,7 @@ function symlinkNgCLItoNxCLI() {

try {
symlinkNgCLItoNxCLI();
require('@nrwl/cli/lib/decorate-cli').decorateCli();
require('nx/src/adapter/decorate-cli').decorateCli();
output.log({ title: 'Angular CLI has been decorated to enable computation caching.' });
} catch(e) {
output.error({ title: 'Decoration of the Angular CLI did not complete successfully' });
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 };
4 changes: 2 additions & 2 deletions libs/frameworks/ng-video-player/.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: 1 addition & 7 deletions libs/frameworks/ng-video-player/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/frameworks/ng-video-player/src/**/*.ts",
"libs/frameworks/ng-video-player/src/**/*.html"
]
}
"executor": "@nx/eslint:lint"
}
},
"tags": []
Expand Down

0 comments on commit b853d6a

Please sign in to comment.