Repository navigation
Conversation
|
@BenRacicot would appreciate your review as well |
paulbellamy
left a comment
There was a problem hiding this comment.
Outstanding work! 💯 🚀
Couple questions...
Add 'prepare' script instead of lib/ folder
Fix GHAs to match build scripts
There was a problem hiding this comment.
I think this should be using the url for current:
https://github.com/stellar/stellar-core/tree/master/src/protocol-curr/xdr
for next:
https://github.com/stellar/stellar-core/tree/master/src/protocol-next
There was a problem hiding this comment.
The main xdr repository has moved out of core to https://github.com/stellar/stellar-xdr repo, curr and next branches respectively.
silence48
left a comment
There was a problem hiding this comment.
I only came across one questionable thing which was the address to the xdr library...
Many of these changes are code linting, which is fine, but I'd prefer to see those broken into a separate commit to be able to quickly find the substantive changes.
Otherwise it looks good.
silence48
left a comment
There was a problem hiding this comment.
that works, /generated after all.
paulbellamy
left a comment
There was a problem hiding this comment.
LGTM, but I'm not an expert here.
|
Also, if you could merge these changes into the |
Epic: stellar/js-stellar-sdk#792
This is an overhaul to bring the
stellar-basepackage to the modern JavaScript world.Summary
This involves a large set of changes, but I will do my best to summarize them to expedite review.
Main Changes
BigNumber.js.Cascading Changes
These main changes motivate a cascade of other changes, broken down into a handful of categories:
yarnscripts are differentBuilding
Webpack 5 support is here!
yarn build:nodeyarn build:browsercfg/webpack.config.browser.jsStellarBasevariableLinting
ESLint, Prettier, and DTSLint are all updated:
@babel/eslint-parserin each.eslintrc.jsfile and is implicitly part of building via Webpack (see above)@definitelytypedproject and has additional configuration implicitly as part of thetypes/.eslintrc.jsfile which uses@typescript-eslint/parser, insteadcfg/prettier.config.js(andcfg/.prettierignore) and runs on all files now. It's also (still) a pre-commit hook.Just run
yarn pretty && yarn lintto format your files and check that everything is up to par.Testing
Istanbul: Istanbul is unmaintained and superceded by the
nycpackage.istanbulplugin in.babelrctells Babel about itcfg/.nycrcextends a Babel-compatible configuration file (docs)nyckey inpackage.jsonconfigures instrumentation behaviorbabel-plugin-istanbul(docs), which is why"instrument": falsein the aboveNode Testing: Mocha (and its helper friends Sinon and Chai) has been updated.
mochakey inpackage.jsonconfigures Mocha (replacingmocha.opts)nyc(see above)Browser Testing: Karma has been updated.
nyc(docs, see above)Run
yarn testto run both suites.Scripts
Development has a slightly different workflow now:
yarn test:nodeyarn build && yarn test:allto get the both test suites (note that building first is required)yarn preversionwhen you want a thorough, clean test of the whole system in "production" mode