-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-factor build scripts to TypeScript (#202)
* Re-factor scripts for building, development, linting, and cleaning to TypeScript * Remove remnants of old test runner (ava) * Re-factor scripts for unit testing to TypeScript * Small cleanups * Refactor to merge `ViewController` and `PayloadTransport` classes (#203) * (feat): Added 'web3-core' package v1.5.2 to import the new AbstractProvider Type * (feat): fix #83 * First step to refactoring 'PayloadTransport' into 'ViewController' * Fix remaining tests * Update 'peerDependencies' for @magic-sdk/commons * Fix clean script Co-authored-by: Adenekan Wonderful <[email protected]> * Make script code more DRY * Update TypeScript & make scripts more DRY * Fix typo and add 'printSeparator' script utility * Fix 'inject-env.ts' script following re-organization of code * Remove outdated / unused dependencies from root PackageJSON * Progress towards integrating microbundle * Update build scripts to bundle all packages via microbundle * Remove unnecessary console statement * Run pre-commit hooks against all packages * Add more memory for tasks spawned via 'wsrun' * Raise the resource class in CI * Try to fix ENOMEM errors in CI by limiting concurrency * Replace 'p-limit' dependency with prior version (new version is ESM-only) * Better caching in CircleCI * Update test script to work with Yarn 2 * Fix tests related to ViewController refactor * Reduce the CircleCI resource class back to medium * Fix tests related to ViewController refactor Co-authored-by: Adenekan Wonderful <[email protected]>
- Loading branch information
1 parent
8de947d
commit 608c423
Showing
118 changed files
with
23,398 additions
and
17,799 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
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,4 +1,6 @@ | ||
**/node_modules | ||
**/coverage | ||
**/dist | ||
**/.eslintrc.js | ||
**/jest.config.ts | ||
**/babel.config.js |
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,32 +1,38 @@ | ||
{ | ||
"root": true, | ||
module.exports = { | ||
root: true, | ||
|
||
"extends": ["@ikscodes/eslint-config"], | ||
extends: ["@ikscodes/eslint-config"], | ||
|
||
"rules": { | ||
"import/extensions": 0, | ||
rules: { | ||
// ESLint rules | ||
"no-alert": 0, | ||
"@typescript-eslint/await-thenable": 0, | ||
"no-underscore-dangle": 0, | ||
"no-useless-constructor": 0, | ||
"@typescript-eslint/no-useless-constructor": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"class-methods-use-this": 0, | ||
|
||
// Import rules | ||
"import/extensions": 0, | ||
"import/no-extraneous-dependencies": 0, | ||
|
||
// TypeScript rules | ||
"@typescript-eslint/ban-types": 0, | ||
"@typescript-eslint/no-unsafe-call": 0, | ||
"@typescript-eslint/await-thenable": 0, | ||
"@typescript-eslint/no-unsafe-return": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-floating-promises": 0, | ||
"@typescript-eslint/no-unsafe-assignment": 0, | ||
"@typescript-eslint/no-useless-constructor": 0, | ||
"@typescript-eslint/no-unsafe-member-access": 0, | ||
"@typescript-eslint/no-floating-promises": 0, | ||
"@typescript-eslint/no-unsafe-call": 0, | ||
"@typescript-eslint/ban-types": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/restrict-template-expressions": 0, | ||
"class-methods-use-this": 0, | ||
"import/no-extraneous-dependencies": 0 | ||
}, | ||
|
||
"settings": { | ||
settings: { | ||
"import/resolver": { | ||
"typescript": { | ||
"directory": ["**/tsconfig.json"] | ||
} | ||
} | ||
} | ||
"directory": ["**/tsconfig.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
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 +1 @@ | ||
yarn wsrun --concurrency 1 --changedSince HEAD -c lint-staged | ||
yarn wsrun:all --concurrency 1 --changedSince HEAD -c lint-staged |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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,9 @@ | ||
nmHoistingLimits: workspaces | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: ./.yarn/releases/yarn-berry.js |
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
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,4 +1,5 @@ | ||
/node_modules | ||
/coverage | ||
/dist | ||
/.eslintrc.js | ||
/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
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 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,4 +1,5 @@ | ||
/node_modules | ||
/coverage | ||
/dist | ||
/.eslintrc.js | ||
/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
Oops, something went wrong.