From fa0220c9505310ab963e95e0d6d159638f44fba4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 23 Apr 2019 12:10:38 -0400 Subject: [PATCH] refactor(@embark/embark-trasaction-tracker): move tx tracker to pck --- packages/embark-transaction-tracker/.npmrc | 4 ++ packages/embark-transaction-tracker/README.md | 6 ++ .../embark-transaction-tracker/package.json | 68 +++++++++++++++++++ .../src}/index.js | 0 .../embark-transaction-tracker/tsconfig.json | 4 ++ .../embark-transaction-tracker/tslint.json | 3 + packages/embark/package.json | 1 + packages/embark/src/lib/core/engine.js | 2 +- 8 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 packages/embark-transaction-tracker/.npmrc create mode 100644 packages/embark-transaction-tracker/README.md create mode 100644 packages/embark-transaction-tracker/package.json rename packages/{embark/src/lib/modules/transactionTracker => embark-transaction-tracker/src}/index.js (100%) create mode 100644 packages/embark-transaction-tracker/tsconfig.json create mode 100644 packages/embark-transaction-tracker/tslint.json diff --git a/packages/embark-transaction-tracker/.npmrc b/packages/embark-transaction-tracker/.npmrc new file mode 100644 index 000000000..e031d3432 --- /dev/null +++ b/packages/embark-transaction-tracker/.npmrc @@ -0,0 +1,4 @@ +engine-strict = true +package-lock = false +save-exact = true +scripts-prepend-node-path = true diff --git a/packages/embark-transaction-tracker/README.md b/packages/embark-transaction-tracker/README.md new file mode 100644 index 000000000..7b097d01a --- /dev/null +++ b/packages/embark-transaction-tracker/README.md @@ -0,0 +1,6 @@ +# `embark-transaction-tracker` + +Transaction tracker for Embark's cockpit + +Visit [embark.status.im](https://embark.status.im/) to get started with +[Embark](https://github.com/embark-framework/embark). diff --git a/packages/embark-transaction-tracker/package.json b/packages/embark-transaction-tracker/package.json new file mode 100644 index 000000000..9ee346ce7 --- /dev/null +++ b/packages/embark-transaction-tracker/package.json @@ -0,0 +1,68 @@ +{ + "name": "embark-transaction-tracker", + "version": "4.1.0-beta.0", + "author": "Iuri Matias ", + "contributors": [], + "description": "Transaction tracker for Embark's cockpit", + "homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-transaction-tracker#readme", + "bugs": "https://github.com/embark-framework/embark/issues", + "keywords": [ + "blockchain", + "dapps", + "ethereum", + "ipfs", + "serverless", + "solc", + "solidity" + ], + "files": [ + "dist" + ], + "license": "MIT", + "repository": { + "directory": "packages/embark-transaction-tracker", + "type": "git", + "url": "https://github.com/embark-framework/embark.git" + }, + "main": "./dist/index.js", + "scripts": { + "build": "cross-env BABEL_ENV=node babel src --extensions \".js,.ts\" --out-dir dist --root-mode upward --source-maps", + "ci": "npm run qa", + "clean": "npm run reset", + "lint": "npm-run-all lint:*", + "lint:js": "eslint src/", + "// lint:ts": "tslint -c tslint.json \"src/**/*.ts\"", + "package": "npm pack", + "// qa": "npm-run-all lint typecheck build package", + "qa": "npm-run-all lint build package", + "reset": "npx rimraf dist embark-*.tgz package", + "start": "npm run watch", + "// typecheck": "tsc", + "watch": "run-p watch:*", + "watch:build": "npm run build -- --verbose --watch", + "// watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch" + }, + "eslintConfig": { + "extends": "../../.eslintrc.json" + }, + "dependencies": { + "@babel/runtime-corejs2": "7.3.1", + "async": "2.6.1", + "viz.js": "1.8.2" + }, + "devDependencies": { + "@babel/cli": "7.2.3", + "@babel/core": "7.2.2", + "cross-env": "5.2.0", + "eslint": "5.7.0", + "npm-run-all": "4.1.5", + "rimraf": "2.6.3", + "tslint": "5.11.0", + "typescript": "3.3.1" + }, + "engines": { + "node": ">=8.12.0", + "npm": ">=6.4.1", + "yarn": ">=1.12.3" + } +} diff --git a/packages/embark/src/lib/modules/transactionTracker/index.js b/packages/embark-transaction-tracker/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/transactionTracker/index.js rename to packages/embark-transaction-tracker/src/index.js diff --git a/packages/embark-transaction-tracker/tsconfig.json b/packages/embark-transaction-tracker/tsconfig.json new file mode 100644 index 000000000..52d43eaaa --- /dev/null +++ b/packages/embark-transaction-tracker/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src/**/*"] +} diff --git a/packages/embark-transaction-tracker/tslint.json b/packages/embark-transaction-tracker/tslint.json new file mode 100644 index 000000000..0946f2096 --- /dev/null +++ b/packages/embark-transaction-tracker/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tslint.json" +} diff --git a/packages/embark/package.json b/packages/embark/package.json index e66f0c506..8640525ea 100644 --- a/packages/embark/package.json +++ b/packages/embark/package.json @@ -91,6 +91,7 @@ "embark-reset": "^4.1.0-beta.0", "embark-specialconfigs": "^4.1.0-beta.0", "embark-ui": "^4.1.0-beta.0", + "embark-transaction-tracker": "^4.1.0-beta.0", "embark-utils": "^4.1.0-beta.0", "embark-vyper": "^4.0.0", "embark-webserver": "^4.1.0-beta.0", diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index 3bd63e5f2..e0a1bb808 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -231,7 +231,7 @@ class Engine { this.registerModule('ens'); this.registerModule('console_listener', {ipc: self.ipc}); this.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile}); - this.registerModule('transactionTracker'); + this.registerModulePackage('embark-transaction-tracker'); this.registerModule('debugger'); this.events.on('file-event', function ({fileType, path}) {