-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new files and update dependencies
- Loading branch information
1 parent
78dd0dc
commit 2904e70
Showing
39 changed files
with
11,682 additions
and
30,809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"workbench.colorCustomizations": { | ||
"activityBar.background": "#2B3106", | ||
"titleBar.activeBackground": "#3C4408", | ||
"titleBar.activeForeground": "#F9FCE5" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
apps/mehrzweck-e2e/project.json → apps/container-e2e/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "mehrzweck-e2e", | ||
"name": "container-e2e", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "application", | ||
"sourceRoot": "apps/mehrzweck-e2e/src", | ||
"sourceRoot": "apps/container-e2e/src", | ||
"targets": {}, | ||
"implicitDependencies": ["mehrzweck"], | ||
"implicitDependencies": ["container"], | ||
"tags": [] | ||
} |
2 changes: 1 addition & 1 deletion
2
apps/mehrzweck-e2e/src/e2e/app.cy.ts → apps/container-e2e/src/e2e/app.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
4 changes: 2 additions & 2 deletions
4
apps/mehrzweck/jest.config.ts → apps/container/jest.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'mehrzweck', | ||
displayName: 'container', | ||
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/mehrzweck', | ||
coverageDirectory: '../../coverage/apps/container', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ModuleFederationConfig } from '@nx/webpack'; | ||
|
||
const config: ModuleFederationConfig = { | ||
name: 'container', | ||
/** | ||
* To use a remote that does not exist in your current Nx Workspace | ||
* You can use the tuple-syntax to define your remote | ||
* | ||
* remotes: [['my-external-remote', 'https://nx-angular-remote.netlify.app']] | ||
* | ||
* You _may_ need to add a `remotes.d.ts` file to your `src/` folder declaring the external remote for tsc, with the | ||
* following content: | ||
* | ||
* declare module 'my-external-remote'; | ||
* | ||
*/ | ||
remotes: [ | ||
['genel-muhasebe', 'http://localhost:3005/remoteEntry.js'] | ||
], | ||
exposes: { | ||
'./App': 'apps/container/src/app/app', | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"name": "container", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/container/src", | ||
"projectType": "application", | ||
"targets": { | ||
"build": { | ||
"executor": "@nx/webpack:webpack", | ||
"outputs": ["{options.outputPath}"], | ||
"defaultConfiguration": "production", | ||
"options": { | ||
"compiler": "babel", | ||
"outputPath": "dist/apps/container", | ||
"index": "apps/container/src/index.html", | ||
"baseHref": "/", | ||
"main": "apps/container/src/main.ts", | ||
"tsConfig": "apps/container/tsconfig.app.json", | ||
"assets": [ | ||
"apps/container/src/favicon.ico", | ||
"apps/container/src/assets" | ||
], | ||
"styles": ["apps/container/src/styles.css"], | ||
"scripts": [], | ||
"webpackConfig": "apps/container/webpack.config.ts" | ||
}, | ||
"configurations": { | ||
"development": { | ||
"extractLicenses": false, | ||
"optimization": false, | ||
"sourceMap": true, | ||
"vendorChunk": true | ||
}, | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"replace": "apps/container/src/environments/environment.ts", | ||
"with": "apps/container/src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"namedChunks": false, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"webpackConfig": "apps/container/webpack.config.prod.ts" | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"executor": "@nx/react:module-federation-dev-server", | ||
"defaultConfiguration": "development", | ||
"options": { | ||
"buildTarget": "container:build", | ||
"hmr": true, | ||
"liveReload": true, | ||
"watch": true, | ||
"port": 3002 | ||
}, | ||
"configurations": { | ||
"development": { | ||
"buildTarget": "container:build:development", | ||
"hmr": true, | ||
"liveReload": true, | ||
"watch": true, | ||
"port": 3002 | ||
}, | ||
"production": { | ||
"buildTarget": "container:build:production", | ||
"hmr": false | ||
} | ||
} | ||
}, | ||
"serve-static": { | ||
"executor": "@nx/web:file-server", | ||
"defaultConfiguration": "production", | ||
"options": { | ||
"buildTarget": "container:build", | ||
"watch": false, | ||
"port": 3002 | ||
}, | ||
"configurations": { | ||
"development": { | ||
"buildTarget": "container:build:development" | ||
}, | ||
"production": { | ||
"buildTarget": "container:build:production" | ||
} | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { render } from '@testing-library/react'; | ||
|
||
import { BrowserRouter } from 'react-router-dom'; | ||
|
||
import App from './app'; | ||
|
||
describe('App', () => { | ||
it('should render successfully', () => { | ||
const { baseElement } = render( | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
); | ||
expect(baseElement).toBeTruthy(); | ||
}); | ||
|
||
it('should have a greeting as the title', () => { | ||
const { getByText } = render( | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
); | ||
expect(getByText(/Welcome container/gi)).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
|
||
import NxWelcome from './nx-welcome'; | ||
|
||
import { Link, Route, Routes } from 'react-router-dom'; | ||
|
||
export function App() { | ||
return ( | ||
<React.Suspense fallback={null}> | ||
<ul> | ||
<li> | ||
<Link to="/">1122222222</Link> | ||
</li> | ||
</ul> | ||
<Routes> | ||
<Route path="/" element={<NxWelcome title="container" />} /> | ||
</Routes> | ||
</React.Suspense> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import('./bootstrap').catch((err) => console.error(err)); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { composePlugins, withNx } from '@nx/webpack'; | ||
import { withReact } from '@nx/react'; | ||
import { withModuleFederation } from '@nx/react/module-federation'; | ||
import { ModuleFederationConfig } from '@nx/webpack'; | ||
|
||
import baseConfig from './module-federation.config'; | ||
|
||
const prodConfig: ModuleFederationConfig = { | ||
...baseConfig, | ||
/* | ||
* Remote overrides for production. | ||
* Each entry is a pair of a unique name and the URL where it is deployed. | ||
* | ||
* e.g. | ||
* remotes: [ | ||
* ['app1', 'http://app1.example.com'], | ||
* ['app2', 'http://app2.example.com'], | ||
* ] | ||
* | ||
* You can also use a full path to the remoteEntry.js file if desired. | ||
* | ||
* remotes: [ | ||
* ['app1', 'http://example.com/path/to/app1/remoteEntry.js'], | ||
* ['app2', 'http://example.com/path/to/app2/remoteEntry.js'], | ||
* ] | ||
*/ | ||
remotes: [ | ||
['genel-muhasebe', 'http://localhost:3005/remoteEntry.js'] | ||
] | ||
}; | ||
|
||
// Nx plugins for webpack to build config object from Nx options and context. | ||
export default composePlugins( | ||
withNx(), | ||
withReact(), | ||
withModuleFederation(prodConfig) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { composePlugins, withNx, ModuleFederationConfig } from '@nx/webpack'; | ||
import { withReact } from '@nx/react'; | ||
import { withModuleFederation } from '@nx/react/module-federation'; | ||
|
||
import baseConfig from './module-federation.config'; | ||
|
||
const config: ModuleFederationConfig = { | ||
...baseConfig, | ||
}; | ||
|
||
// Nx plugins for webpack to build config object from Nx options and context. | ||
export default composePlugins( | ||
withNx(), | ||
withReact(), | ||
withModuleFederation(config), | ||
(config) => { | ||
return { | ||
...config, | ||
}; | ||
} | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.