Skip to content

Commit

Permalink
Merge branch 'main' into chore/use-real-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy authored Oct 8, 2024
2 parents 1980dfa + 8a77291 commit f5634c3
Show file tree
Hide file tree
Showing 308 changed files with 27,915 additions and 37,725 deletions.
10 changes: 0 additions & 10 deletions .changeset/ai-brave-tiger.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/ai-brave-wolf.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/ai-calm-bear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@module-federation/enhanced": patch
---

Added a check to skip processing when virtualRuntimeEntry is present.

- Added an early return in `FederationRuntimePlugin` to skip processing if `options.virtualRuntimeEntry` is defined.
13 changes: 0 additions & 13 deletions .changeset/ai-hungry-wolf.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/ai-lazy-cat.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/ai-quick-lion.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/ai-sleepy-lion.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/chilly-rocks-deliver.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/cuddly-pumpkins-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/bridge-react': patch
---

fix(bridge-react): add default basename for WraperRouterProvider
5 changes: 0 additions & 5 deletions .changeset/eight-comics-reflect.md

This file was deleted.

8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {
"@typescript-eslint/no-useless-constructor": "off"
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/devtools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ jobs:
npx kill-port 3009 3010 3011 3012 3013 4001 &&
npx kill-port 3009 3010 3011 3012 3013 4001 &&
pnpm run app:manifest:prod & echo "done" && \
npx kill-port 4001
npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 tcp:3013 && \
sleep 10 &&
sleep 30 &&
npx nx e2e:devtools chrome-devtools
- name: kill port
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-modern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:
- name: E2E Test for ModernJS
if: steps.check-ci.outcome == 'success'
run: npx kill-port --port 4001 && npx nx run-many --target=test:e2e --projects=modernjs --parallel=1 && npx kill-port --port 4001

- name: Kill ports
run: npx kill-port --port 4001
2 changes: 1 addition & 1 deletion .github/workflows/e2e-next-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
npx wait-on tcp:3002 &&
npx wait-on tcp:3000 &&
npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=1 &&
lsof -ti tcp:3000,3001,3002 | xargs kill
npx kill-port 3000,3001,3002
2 changes: 1 addition & 1 deletion .github/workflows/e2e-next-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
npx wait-on tcp:3002 &&
npx wait-on tcp:3000 &&
npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=1 &&
lsof -ti tcp:3000,3001,3002 | xargs kill
npx kill-port 3000,3001,3002
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install deps
run: pnpm install

- name: Build and test Packages
- name: Build Packages
run: pnpm run build:pkg

- name: Release
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
pnpm-lock.yaml
**/dist/**
apps/website-new/docs

/.nx/workspace-data
/.nx/cache
5 changes: 3 additions & 2 deletions ai-lint-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ async function lintFileContent(fileContent) {
RULES:
-Should preserve uses of normalizeWebpackPath
-Should preserve uses of ts-ignore
-Removed commented out code
-Should improve the source code while ensuing its logic is preserved and functionality is not altered
-Update existing comments for accuracy
-Return only the updated file content with no other response text:
${fileContent}`;

const response = await openai.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: prompt }],
max_tokens: 4096,
max_completion_tokens: 4096,
});

let res = response.choices[0].message.content.trim().split('\n');
Expand Down
1 change: 0 additions & 1 deletion apps/3000-home/components/SharedNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const SharedNav = () => {
</>
),
key: '/',
onMouseEnter: () => {},
},
{
className: 'shop-menu-link',
Expand Down
17 changes: 2 additions & 15 deletions apps/3000-home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,9 @@
"dependencies": {
"antd": "5.19.1",
"@ant-design/cssinjs": "^1.21.0",
"buffer": "5.7.1",
"encoding": "0.1.13",
"eslint-scope": "7.2.2",
"events": "3.3.0",
"js-cookie": "3.0.5",
"lodash": "4.17.21",
"next": "14.1.2",
"node-fetch": "2.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"schema-utils": "3.3.0",
"terser-webpack-plugin": "5.3.10",
"typescript": "5.3.3",
"upath": "2.0.1",
"url": "0.11.3",
"util": "0.12.5"
"next": "14.2.14",
"react": "18.3.1"
},
"devDependencies": {
"@module-federation/nextjs-mf": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/3000-home/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/3000-home",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"executor": "@nx/next:build",
Expand Down Expand Up @@ -93,6 +94,5 @@
]
}
}
},
"tags": []
}
}
24 changes: 2 additions & 22 deletions apps/3001-shop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,11 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"acorn": "8.12.1",
"antd": "5.19.1",
"@ant-design/cssinjs": "^1.21.0",
"buffer": "5.7.1",
"chrome-trace-event": "1.0.4",
"encoding": "0.1.13",
"enhanced-resolve": "5.15.0",
"eslint-scope": "7.2.2",
"eventemitter3": "5.0.1",
"events": "3.3.0",
"fast-glob": "3.3.2",
"lodash": "4.17.21",
"next": "14.1.2",
"node-fetch": "2.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"schema-utils": "3.3.0",
"semver": "6.3.1",
"tapable": "2.2.1",
"terser-webpack-plugin": "5.3.10",
"typescript": "5.3.3",
"upath": "2.0.1",
"url": "0.11.3",
"util": "0.12.5",
"webpack-sources": "3.2.3"
"next": "14.2.14",
"react": "18.3.1"
},
"devDependencies": {
"@module-federation/nextjs-mf": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/3001-shop/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/3001-shop",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"executor": "@nx/next:build",
Expand Down Expand Up @@ -92,6 +93,5 @@
}
}
}
},
"tags": []
}
}
24 changes: 2 additions & 22 deletions apps/3002-checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,11 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"acorn": "8.12.1",
"antd": "5.19.1",
"@ant-design/cssinjs": "^1.21.0",
"buffer": "5.7.1",
"chrome-trace-event": "1.0.4",
"encoding": "0.1.13",
"enhanced-resolve": "5.15.0",
"eslint-scope": "7.2.2",
"eventemitter3": "5.0.1",
"events": "3.3.0",
"fast-glob": "3.3.2",
"lodash": "4.17.21",
"next": "14.1.2",
"node-fetch": "2.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"schema-utils": "3.3.0",
"semver": "6.3.1",
"tapable": "2.2.1",
"terser-webpack-plugin": "5.3.10",
"typescript": "5.3.3",
"upath": "2.0.1",
"url": "0.11.3",
"util": "0.12.5",
"webpack-sources": "3.2.3"
"next": "14.2.14",
"react": "18.3.1"
},
"devDependencies": {
"@module-federation/nextjs-mf": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/3002-checkout/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/3002-checkout",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"executor": "@nx/next:build",
Expand Down Expand Up @@ -92,6 +93,5 @@
}
}
}
},
"tags": []
}
}
2 changes: 1 addition & 1 deletion apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/docs/src",
"implicitDependencies": ["docs-ui"],
"tags": [],
"implicitDependencies": ["docs-ui"],
"targets": {
"serve": {
"executor": "@nx/web:file-server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cd myorganization
+
[source, bash]
----
npm install @nrwl/angular
npm install @nx/angular
----

=== Generating the Applications
Expand Down Expand Up @@ -105,4 +105,4 @@ If you are actively working on the 'login' application and need to see the resul
npx nx serve-ssr dashboard --devRemotes=login
----

Using this command, the server will rebuild the 'login' application whenever you make changes, allowing for an iterative and efficient development process.
Using this command, the server will rebuild the 'login' application whenever you make changes, allowing for an iterative and efficient development process.
Loading

0 comments on commit f5634c3

Please sign in to comment.