diff --git a/packages/embark-specialconfigs/README.md b/packages/embark-specialconfigs/README.md new file mode 100644 index 000000000..fde2fb74a --- /dev/null +++ b/packages/embark-specialconfigs/README.md @@ -0,0 +1,6 @@ +# `embark-specialconfigs` + +Adds various configs to embark's contract.js config file + +Visit [embark.status.im](https://embark.status.im/) to get started with +[Embark](https://github.com/embark-framework/embark). diff --git a/packages/embark-specialconfigs/package.json b/packages/embark-specialconfigs/package.json new file mode 100644 index 000000000..57f9664d3 --- /dev/null +++ b/packages/embark-specialconfigs/package.json @@ -0,0 +1,68 @@ +{ + "name": "embark-specialconfigs", + "version": "4.0.0", + "author": "Iuri Matias ", + "contributors": [], + "description": "Adds various configs to embark's contract.js config file", + "homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-specialconfigs#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-specialconfigs", + "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,.ts\" --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", + "viz.js": "1.8.2" + }, + "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/specialconfigs/index.js b/packages/embark-specialconfigs/src/index.js similarity index 100% rename from packages/embark/src/lib/modules/specialconfigs/index.js rename to packages/embark-specialconfigs/src/index.js diff --git a/packages/embark-specialconfigs/tsconfig.json b/packages/embark-specialconfigs/tsconfig.json new file mode 100644 index 000000000..52d43eaaa --- /dev/null +++ b/packages/embark-specialconfigs/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.json", + "include": ["src/**/*"] +} diff --git a/packages/embark-specialconfigs/tslint.json b/packages/embark-specialconfigs/tslint.json new file mode 100644 index 000000000..0946f2096 --- /dev/null +++ b/packages/embark-specialconfigs/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tslint.json" +} diff --git a/packages/embark/package.json b/packages/embark/package.json index 1ce5012ac..f388454ab 100644 --- a/packages/embark/package.json +++ b/packages/embark/package.json @@ -91,6 +91,7 @@ "embark-ui": "^4.0.0", "embark-vyper": "^4.0.0", "embark-profiler": "^4.0.0", + "embark-specialconfigs": "^4.0.0", "embarkjs": "^4.0.0", "eth-ens-namehash": "2.0.8", "ethereumjs-tx": "1.3.7", diff --git a/packages/embark/src/lib/core/engine.js b/packages/embark/src/lib/core/engine.js index b33849540..23663a4f0 100644 --- a/packages/embark/src/lib/core/engine.js +++ b/packages/embark/src/lib/core/engine.js @@ -227,7 +227,7 @@ class Engine { this.registerModulePackage('embark-vyper'); this.registerModulePackage('embark-profiler'); this.registerModule('deploytracker', {trackContracts: options.trackContracts}); - this.registerModule('specialconfigs'); + this.registerModulePackage('embark-specialconfigs'); this.registerModule('ens'); this.registerModule('console_listener', {ipc: self.ipc}); this.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile});