Skip to content

Commit

Permalink
fix(chore): renamed example into ng-nx (#45)
Browse files Browse the repository at this point in the history
* fix(chore): renamed example into ng-nx

* fix(chore): renamed example into ng-nx

* fix(chore): renamed folder

* fix(chore): renamed folder
  • Loading branch information
SvetlanaMuravlova authored Sep 23, 2024
1 parent 1c57eb5 commit 0b2f9f7
Show file tree
Hide file tree
Showing 42 changed files with 32 additions and 29 deletions.
2 changes: 0 additions & 2 deletions examples/ng-nx-v15/src/app/app.component.html

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"error",
{
"type": "element",
"prefix": "nx-v15-ng-v14",
"prefix": "nx-ng",
"style": "kebab-case"
}
],
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 @@ -4,21 +4,21 @@
"sourceRoot": "e2e/src",
"projectType": "application",
"tags": [],
"implicitDependencies": ["nx-v15-ng-v14"],
"implicitDependencies": ["nx-ng"],
"targets": {
"e2e": {
"executor": "@nx/cypress:cypress",
"options": {
"cypressConfig": "e2e/cypress.config.ts",
"devServerTarget": "nx-v15-ng-v14:serve:development",
"devServerTarget": "nx-ng:serve:development",
"testingType": "e2e"
},
"configurations": {
"production": {
"devServerTarget": "nx-v15-ng-v14:serve:production"
"devServerTarget": "nx-ng:serve:production"
},
"ci": {
"devServerTarget": "nx-v15-ng-v14:serve-static"
"devServerTarget": "nx-ng:serve-static"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { getGreeting } from '../support/app.po';

describe('nx-v15-ng-v14', () => {
describe('nx-ng', () => {
beforeEach(() => cy.visit('/'));

it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('[email protected]', 'myPassword');

// Function helper example, see `../support/app.po.ts` file
getGreeting().contains('Welcome nx-v15-ng-v14');
getGreeting().contains('Welcome nx-ng');
});
});
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,9 +1,9 @@
/* eslint-disable */
export default {
displayName: 'nx-v15-ng-v14',
displayName: 'nx-ng',
preset: './jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: './coverage/nx-v15-ng-v14',
coverageDirectory: './coverage/nx-ng',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/ng-nx-v15/nx.json → examples/nx-ng/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"style": "css"
}
},
"defaultProject": "nx-v15-ng-v14",
"defaultProject": "nx-ng",
"useInferencePlugins": false,
"defaultBase": "master"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nx-v15-ng-v14",
"name": "nx-ng",
"version": "0.0.0",
"license": "MIT",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions examples/ng-nx-v15/project.json → examples/nx-ng/project.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "nx-v15-ng-v14",
"name": "nx-ng",
"$schema": "node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"prefix": "nx-v15-ng-v14",
"prefix": "nx-ng",
"sourceRoot": "./src",
"tags": [],
"targets": {
Expand All @@ -14,7 +14,7 @@
"path": "./extra-webpack.config.js"
},
"indexTransform": "./index-html-transform.js",
"outputPath": "dist/nx-v15-ng-v14",
"outputPath": "dist/nx-ng",
"index": "./src/index.html",
"main": "./src/main.ts",
"polyfills": ["zone.js"],
Expand Down Expand Up @@ -54,18 +54,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "nx-v15-ng-v14:build:production"
"buildTarget": "nx-ng:build:production"
},
"development": {
"buildTarget": "nx-v15-ng-v14:build:development"
"buildTarget": "nx-ng:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "nx-v15-ng-v14:build"
"buildTarget": "nx-ng:build"
}
},
"lint": {
Expand All @@ -84,7 +84,7 @@
"serve-static": {
"executor": "@nx/web:file-server",
"options": {
"buildTarget": "nx-v15-ng-v14:build"
"buildTarget": "nx-ng:build"
}
}
}
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions examples/nx-ng/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<nx-ng-welcome></nx-ng-welcome>
<router-outlet></router-outlet>
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe('AppComponent', () => {
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain(
'Welcome nx-v15-ng-v14'
'Welcome nx-ng'
);
});

it(`should have as title 'nx-v15-ng-v14'`, () => {
it(`should have as title 'nx-ng'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('nx-v15-ng-v14');
expect(app.title).toEqual('nx-ng');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { NxWelcomeComponent } from './nx-welcome.component';
@Component({
standalone: true,
imports: [NxWelcomeComponent, RouterModule],
selector: 'nx-v15-ng-v14-root',
selector: 'nx-ng-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'nx-v15-ng-v14';
title = 'nx-ng';
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';

@Component({
selector: 'nx-v15-ng-v14-nx-welcome',
selector: 'nx-ng-welcome',
standalone: true,
imports: [CommonModule],
template: `
Expand Down Expand Up @@ -423,7 +423,7 @@ import { CommonModule } from '@angular/common';
<div id="welcome">
<h1>
<span> Hello there, </span>
Welcome nx-v15-ng-v14 👋
Welcome nx-ng 👋
</h1>
</div>
<!-- HERO -->
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>nx-v15-ng-v14</title>
<title>nx-ng</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<nx-v15-ng-v14-root></nx-v15-ng-v14-root>
<nx-ng-root></nx-ng-root>
</body>
</html>
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.

0 comments on commit 0b2f9f7

Please sign in to comment.