From 46c4a5c79c38c718bbe33d33f0cdf15f35291dc0 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 6 May 2019 11:47:32 -0400 Subject: [PATCH] chore: move deploytracker to embark-deploy-tracker module --- packages/embark-deploy-tracker/.npmrc | 4 ++ packages/embark-deploy-tracker/README.md | 6 ++ packages/embark-deploy-tracker/package.json | 71 +++++++++++++++++++ .../src}/index.js | 0 packages/embark-deploy-tracker/tsconfig.json | 4 ++ packages/embark-deploy-tracker/tslint.json | 3 + packages/embark/package.json | 1 + packages/embark/src/lib/core/engine.js | 2 +- 8 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 packages/embark-deploy-tracker/.npmrc create mode 100644 packages/embark-deploy-tracker/README.md create mode 100644 packages/embark-deploy-tracker/package.json rename packages/{embark/src/lib/modules/deploytracker => embark-deploy-tracker/src}/index.js (100%) create mode 100644 packages/embark-deploy-tracker/tsconfig.json create mode 100644 packages/embark-deploy-tracker/tslint.json diff --git a/packages/embark-deploy-tracker/.npmrc b/packages/embark-deploy-tracker/.npmrc new file mode 100644 index 000000000..e031d3432 --- /dev/null +++ b/packages/embark-deploy-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-deploy-tracker/README.md b/packages/embark-deploy-tracker/README.md new file mode 100644 index 000000000..b1ef70101 --- /dev/null +++ b/packages/embark-deploy-tracker/README.md @@ -0,0 +1,6 @@ +# `embark-deploy-tracker` + +> Contract deployment tracker for Embark + +Visit [embark.status.im](https://embark.status.im/) to get started with +[Embark](https://github.com/embark-framework/embark). diff --git a/packages/embark-deploy-tracker/package.json b/packages/embark-deploy-tracker/package.json new file mode 100644 index 000000000..dfa98f628 --- /dev/null +++ b/packages/embark-deploy-tracker/package.json @@ -0,0 +1,71 @@ +{ + "name": "embark-deploy-tracker", + "version": "4.1.0-beta.0", + "author": "Iuri Matias ", + "contributors": [], + "description": "Console component for Embark", + "homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-console#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-console", + "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\" --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", + "// test": "nyc --reporter=html --reporter=json mocha \"dist/test/**/*.js\" --exit --no-timeouts --require source-map-support/register", + "// 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": { + "embark-utils": "^4.1.0-beta.0" + }, + "devDependencies": { + "eslint": "5.7.0", + "mocha": "5.2.0", + "npm-run-all": "4.1.5", + "nyc": "13.1.0", + "rimraf": "2.6.3" + }, + "engines": { + "node": ">=8.12.0", + "npm": ">=6.4.1", + "yarn": ">=1.12.3" + }, + "nyc": { + "exclude": [ + "**/node_modules/**", + "coverage/**", + "dist/test/**" + ] + } +} diff --git a/packages/embark/src/lib/modules/deploytracker/index.js b/packages/embark-deploy-tracker/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/deploytracker/index.js rename to packages/embark-deploy-tracker/src/index.js diff --git a/packages/embark-deploy-tracker/tsconfig.json b/packages/embark-deploy-tracker/tsconfig.json new file mode 100644 index 000000000..52d43eaaa --- /dev/null +++ b/packages/embark-deploy-tracker/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src/**/*"] +} diff --git a/packages/embark-deploy-tracker/tslint.json b/packages/embark-deploy-tracker/tslint.json new file mode 100644 index 000000000..0946f2096 --- /dev/null +++ b/packages/embark-deploy-tracker/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tslint.json" +} diff --git a/packages/embark/package.json b/packages/embark/package.json index ae539b2bd..5c73a5c58 100644 --- a/packages/embark/package.json +++ b/packages/embark/package.json @@ -102,6 +102,7 @@ "embark-contracts-manager": "^4.1.0-beta.0", "embark-core": "^4.1.0-beta.0", "embark-deployment": "^4.1.0-beta.0", + "embark-deploy-tracker": "^4.1.0-beta.0", "embark-ens": "^4.1.0-beta.0", "embark-i18n": "^4.1.0-beta.0", "embark-library-manager": "^4.1.0-beta.0", diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index 6a8d98f28..8ce7a9aad 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -226,7 +226,7 @@ class Engine { this.registerModulePackage('embark-solidity', {ipc: self.ipc, useDashboard: this.useDashboard}); this.registerModulePackage('embark-vyper'); this.registerModulePackage('embark-profiler'); - this.registerModule('deploytracker', {trackContracts: options.trackContracts}); + this.registerModulePackage('embark-deploy-tracker', {trackContracts: options.trackContracts}); this.registerModulePackage('embark-specialconfigs'); this.registerModulePackage('embark-ens'); this.registerModulePackage('embark-console-listener', {ipc: self.ipc});