eth-accounts-index

Accounts index evm contract tooling with permissioned writes
Log | Files | Refs

commit 288ae2148ca4a5f86b5cfade40cac93b2d1b3500
parent 5336542d04728845d200eda1eacce11529ee9a93
Author: nolash <dev@holbrook.no>
Date:   Sat, 14 Nov 2020 00:17:28 +0100

Add typescript

Diffstat:
Mjs/package-lock.json | 5+++++
Mjs/package.json | 4+++-
Ajs/src/index.ts | 1+
Ajs/tsconfig.json | 21+++++++++++++++++++++
4 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/js/package-lock.json b/js/package-lock.json @@ -2204,6 +2204,11 @@ "is-typedarray": "^1.0.0" } }, + "typescript": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.5.tgz", + "integrity": "sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==" + }, "ultron": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", diff --git a/js/package.json b/js/package.json @@ -4,11 +4,13 @@ "description": "Accounts index evm contract tooling with permissioned writes", "main": "dist/index.js", "dependencies": { + "typescript": "^4.0.5", "web3": "^1.3.0" }, "devDependencies": {}, "scripts": { - "test": "python tests/test_app.js" + "build": "tsc -d --outDir dist/", + "prepare": "npm run build" }, "keywords": [ "ethereum" diff --git a/js/src/index.ts b/js/src/index.ts @@ -0,0 +1 @@ +export { AccountRegistry } from './registry'; diff --git a/js/tsconfig.json b/js/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "outDir": "./dist", + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "lib": ["es2016", "dom", "es5"], + "esModuleInterop": true, + "resolveJsonModule": true + }, + "exclude": [ + "node_modules", + "dist", + "scripts", + "tests" + ], + "include": [ + "src/*" + ] +}