Refactor and use TypeScript:

- Migrate to TypeScript and TSLint
- Vendor ripple-address-codec (move dependency into this project)
- Add support for Travis CI (.travis.yml)
- Use "dist/*" for distribution files
- Bump version to 1.0.0-beta.0
- Add yarn.lock
This commit is contained in:
Elliot Lee
2019-01-22 23:23:13 -08:00
parent 765bee5f81
commit e9a3e1ab35
17 changed files with 4670 additions and 64 deletions

View File

@@ -1,14 +1,12 @@
{
"name": "ripple-keypairs",
"version": "0.10.2",
"description": "ripple key pairs",
"version": "1.0.0-beta.0",
"description": "Cryptographic key pairs for the XRP Ledger",
"files": [
"distrib/npm/*",
"bin/*",
"build/*",
"dist/*",
"test/*"
],
"main": "distrib/npm/",
"main": "dist/",
"directories": {
"test": "test"
},
@@ -18,9 +16,11 @@
"brorand": "^1.0.5",
"elliptic": "^6.4.0",
"hash.js": "^1.0.3",
"ripple-address-codec": "^2.0.1"
"base-x": "3.0.4",
"create-hash": "1.2.0"
},
"devDependencies": {
"@types/node": "^10.12.0",
"assert-diff": "^1.0.1",
"babel": "^5.8.20",
"babel-core": "^5.8.20",
@@ -33,23 +33,21 @@
"istanbul": "~0.3.5",
"map-stream": "~0.1.0",
"mocha": "~2.3.3",
"nock": "^2.13.0"
"nock": "^2.13.0",
"tslint": "^5.11.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.1.3"
},
"scripts": {
"compile": "babel --optional runtime -d distrib/npm/ src/",
"compile": "tsc",
"compile-babel": "babel --optional runtime -d distrib/npm/ src/",
"compile-with-source-maps": "babel --optional runtime -s -t -d distrib/npm/ src/",
"prepublish": "npm test && npm run lint && npm run compile",
"test": "istanbul test _mocha",
"lint": "if ! [ -f eslintrc ]; then curl -o eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/es6/eslintrc'; echo 'parser: babel-eslint' >> eslintrc; fi; eslint -c eslintrc src/*.js test/*.js"
"test": "tsc && istanbul test _mocha",
"lint": "tslint -p ./"
},
"repository": {
"type": "git",
"url": "git://github.com/ripple/ripple-keypairs.git"
},
"bugs": {
"url": "https://github.com/ripple/ripple-keypairs/issues"
},
"homepage": "https://github.com/ripple/ripple-keypairs#readme",
"license": "ISC",
"readmeFilename": "README.md"
"license": "ISC"
}