refactor(@embark/blockchain-listener): move blockchain listener APIs into package

This commit is contained in:
Pascal Precht 2019-05-08 13:36:26 +02:00 committed by Pascal Precht
parent a22d8fc6c4
commit 84439cb6fe
9 changed files with 90 additions and 1 deletions

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-blockchain-listener`
> Blockchain Listener APIs 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,71 @@
{
"name": "embark-blockchain-listener",
"version": "4.1.0-beta.0",
"author": "Iuri Matias <iuri.matias@gmail.com>",
"contributors": [],
"description": "Blockchain Listener APIs for Embark",
"homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-blockchain-listener#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-blockchain-listener",
"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",
"// 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",
"embark-core": "^4.1.0-beta.0",
"embark-process-logs-api": "^4.1.0-beta.0",
"embark-utils": "^4.1.0-beta.0",
"web3": "1.0.0-beta.37"
},
"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.16.0",
"typescript": "3.4.5"
},
"engines": {
"node": ">=8.12.0",
"npm": ">=6.4.1",
"yarn": ">=1.12.3"
}
}

View File

@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}

View File

@ -0,0 +1,3 @@
{
"extends": "../../tslint.json"
}

View File

@ -93,6 +93,7 @@
"ejs": "2.6.1",
"embark-authenticator": "^4.1.0-beta.0",
"embark-api": "^4.1.0-beta.0",
"embark-blockchain-listener": "^4.1.0-beta.0",
"embark-code-generator": "^4.1.0-beta.0",
"embark-compiler": "^4.0.0",
"embark-console": "^4.1.0-beta.0",

View File

@ -108,7 +108,7 @@ class Engine {
}
blockchainListenerService(_options){
this.registerModule('blockchain_listener', {
this.registerModulePackage('embark-blockchain-listener', {
ipc: this.ipc
});
}