diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a420cd3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "workbench.colorCustomizations": { + "activityBar.background": "#0C3049", + "titleBar.activeBackground": "#104367", + "titleBar.activeForeground": "#F6FAFE" + } +} \ No newline at end of file diff --git a/apps/mfe-tutorial-e2e/.eslintrc.json b/apps/mfe-tutorial-e2e/.eslintrc.json deleted file mode 100644 index fbf2c97..0000000 --- a/apps/mfe-tutorial-e2e/.eslintrc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": ["plugin:playwright/recommended", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["src/**/*.{ts,js,tsx,jsx}"], - "rules": {} - } - ] -} diff --git a/apps/mfe-tutorial-e2e/playwright.config.ts b/apps/mfe-tutorial-e2e/playwright.config.ts deleted file mode 100644 index e122796..0000000 --- a/apps/mfe-tutorial-e2e/playwright.config.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { defineConfig, devices } from '@playwright/test'; -import { nxE2EPreset } from '@nx/playwright/preset'; - -import { workspaceRoot } from '@nx/devkit'; - -// For CI, you may want to set BASE_URL to the deployed application. -const baseURL = process.env['BASE_URL'] || 'http://localhost:4200'; - -/** - * Read environment variables from file. - * https://github.com/motdotla/dotenv - */ -// require('dotenv').config(); - -/** - * See https://playwright.dev/docs/test-configuration. - */ -export default defineConfig({ - ...nxE2EPreset(__filename, { testDir: './src' }), - /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ - use: { - baseURL, - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: 'on-first-retry', - }, - /* Run your local dev server before starting the tests */ - webServer: { - command: 'pnpm exec nx serve mfe-tutorial', - url: 'http://localhost:4200', - reuseExistingServer: !process.env.CI, - cwd: workspaceRoot, - }, - projects: [ - { - name: 'chromium', - use: { ...devices['Desktop Chrome'] }, - }, - - { - name: 'firefox', - use: { ...devices['Desktop Firefox'] }, - }, - - { - name: 'webkit', - use: { ...devices['Desktop Safari'] }, - }, - - // Uncomment for mobile browsers support - /* { - name: 'Mobile Chrome', - use: { ...devices['Pixel 5'] }, - }, - { - name: 'Mobile Safari', - use: { ...devices['iPhone 12'] }, - }, */ - - // Uncomment for branded browsers - /* { - name: 'Microsoft Edge', - use: { ...devices['Desktop Edge'], channel: 'msedge' }, - }, - { - name: 'Google Chrome', - use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - } */ - ], -}); diff --git a/apps/mfe-tutorial-e2e/project.json b/apps/mfe-tutorial-e2e/project.json deleted file mode 100644 index 7915aa1..0000000 --- a/apps/mfe-tutorial-e2e/project.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "mfe-tutorial-e2e", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "projectType": "application", - "sourceRoot": "apps/mfe-tutorial-e2e/src", - "implicitDependencies": ["mfe-tutorial"], - "// targets": "to see all targets run: nx show project mfe-tutorial-e2e --web", - "targets": {} -} diff --git a/apps/mfe-tutorial-e2e/src/example.spec.ts b/apps/mfe-tutorial-e2e/src/example.spec.ts deleted file mode 100644 index fa8f1f3..0000000 --- a/apps/mfe-tutorial-e2e/src/example.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { test, expect } from '@playwright/test'; - -test('has title', async ({ page }) => { - await page.goto('/'); - - // Expect h1 to contain a substring. - expect(await page.locator('h1').innerText()).toContain('Welcome'); -}); diff --git a/apps/mfe-tutorial-e2e/tsconfig.json b/apps/mfe-tutorial-e2e/tsconfig.json deleted file mode 100644 index 114364a..0000000 --- a/apps/mfe-tutorial-e2e/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "allowJs": true, - "outDir": "../../dist/out-tsc", - "module": "commonjs", - "sourceMap": false - }, - "include": [ - "**/*.ts", - "**/*.js", - "playwright.config.ts", - "src/**/*.spec.ts", - "src/**/*.spec.js", - "src/**/*.test.ts", - "src/**/*.test.js", - "src/**/*.d.ts" - ] -} diff --git a/apps/mfe-tutorial/.babelrc b/apps/mfe-tutorial/.babelrc deleted file mode 100644 index 88ee27b..0000000 --- a/apps/mfe-tutorial/.babelrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "presets": [ - [ - "@nx/react/babel", - { - "runtime": "automatic" - } - ] - ], - "plugins": [] -} diff --git a/apps/mfe-tutorial/.eslintrc.json b/apps/mfe-tutorial/.eslintrc.json deleted file mode 100644 index a39ac5d..0000000 --- a/apps/mfe-tutorial/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/apps/mfe-tutorial/jest.config.ts b/apps/mfe-tutorial/jest.config.ts deleted file mode 100644 index d1767f7..0000000 --- a/apps/mfe-tutorial/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'mfe-tutorial', - preset: '../../jest.preset.js', - transform: { - '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', - '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }], - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../coverage/apps/mfe-tutorial', -}; diff --git a/apps/mfe-tutorial/postcss.config.js b/apps/mfe-tutorial/postcss.config.js deleted file mode 100644 index c72626d..0000000 --- a/apps/mfe-tutorial/postcss.config.js +++ /dev/null @@ -1,15 +0,0 @@ -const { join } = require('path'); - -// Note: If you use library-specific PostCSS/Tailwind configuration then you should remove the `postcssConfig` build -// option from your application's configuration (i.e. project.json). -// -// See: https://nx.dev/guides/using-tailwind-css-in-react#step-4:-applying-configuration-to-libraries - -module.exports = { - plugins: { - tailwindcss: { - config: join(__dirname, 'tailwind.config.js'), - }, - autoprefixer: {}, - }, -}; diff --git a/apps/mfe-tutorial/project.json b/apps/mfe-tutorial/project.json deleted file mode 100644 index 595f3ba..0000000 --- a/apps/mfe-tutorial/project.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "mfe-tutorial", - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/mfe-tutorial/src", - "projectType": "application", - "tags": [], - "// targets": "to see all targets run: nx show project mfe-tutorial --web", - "targets": {} -} diff --git a/apps/mfe-tutorial/src/app/app.spec.tsx b/apps/mfe-tutorial/src/app/app.spec.tsx deleted file mode 100644 index 79887da..0000000 --- a/apps/mfe-tutorial/src/app/app.spec.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { render } from '@testing-library/react'; - -import App from './app'; - -describe('App', () => { - it('should render successfully', () => { - const { baseElement } = render(); - expect(baseElement).toBeTruthy(); - }); - - it('should have a greeting as the title', () => { - const { getByText } = render(); - expect(getByText(/Welcome mfe-tutorial/gi)).toBeTruthy(); - }); -}); diff --git a/apps/mfe-tutorial/src/app/app.tsx b/apps/mfe-tutorial/src/app/app.tsx deleted file mode 100644 index 8052b6a..0000000 --- a/apps/mfe-tutorial/src/app/app.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import NxWelcome from './nx-welcome'; - -export function App() { - return ( -
- -
- ); -} - -export default App; diff --git a/apps/mfe-tutorial/src/app/nx-welcome.tsx b/apps/mfe-tutorial/src/app/nx-welcome.tsx deleted file mode 100644 index 6b518b9..0000000 --- a/apps/mfe-tutorial/src/app/nx-welcome.tsx +++ /dev/null @@ -1,886 +0,0 @@ -/* - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - This is a starter component and can be deleted. - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - Delete this file and get started with your project! - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - */ -export function NxWelcome({ title }: { title: string }) { - return ( - <> -