diff --git a/packages/embark-listener/.npmrc b/packages/embark-listener/.npmrc new file mode 100644 index 000000000..e031d3432 --- /dev/null +++ b/packages/embark-listener/.npmrc @@ -0,0 +1,4 @@ +engine-strict = true +package-lock = false +save-exact = true +scripts-prepend-node-path = true diff --git a/packages/embark-listener/README.md b/packages/embark-listener/README.md new file mode 100644 index 000000000..4440a3d54 --- /dev/null +++ b/packages/embark-listener/README.md @@ -0,0 +1,6 @@ +# `embark-listener` + +> Log listening 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-listener/package.json b/packages/embark-listener/package.json new file mode 100644 index 000000000..80dcef86f --- /dev/null +++ b/packages/embark-listener/package.json @@ -0,0 +1,71 @@ +{ + "name": "embark-listener", + "version": "4.1.0-beta.0", + "author": "Iuri Matias ", + "contributors": [], + "description": "Log listening for Embark", + "homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-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-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", + "// 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-process-logs-api": "^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/embark_listener/index.js b/packages/embark-listener/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/embark_listener/index.js rename to packages/embark-listener/src/index.js diff --git a/packages/embark-listener/tsconfig.json b/packages/embark-listener/tsconfig.json new file mode 100644 index 000000000..52d43eaaa --- /dev/null +++ b/packages/embark-listener/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src/**/*"] +} diff --git a/packages/embark-listener/tslint.json b/packages/embark-listener/tslint.json new file mode 100644 index 000000000..0946f2096 --- /dev/null +++ b/packages/embark-listener/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tslint.json" +} diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index dd6f09db1..6a8d98f28 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -103,7 +103,7 @@ class Engine { } embarkListenerService(_options){ - this.registerModule('embark_listener'); + this.registerModulePackage('embark-listener'); } blockchainListenerService(_options){