-
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]> * Fix ENV variable interpolations * Force publish * Remove temporary change (#205) * Add '--force-publish' flag to 'lerna version' command * Apply forcePublish to 'auto' * Log environment in one place during build * Trigger publish on 'magic-sdk' and '@magic-sdk/react-native' * Remove comments used to trigger prerelease * Fix SemVer issues * Ignore 'semver' wrapper from test coverage * Target 'web' Co-authored-by: Adenekan Wonderful <[email protected]>
- Loading branch information
1 parent
8de947d
commit 2724072
Showing
120 changed files
with
23,456 additions
and
17,822 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,70 +3,77 @@ | |
"name": "magic-sdk-monorepo", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"bootstrap": "yarn install && lerna link", | ||
"wsrun": "wsrun --bin $INIT_CWD/scripts/wsrun/runner.sh -p $PKG", | ||
"dev": "$INIT_CWD/scripts/clean.sh && $INIT_CWD/scripts/dev.sh", | ||
"build": "$INIT_CWD/scripts/clean.sh && $INIT_CWD/scripts/build.sh", | ||
"clean": "$INIT_CWD/scripts/clean.sh", | ||
"lint": "$INIT_CWD/scripts/lint.sh", | ||
"test": "$INIT_CWD/scripts/test.sh", | ||
"paths": "yarn --silent wsrun --parallel --no-prefix -r -c $INIT_CWD/scripts/wsrun/resolve-paths.ts", | ||
"postinstall": "husky install" | ||
"wsrun": "$INIT_CWD/scripts/bin/wsrun-wrapper.ts", | ||
"wsrun:all": "$INIT_CWD/scripts/bin/wsrun-wrapper.ts --all", | ||
"wsrun:paths": "yarn wsrun --stages --no-prefix -r -c $INIT_CWD/scripts/bin/wsrun/resolve-paths.ts", | ||
"dev": "$INIT_CWD/scripts/bin/clean.ts && $INIT_CWD/scripts/bin/dev.ts", | ||
"build": "$INIT_CWD/scripts/bin/clean.ts && $INIT_CWD/scripts/bin/build.ts", | ||
"clean": "$INIT_CWD/scripts/bin/clean.ts", | ||
"lint": "$INIT_CWD/scripts/bin/lint.ts", | ||
"test": "$INIT_CWD/scripts/bin/test.ts", | ||
"postinstall": "husky install && lerna link" | ||
}, | ||
"devDependencies": { | ||
"@ikscodes/browser-env": "~0.3.1", | ||
"@ikscodes/eslint-config": "~7.0.0", | ||
"@ikscodes/prettier-config": "~2.0.0", | ||
"@ikscodes/eslint-config": "~7.0.2", | ||
"@ikscodes/prettier-config": "~2.0.1", | ||
"@istanbuljs/nyc-config-typescript": "~0.1.3", | ||
"@types/inquirer": "^8.1.1", | ||
"@types/is-ci": "^3.0.0", | ||
"@types/jest": "^27.0.0", | ||
"@types/jsdom": "~12.2.4", | ||
"@types/lodash": "^4.14.172", | ||
"@types/react": "^16.9.34", | ||
"@types/react-native": "^0.62.2", | ||
"@types/rimraf": "^3.0.2", | ||
"@types/tsc-watch": "^4.2.0", | ||
"@types/whatwg-url": "^6.4.0", | ||
"@typescript-eslint/eslint-plugin": "~3.4.0", | ||
"auto": "^10.31.0", | ||
"ava": "3.11.0", | ||
"boxen-cli": "^1.0.0", | ||
"chalk": "~4.1.2", | ||
"eslint": "~7.3.1", | ||
"eslint-import-resolver-typescript": "~2.0.0", | ||
"eslint-plugin-import": "~2.21.0", | ||
"eslint-plugin-jsx-a11y": "~6.3.1", | ||
"eslint-plugin-prettier": "~3.1.4", | ||
"eslint-plugin-react": "~7.20.0", | ||
"eslint-plugin-react-hooks": "~4.0.4", | ||
"find-glob": "^2.1.0", | ||
"glob": "^7.1.6", | ||
"execa": "~5.1.1", | ||
"husky": "^7.0.1", | ||
"inquirer": "^8.1.2", | ||
"is-ci": "^3.0.0", | ||
"jest": "^27.0.6", | ||
"lerna": "^3.21.0", | ||
"lint-staged": "^10.0.7", | ||
"microbundle": "0.12.0", | ||
"lodash": "^4.17.21", | ||
"meow": "9.0.0", | ||
"microbundle": "0.13.3", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "13.1.0", | ||
"prettier": "~2.0.5", | ||
"ora": "~5.4.1", | ||
"p-limit": "^3.1.0", | ||
"prettier": "~2.3.2", | ||
"react": "^16.13.1", | ||
"react-native": "^0.62.2", | ||
"regenerator-runtime": "0.13.9", | ||
"replace-in-file": "^6.1.0", | ||
"rimraf": "~3.0.0", | ||
"rimraf": "~3.0.2", | ||
"ts-jest": "^27.0.4", | ||
"ts-node": "^10.2.0", | ||
"tsc-watch": "^4.2.9", | ||
"typed-emitter": "^1.0.0", | ||
"typescript": "~3.8.3", | ||
"tslib": "^2.3.1", | ||
"typescript": "~4.4.2", | ||
"wsrun": "^5.2.1" | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/@magic-sdk/*", | ||
"packages/magic-sdk" | ||
], | ||
"nohoist": [ | ||
"@magic-sdk/react-native/buffer", | ||
"@magic-sdk/react-native/buffer/**", | ||
"@magic-sdk/react-native/process", | ||
"@magic-sdk/react-native/process/**" | ||
] | ||
}, | ||
"resolutions": { | ||
"@rollup/plugin-commonjs": "18.1.0" | ||
}, | ||
"repository": "magiclabs/magic-js", | ||
"author": "Magic Labs <[email protected]>", | ||
"auto": { | ||
|
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.