Skip to content

Commit d2a4dfa

Browse files
pavandvScriptedAlchemyvalorkin
authored
feat: Move Repo to NX (#154)
* feat: config NX Workspace * refactor: remove test package * refactor: migrate remaining loaders to Typescript * fix: renovate.json is missing * refactor: Update ReadMe in `nextjs-mf` package * refactor: update Root ReadMe * refactor: add default project * fix: update package json for publish * feat: add missing deps * chore: add npm script to build the package * feat: support incremental migration * feat: add Home app using NX * fix: Federation plugin can't be resolved * fix: configure hybrid modal of JS and TS * fix: demos can't resolve the federation package * fix: build home app is throws source and destination can't be same error * feat: add basic shop app * feat: add home app components * feat: scaffold a new package for mf-node * feat: migrate internals & utils to ts * feat: migrate Dev HMR Plugin to TS * feat: Migrate RR Runtime Plugin to TS * feat: migrate Module Federation Plugin * feat: add Runtime Req plugin * refactor: extra all types to types file * feat: move child Federation plugin to its own file * refactor: use new created files for plugins inside NextFedPlugin * refactor: extra types and utils to root of the package * feat: add module federation client flies to nextjs-mf package * chore: add Funding yml * feat: migrate node package to typescript * feat: migrate home app to ts * fix: Image loader is not up-to-date * fix: URL Loader is not a default export * fix: next pageMap loader is not latest fixes #199 * feat: patch next client page loader * fix: wrong port numbers references in home & shop app * feat: migrate checkout app * feat: add internal shared package * feat: migration shop app * refactor: use mfRoutes from @intenal/shared package * fix: resolve all the remaining issues * feat: change application ports to 3000 ranges * refactor: move applications to new folders * fix: InjectScript fails to resolve the remote container fixes #205 * feat: Utils should use extractUrlAndGlobal instead of string#split fixes #144 * fix: remove package json files from apps as they are redundant. * refactor: move all src files related to checkout inside src folder * style: resolve types issues * chore: add package script to serve all apps at once * refactor: remove the internal shared package and inline its resources * feat: configure apps to have its own independent packages * refactor: sync main branch code * fixing some type errors * fix: build utils error * ignore proces env accessor * fix: build utils Proxy set function * feat: utils verdaccio (#212) * feat: add utils and verdaccio * chore: drop verdaccio cache Co-authored-by: ScriptedAlchemy <zackary.l.jackson@gmail.com> Co-authored-by: Dmitriy Shekhovtsov <valorkin@gmail.com>
1 parent c90a4c7 commit d2a4dfa

File tree

172 files changed

+13367
-7034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+13367
-7034
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintrc.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nrwl/nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nrwl/nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
42+
}

.gitignore

+42-106
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,43 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
.idea
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
44-
45-
# TypeScript v1 declaration files
46-
typings/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Microbundle cache
58-
.rpt2_cache/
59-
.rts2_cache_cjs/
60-
.rts2_cache_es/
61-
.rts2_cache_umd/
62-
63-
# Optional REPL history
64-
.node_repl_history
65-
66-
# Output of 'npm pack'
67-
*.tgz
68-
69-
# Yarn Integrity file
70-
.yarn-integrity
71-
72-
# dotenv environment variables file
73-
.env
74-
.env.test
75-
76-
# parcel-bundler cache (https://parceljs.org/)
77-
.cache
78-
79-
# Next.js build output
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/build
8+
9+
# dependencies
10+
node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
npm-debug.log
34+
yarn-error.log
35+
testem.log
36+
/typings
37+
38+
# System Files
39+
.DS_Store
40+
Thumbs.db
41+
42+
# Next.js
8043
.next
81-
82-
# Nuxt.js build / generate output
83-
.nuxt
84-
dist
85-
86-
# Gatsby files
87-
.cache/
88-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
89-
# https://nextjs.org/blog/next-9-1#public-directory-support
90-
# public
91-
92-
# vuepress build output
93-
.vuepress/dist
94-
95-
# Serverless directories
96-
.serverless/
97-
98-
# FuseBox cache
99-
.fusebox/
100-
101-
# DynamoDB Local files
102-
.dynamodb/
103-
104-
# TernJS port file
105-
.tern-port
106-
/.idea/
107-
lib/

.npmignore

-12
This file was deleted.

.prettierignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.next
2-
lib
1+
# Add files here to ignore them from prettier formatting
2+
3+
/dist
4+
/coverage

.prettierrc

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"singleQuote": true,
3-
"arrowParens": "always",
4-
"tabWidth": 2,
5-
"useTabs": false,
6-
"trailingComma": "es5"
7-
}
2+
"singleQuote": true
3+
}

.verdaccio/config.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# path to a directory with all packages
2+
storage: ../build/local-registry/storage
3+
4+
auth:
5+
htpasswd:
6+
file: ./htpasswd
7+
8+
# a list of other known repositories we can talk to
9+
uplinks:
10+
npmjs:
11+
url: https://registry.npmjs.org/
12+
cache: true
13+
yarn:
14+
url: https://registry.yarnpkg.com
15+
cache: true
16+
17+
packages:
18+
'@*/*':
19+
# scoped packages
20+
access: $all
21+
publish: $all
22+
unpublish: $all
23+
proxy: npmjs
24+
25+
'**':
26+
# allow all users (including non-authenticated users) to read and
27+
# publish all packages
28+
access: $all
29+
30+
# allow all users (including non-authenticated users) to publish/publish packages
31+
publish: $all
32+
unpublish: $all
33+
34+
# if package is not available locally, proxy requests to 'yarn' registry
35+
proxy: npmjs
36+
37+
# log settings
38+
logs:
39+
type: stdout
40+
format: pretty
41+
level: http

.verdaccio/htpasswd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test:$6FrCaT/v0dwE:autocreated 2020-03-25T19:10:50.254Z

.vscode/extensions.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"dbaeumer.vscode-eslint",
6+
"firsttris.vscode-jest-runner"
7+
]
8+
}

0 commit comments

Comments
 (0)