From bac51196db6f3b86b22955476fdd4729546b6f4b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 6 Feb 2019 14:47:51 -0500 Subject: [PATCH] refactor(@embark/embark-graph) move graph to its own module --- packages/embark-graph/README.md | 2 + packages/embark-graph/package.json | 63 +++++++++++++++++++ .../graph => embark-graph/src}/index.js | 0 packages/embark/src/lib/core/engine.js | 2 +- 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 packages/embark-graph/README.md create mode 100644 packages/embark-graph/package.json rename packages/{embark/src/lib/modules/graph => embark-graph/src}/index.js (100%) diff --git a/packages/embark-graph/README.md b/packages/embark-graph/README.md new file mode 100644 index 000000000..6cfcc8dde --- /dev/null +++ b/packages/embark-graph/README.md @@ -0,0 +1,2 @@ +## Embark Graph module + diff --git a/packages/embark-graph/package.json b/packages/embark-graph/package.json new file mode 100644 index 000000000..f992b9990 --- /dev/null +++ b/packages/embark-graph/package.json @@ -0,0 +1,63 @@ +{ + "name": "embark-graph", + "version": "4.0.0-beta.0", + "author": "Iuri Matias ", + "contributors": [], + "description": "Embark is a framework that allows you to easily develop and deploy DApps", + "homepage": "https://embark.status.im/", + "keywords": [ + "blockchain", + "dapps", + "ethereum", + "ipfs", + "serverless", + "solc", + "solidity" + ], + "files": [ + "dist" + ], + "license": "MIT", + "repository": "github:embark-framework/embark", + "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": "npx rimraf dist embark-*.tgz package", + "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", + "reset": "npm run clean && npx rimraf node_modules", + "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": { + "async": "2.6.1", + "viz.js": "1.8.2", + "@babel/runtime-corejs2": "7.3.1" + }, + "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/graph/index.js b/packages/embark-graph/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/graph/index.js rename to packages/embark-graph/src/index.js diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index 6d5a43280..897b50a4f 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -132,7 +132,7 @@ class Engine { } graphService(_options) { - this.registerModule('graph'); + this.registerModulePackage('embark-graph'); } scaffoldingService(_options) {