From 0153bf2b809d4a66a5917cb540d1fd99892b9729 Mon Sep 17 00:00:00 2001 From: Brandon Seydel Date: Wed, 18 Jan 2023 20:31:38 -0600 Subject: [PATCH] rename my-app to app round 2 --- __test__/after-task.spec.js | 20 +++++++++---------- .../app.spec.ext__if_not_plugin | 4 ++-- app-min/src/my-app.ext | 2 +- .../my-app.spec.ext | 6 +++--- app-with-router/src/my-app.ext | 2 +- common/README.md__skip-if-exists | 2 +- common/src/main.ext__if_app | 4 ++-- dumber/_index.html | 2 +- parcel/index.html | 2 +- plugin-min/dev-app/main.ext | 4 ++-- plugin-min/dev-app/my-app.ext | 2 +- webpack/index.html | 2 +- 12 files changed, 26 insertions(+), 26 deletions(-) diff --git a/__test__/after-task.spec.js b/__test__/after-task.spec.js index 7bff727..2fd5c10 100644 --- a/__test__/after-task.spec.js +++ b/__test__/after-task.spec.js @@ -25,7 +25,7 @@ test('"after" task only prints summary in unattended mode', async t => { here: false, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors @@ -38,7 +38,7 @@ test('"after" task only prints summary in unattended mode', async t => { t.is(printOut, '\nGet Started\n' + - 'cd my-app\n' + + 'cd app\n' + 'npm install\n' + 'npm start\n\n' ); @@ -61,7 +61,7 @@ test('"after" task only prints summary in unattended mode and here mode', async here: true, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors @@ -98,7 +98,7 @@ test('"after" task installs deps with npm, and prints summary', async t => { here: false, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors @@ -113,7 +113,7 @@ test('"after" task installs deps with npm, and prints summary', async t => { '\nNext time, you can try to create similar project in silent mode:\n' + ' npx makes aurelia new-project-name -s a,b-c \n\n' + 'Get Started\n' + - 'cd my-app\n' + + 'cd app\n' + 'npm start\n\n' ); }); @@ -137,7 +137,7 @@ test('"after" task installs deps with yarn, and prints summary', async t => { here: false, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors @@ -152,7 +152,7 @@ test('"after" task installs deps with yarn, and prints summary', async t => { '\nNext time, you can try to create similar project in silent mode:\n' + ' npx makes aurelia new-project-name -s a,b-c \n\n' + 'Get Started\n' + - 'cd my-app\n' + + 'cd app\n' + 'yarn start\n\n' ); }); @@ -176,7 +176,7 @@ test('"after" task installs deps with pnpm, and prints summary', async t => { here: false, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors @@ -191,7 +191,7 @@ test('"after" task installs deps with pnpm, and prints summary', async t => { '\nNext time, you can try to create similar project in silent mode:\n' + ' npx makes aurelia new-project-name -s a,b-c \n\n' + 'Get Started\n' + - 'cd my-app\n' + + 'cd app\n' + 'pnpm start\n\n' ); }); @@ -215,7 +215,7 @@ test('"after" task installs deps, and prints summary in here mode', async t => { here: true, prompts, run, - properties: {name: 'my-app'}, + properties: {name: 'app'}, features: ['a', 'b'], notDefaultFeatures: ['a', 'b-c'], ansiColors diff --git a/app-min/e2e__if_playwright/app.spec.ext__if_not_plugin b/app-min/e2e__if_playwright/app.spec.ext__if_not_plugin index 9e747ef..d37b0e7 100644 --- a/app-min/e2e__if_playwright/app.spec.ext__if_not_plugin +++ b/app-min/e2e__if_playwright/app.spec.ext__if_not_plugin @@ -9,8 +9,8 @@ test.beforeEach(async ({ page }) => { await page.goto('http://localhost:9000'); }); -test.describe('MyApp', () => { +test.describe('App', () => { test('shows message', async ({ page }) => { - await expect(page.locator('my-app div')).toHaveText('Hello World!'); + await expect(page.locator('app div')).toHaveText('Hello World!'); }); }); diff --git a/app-min/src/my-app.ext b/app-min/src/my-app.ext index 008d10f..c346c3c 100644 --- a/app-min/src/my-app.ext +++ b/app-min/src/my-app.ext @@ -1,3 +1,3 @@ -export class MyApp { +export class App { /* @if typescript */public /* @endif */message = 'Hello World!'; } diff --git a/app-min/test__if_not_no-unit-tests/my-app.spec.ext b/app-min/test__if_not_no-unit-tests/my-app.spec.ext index 60350f5..dac2273 100644 --- a/app-min/test__if_not_no-unit-tests/my-app.spec.ext +++ b/app-min/test__if_not_no-unit-tests/my-app.spec.ext @@ -5,11 +5,11 @@ import { expect } from 'chai'; import { CustomElement } from 'aurelia'; // @endif import { render } from './helper'; -import { MyApp } from '../src/my-app'; +import { App } from '../src/app'; -describe('my-app', () => { +describe('app', () => { it('should render message', async () => { - const node = (await render('', MyApp)).firstElementChild; + const node = (await render('', App)).firstElementChild; // @if shadow-dom // In Shadow DOM open mode, shadowRoot is also accessible through DOM API // node.shadowRoot diff --git a/app-with-router/src/my-app.ext b/app-with-router/src/my-app.ext index c6fa3a3..832b3e7 100644 --- a/app-with-router/src/my-app.ext +++ b/app-with-router/src/my-app.ext @@ -1,2 +1,2 @@ -export class MyApp { +export class App { } diff --git a/common/README.md__skip-if-exists b/common/README.md__skip-if-exists index 7e4ef2e..4eaaaa2 100644 --- a/common/README.md__skip-if-exists +++ b/common/README.md__skip-if-exists @@ -79,7 +79,7 @@ import * as myPlugin from '/* @echo name */'; Aurelia // Load all exports from the plugin .register(myPlugin) - .app(MyApp) + .app(App) .start(); ``` // @endif diff --git a/common/src/main.ext__if_app b/common/src/main.ext__if_app index 958a924..8af87ce 100644 --- a/common/src/main.ext__if_app +++ b/common/src/main.ext__if_app @@ -6,7 +6,7 @@ import Aurelia/* @if shadow-dom *//*, { StyleConfiguration }*//* @endif */ from // @if app-with-router import { RouterConfiguration } from '@aurelia/router'; // @endif -import { MyApp } from './my-app'; +import { App } from './app'; // @if shadow-dom // @if webpack // Css files imported in this main file are NOT processed by style-loader @@ -31,5 +31,5 @@ Aurelia // customized router config. // .register(RouterConfiguration.customize({ useUrlFragmentHash: false })) // @endif - .app(MyApp) + .app(App) .start(); diff --git a/dumber/_index.html b/dumber/_index.html index 5f4db91..e049bb2 100644 --- a/dumber/_index.html +++ b/dumber/_index.html @@ -9,7 +9,7 @@ - + diff --git a/parcel/index.html b/parcel/index.html index e0f684c..54da042 100644 --- a/parcel/index.html +++ b/parcel/index.html @@ -15,7 +15,7 @@ - + diff --git a/plugin-min/dev-app/main.ext b/plugin-min/dev-app/main.ext index 35dfefd..ca47a0f 100644 --- a/plugin-min/dev-app/main.ext +++ b/plugin-min/dev-app/main.ext @@ -3,7 +3,7 @@ import 'promise-polyfill/lib/polyfill'; // @endif import Aurelia/* @if shadow-dom *//*, { StyleConfiguration }*//* @endif */ from 'aurelia'; -import { MyApp } from './my-app'; +import { App } from './app'; // @if shadow-dom // @if webpack // Css files imported in this main file are NOT processed by style-loader @@ -25,5 +25,5 @@ Aurelia // @endif // Register all exports of the plugin .register(Plugin) - .app(MyApp) + .app(App) .start(); diff --git a/plugin-min/dev-app/my-app.ext b/plugin-min/dev-app/my-app.ext index c6fa3a3..832b3e7 100644 --- a/plugin-min/dev-app/my-app.ext +++ b/plugin-min/dev-app/my-app.ext @@ -1,2 +1,2 @@ -export class MyApp { +export class App { } diff --git a/webpack/index.html b/webpack/index.html index cdb91b3..e94127c 100644 --- a/webpack/index.html +++ b/webpack/index.html @@ -9,7 +9,7 @@ - +