refactor(@embark/geth): move module into own package (#1950)

This commit is contained in:
Eric Mastro 2019-10-14 16:14:07 +09:00 committed by Iuri Matias
parent d46912d0cc
commit 8aa6496f93
14 changed files with 85 additions and 2 deletions

View File

@ -106,6 +106,7 @@
"embark-deployment": "^4.1.1",
"embark-embarkjs": "^4.1.1",
"embark-ens": "^4.1.1",
"embark-geth": "^4.1.1",
"embark-graph": "^4.1.1",
"embark-i18n": "^4.1.1",
"embark-ipfs": "^4.1.1",

View File

@ -184,7 +184,7 @@ class Engine {
blockchainComponents() {
// plugins
this.registerModule('geth', {
this.registerModulePackage('embark-geth', {
client: this.client,
locale: this.locale,
isDev: this.isDev,

View File

@ -1,5 +1,5 @@
import { __ } from 'embark-i18n';
import {BlockchainClient} from "../geth/blockchain";
import {BlockchainClient} from "./blockchain";
const {normalizeInput} = require('embark-utils');
import {BlockchainProcessLauncher} from './blockchainProcessLauncher';
import {ws, rpc} from './check.js';

View File

@ -0,0 +1,4 @@
engine-strict = true
package-lock = false
save-exact = true
scripts-prepend-node-path = true

View File

@ -0,0 +1,6 @@
# `embark-geth`
> Implementation of the Go-Ethereum blockchain for Embark
Visit [embark.status.im](https://embark.status.im/) to get started with
[Embark](https://github.com/embark-framework/embark).

View File

@ -0,0 +1,72 @@
{
"name": "embark-geth",
"version": "4.1.1",
"author": "Iuri Matias <iuri.matias@gmail.com>",
"contributors": [],
"description": "Implementation of the Go-Ethereum blockchain for Embark",
"homepage": "https://github.com/embark-framework/embark/tree/master/packages/plugins/geth#readme",
"bugs": "https://github.com/embark-framework/embark/issues",
"keywords": [
"blockchain",
"dapps",
"ethereum",
"ipfs",
"serverless",
"solc",
"solidity"
],
"files": [
"dist"
],
"license": "MIT",
"repository": {
"directory": "packages/plugins/geth",
"type": "git",
"url": "https://github.com/embark-framework/embark.git"
},
"main": "./dist/index.js",
"embark-collective": {
"build:node": true
},
"scripts": {
"_build": "npm run solo -- build",
"ci": "npm run qa",
"clean": "npm run reset",
"lint": "npm-run-all lint:*",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"qa": "npm-run-all lint typecheck _build",
"reset": "npx rimraf dist embark-*.tgz package",
"solo": "embark-solo",
"typecheck": "tsc",
"watch": "run-p watch:*",
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
},
"eslintConfig": {
"extends": "../../../.eslintrc.json"
},
"dependencies": {
"@babel/runtime-corejs2": "7.6.2",
"async": "2.6.1",
"embark-core": "^4.1.1",
"embark-i18n": "^4.1.1",
"embark-logger": "^4.1.1",
"embark-utils": "^4.1.1",
"fs-extra": "8.1.0",
"netcat": "1.3.5",
"semver": "5.6.0",
"ws": "7.1.2"
},
"devDependencies": {
"embark-solo": "^4.1.1",
"eslint": "5.7.0",
"npm-run-all": "4.1.5",
"rimraf": "3.0.0",
"tslint": "5.16.0",
"typescript": "3.6.3"
},
"engines": {
"node": ">=8.12.0 <12.0.0",
"npm": ">=6.4.1",
"yarn": ">=1.12.3"
}
}