diff --git a/packages/embark/package.json b/packages/embark/package.json index f6a83c6d2..76c060a08 100644 --- a/packages/embark/package.json +++ b/packages/embark/package.json @@ -107,6 +107,7 @@ "embark-embarkjs": "^4.1.1", "embark-ens": "^4.1.1", "embark-geth": "^4.1.1", + "embark-ganache": "^4.1.1", "embark-graph": "^4.1.1", "embark-i18n": "^4.1.1", "embark-ipfs": "^4.1.1", @@ -148,7 +149,6 @@ "find-up": "2.1.0", "flatted": "0.2.3", "fs-extra": "8.1.0", - "ganache-cli": "6.4.3", "glob": "7.1.4", "globule": "1.2.1", "hard-source-webpack-plugin": "0.13.1", diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index 21430f58a..79c051ea5 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -215,7 +215,7 @@ class Engine { contractsComponents(_options) { this.registerModule('ethereum-blockchain-client'); - this.registerModule('ganache'); + this.registerModulePackage('embark-ganache'); this.registerModulePackage('embark-web3'); this.registerModulePackage('embark-accounts-manager'); this.registerModulePackage('embark-specialconfigs', {plugins: this.plugins}); diff --git a/packages/plugins/ganache/.npmrc b/packages/plugins/ganache/.npmrc new file mode 100644 index 000000000..e031d3432 --- /dev/null +++ b/packages/plugins/ganache/.npmrc @@ -0,0 +1,4 @@ +engine-strict = true +package-lock = false +save-exact = true +scripts-prepend-node-path = true diff --git a/packages/plugins/ganache/README.md b/packages/plugins/ganache/README.md new file mode 100644 index 000000000..70956fa88 --- /dev/null +++ b/packages/plugins/ganache/README.md @@ -0,0 +1,6 @@ +# `embark-ganache` + +> Implementation of the Ganache simulator 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/plugins/ganache/package.json b/packages/plugins/ganache/package.json new file mode 100644 index 000000000..ddb30b591 --- /dev/null +++ b/packages/plugins/ganache/package.json @@ -0,0 +1,64 @@ +{ + "name": "embark-ganache", + "version": "4.1.1", + "author": "Iuri Matias ", + "contributors": [], + "description": "Implementation of the Ganache simulator for Embark", + "homepage": "https://github.com/embark-framework/embark/tree/master/packages/plugins/ganache#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/ganache", + "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", + "ganache-cli": "6.4.3" + }, + "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" + } +} diff --git a/packages/embark/src/lib/modules/ganache/index.js b/packages/plugins/ganache/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/ganache/index.js rename to packages/plugins/ganache/src/index.js