-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup gradual process for migrating to Typescript (#495)
* Drop babel deps, add initial typescript config * Add prettier as dep, add format scripts * Mv bloom/index.js to bloom/index.ts * Migrate bloom to ts, limit its api to buffers * Mv lib/evm/stack.js to lib/evm/stack.ts * Migrate stack to ts, limit it to BN * Mv lib/evm/memory.js to lib/evm/memory.ts * Migrate evm memory to ts * Build:dist before coverage and api browser tests * Use tester dist flag for coverage tests
- Loading branch information
Showing
24 changed files
with
124 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
.vscode | ||
package.json | ||
dist | ||
.nyc_output | ||
*.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
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
], | ||
"scripts": { | ||
"coverage": "nyc npm run coverageTests && nyc report --reporter=text-lcov > .nyc_output/lcov.info", | ||
"coverageTests": "tape './tests/api/**/*.js' ./tests/tester.js -s", | ||
"coverageTests": "npm run build:dist && tape './tests/api/**/*.js' ./tests/tester.js -s --dist", | ||
"coveralls": "npm run coverage && if [ -n \"$COVERALLS_REPO_TOKEN\" ]; then coveralls <.nyc_output/lcov.info; fi", | ||
"testVM": "node ./tests/tester -v", | ||
"testStateByzantium": "npm run build:dist && node ./tests/tester -s --fork='Byzantium' --dist", | ||
|
@@ -17,12 +17,14 @@ | |
"testBuildIntegrity": "npm run build:dist && node ./tests/tester -s --dist --test='stackOverflow'", | ||
"testBlockchain": "npm run build:dist && node --stack-size=1500 ./tests/tester -b --fork='Petersburg' --dist --excludeDir='GeneralStateTests'", | ||
"testBlockchainGeneralStateTests": "npm run build:dist && node --stack-size=1500 ./tests/tester -b --dist --dir='GeneralStateTests'", | ||
"testAPI": "tape './tests/api/**/*.js'", | ||
"testAPI:browser": "karma start karma.conf.js", | ||
"testAPI": "npm run build:dist && tape './tests/api/**/*.js'", | ||
"testAPI:browser": "npm run build:dist && karma start karma.conf.js", | ||
"test": "echo \"[INFO] Generic test cmd not used. See package.json for more specific test run cmds.\"", | ||
"lint": "standard", | ||
"format": "ethereumjs-config-format", | ||
"format-fix": "ethereumjs-config-format-fix", | ||
"prepublishOnly": "npm run lint && npm run build:dist && npm run testBuildIntegrity", | ||
"build:dist": "babel lib/ -d dist/", | ||
"build:dist": "tsc", | ||
"build:docs": "documentation build ./lib/index.js ./lib/runBlockchain.js ./lib/runBlock.js ./lib/runTx.js ./lib/runCode.js ./lib/runCall.js --format md --shallow > ./docs/index.md", | ||
"formatTest": "node ./scripts/formatTest" | ||
}, | ||
|
@@ -35,14 +37,14 @@ | |
"VM" | ||
], | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.0", | ||
"async": "^2.1.2", | ||
"async-eventemitter": "^0.2.2", | ||
"core-js-pure": "^3.0.1", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
s1na
Author
Contributor
|
||
"ethereumjs-account": "^2.0.3", | ||
"ethereumjs-block": "~2.2.0", | ||
"ethereumjs-blockchain": "^3.4.0", | ||
"ethereumjs-common": "^1.1.0", | ||
"ethereumjs-util": "^6.0.0", | ||
"ethereumjs-util": "^6.1.0", | ||
"fake-merkle-patricia-tree": "^1.0.1", | ||
"functional-red-black-tree": "^1.0.1", | ||
"merkle-patricia-tree": "^2.3.2", | ||
|
@@ -51,10 +53,9 @@ | |
"util.promisify": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.4.0", | ||
"@babel/plugin-transform-runtime": "^7.4.0", | ||
"@babel/preset-env": "^7.4.1", | ||
"@ethereumjs/config-prettier": "^1.1.1", | ||
"@types/bn.js": "^4.11.5", | ||
"@types/node": "^11.13.4", | ||
"browserify": "^16.2.3", | ||
"coveralls": "^3.0.0", | ||
"documentation": "^8.1.2", | ||
|
@@ -70,9 +71,12 @@ | |
"level-mem": "^3.0.1", | ||
"minimist": "^1.1.1", | ||
"nyc": "^12.0.2", | ||
"prettier": "^1.16.4", | ||
"rlp": "^2.2.3", | ||
"standard": "^10.0.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "4.6.3" | ||
"tape": "4.6.3", | ||
"typescript": "^3.4.3" | ||
}, | ||
"author": "mjbecze <[email protected]>", | ||
"contributors": [ | ||
|
Oops, something went wrong.
You can use
care-js-pure
to get less noise duringnpm install