-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to a monorepo #297
Merged
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3120df4
fix after rebase
piotr-roslaniec 06f95ad
refactor(monorepo): create a monorepo structure
piotr-roslaniec 7e35d60
refactor(monorepo): configure repo utils
piotr-roslaniec 908fef9
refactor(monorepo): create pre package
piotr-roslaniec b7a4b79
chore(testing): replaced jest with vitest
piotr-roslaniec 3fd578a
chore(prettier): sort imports & exports
piotr-roslaniec 4e0d7b7
chore: clean up package.json files
piotr-roslaniec 4570103
fix(test): fix missing vitest import
piotr-roslaniec 0a10061
chore(examples): fix example checks
piotr-roslaniec 01652a2
refactor(monorepo): move shared test utils package/test-utils
piotr-roslaniec f9cdf31
refactor(monorepo): remove stray files
piotr-roslaniec f2b5747
fix(test): fix missing export
piotr-roslaniec 7fe20ed
chore(build): fix build command not emitting a build
piotr-roslaniec 51249e8
chore(linter): fix issues from ci:lint
piotr-roslaniec d9f28b1
chore(examples): fix missing ethers deps
piotr-roslaniec 68cfa1a
chore(deps): setup peer dependencies
piotr-roslaniec f9e5038
chore(docs): upadate md files
piotr-roslaniec 8804dc8
chore(docs): update typedoc config
piotr-roslaniec 04a5d2e
chore(examples): update examples
piotr-roslaniec a0f1379
chore(deps): update dependencies & fix security warnings
piotr-roslaniec 4c9dd00
apply pr suggestions
piotr-roslaniec 142eb98
apply pr suggestions
piotr-roslaniec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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 @@ | ||
*.md |
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,55 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
'root': true, | ||
'parser': '@typescript-eslint/parser', | ||
'env': { | ||
'es6': true, | ||
}, | ||
'ignorePatterns': [ | ||
'node_modules', | ||
'build', | ||
'coverage', | ||
'src/contracts/ethers-typechain', | ||
], | ||
'plugins': [ | ||
'import', | ||
'eslint-comments', | ||
], | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:eslint-comments/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/typescript', | ||
'prettier', | ||
], | ||
'globals': { | ||
'BigInt': true, | ||
'console': true, | ||
'WebAssembly': true, | ||
}, | ||
'rules': { | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'eslint-comments/disable-enable-pair': [ | ||
'error', | ||
{ | ||
'allowWholeFile': true, | ||
}, | ||
], | ||
'import/order': [ | ||
'error', | ||
{ | ||
'newlines-between': 'always', | ||
'alphabetize': { | ||
'order': 'asc', | ||
}, | ||
}, | ||
], | ||
'sort-imports': [ | ||
'error', | ||
{ | ||
'ignoreDeclarationSort': true, | ||
'ignoreCase': true, | ||
}, | ||
], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
*.log | ||
.DS_Store | ||
node_modules | ||
build | ||
dist | ||
*.log | ||
*.tsbuildinfo | ||
.DS_Store | ||
coverage | ||
example/dist | ||
.husky | ||
.env | ||
types | ||
dist | ||
.nvmrc | ||
!examples/**/.env | ||
src/contracts/ethers-typechain | ||
contracts/compiled | ||
examples/*/pnpm-lock.yaml | ||
pnpm-debug.log | ||
docs-json | ||
docs |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
16 |
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,5 +1,8 @@ | ||
# package.json is formatted by package managers, so we ignore it here | ||
package.json | ||
coverage | ||
build | ||
types/ethers-contracts | ||
**/dist/** | ||
**/types/** | ||
**/build/** | ||
CHANGELOG.md | ||
**/*.sol | ||
README.md | ||
/packages/shared/src/contracts/ethers-typechain/ |
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,9 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "always", | ||
"plugins": ["prettier-plugin-organize-imports"] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file supposed to be in the repo or maybe should it be ignored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's supposed to be in repo: https://editorconfig.org/