mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-21 18:08:25 +00:00
refactor(@embark/swarm): move swarm to its own module
refactor(@embark/swarm): move swarm to its own module remove console logs
This commit is contained in:
parent
3888595269
commit
d9b1a1363f
8
packages/embark-swarm/CHANGELOG.md
Normal file
8
packages/embark-swarm/CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [4.1.0-beta.3](https://github.com/embark-framework/embark/compare/v4.1.0-beta.2...v4.1.0-beta.3) (2019-06-07)
|
||||
|
||||
**Note:** Version bump only for package embark-swarm
|
5
packages/embark-swarm/README.md
Normal file
5
packages/embark-swarm/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# `embark-swarm`
|
||||
|
||||
Swarm support for Embark
|
||||
|
||||
Visit [embark.status.im](https://embark.status.im/) to get started with [Embark](https://github.com/embark-framework/embark).
|
72
packages/embark-swarm/package.json
Normal file
72
packages/embark-swarm/package.json
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
"name": "embark-swarm",
|
||||
"version": "4.1.0-beta.3",
|
||||
"author": "Iuri Matias <iuri.matias@gmail.com>",
|
||||
"contributors": [],
|
||||
"description": "Swarm support for Embark",
|
||||
"homepage": "https://github.com/embark-framework/embark/tree/master/packages/embark-swarm#readme",
|
||||
"bugs": "https://github.com/embark-framework/embark/issues",
|
||||
"keywords": [
|
||||
"blockchain",
|
||||
"dapps",
|
||||
"ethereum",
|
||||
"swarm"
|
||||
],
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"directory": "packages/embark-swarm",
|
||||
"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",
|
||||
"colors": "1.3.2",
|
||||
"embark-core": "^4.1.0-beta.3",
|
||||
"embark-i18n": "^4.1.0-beta.3",
|
||||
"embark-utils": "^4.1.0-beta.3",
|
||||
"embarkjs-swarm": "^4.1.0-beta.3",
|
||||
"lodash.clonedeep": "4.5.0",
|
||||
"shelljs": "0.5.3",
|
||||
"swarm-api": "0.1.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.16.0",
|
||||
"typescript": "3.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.12.0 <12.0.0",
|
||||
"npm": ">=6.4.1",
|
||||
"yarn": ">=1.12.3"
|
||||
}
|
||||
}
|
@ -100,9 +100,7 @@ class StorageProcessesLauncher {
|
||||
if (self.processes[storageName]) {
|
||||
return callback(__('Storage process already started'));
|
||||
}
|
||||
const filePath = joinPath(__dirname, `../${storageName}/process.js`);
|
||||
console.dir("==== filePath")
|
||||
console.dir(filePath)
|
||||
const filePath = joinPath(__dirname, `../dist/process.js`);
|
||||
this.embark.fs.access(filePath, (err) => {
|
||||
if (err) {
|
||||
return callback(__('No process file for this storage type (%s) exists. Please start the process locally.', storageName));
|
4
packages/embark-swarm/tsconfig.json
Normal file
4
packages/embark-swarm/tsconfig.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src/**/*"]
|
||||
}
|
3
packages/embark-swarm/tslint.json
Normal file
3
packages/embark-swarm/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../../tslint.json"
|
||||
}
|
@ -182,7 +182,6 @@
|
||||
"stream-json": "1.1.3",
|
||||
"string-replace-async": "1.2.1",
|
||||
"style-loader": "0.23.1",
|
||||
"swarm-api": "0.1.2",
|
||||
"tar": "4.4.2",
|
||||
"term.js": "0.0.7",
|
||||
"url-loader": "1.1.2",
|
||||
|
@ -286,7 +286,7 @@ class Engine {
|
||||
return next();
|
||||
}
|
||||
this.events.once("swarm:process:started", next);
|
||||
this.registerModule('swarm');
|
||||
this.registerModulePackage('embark-swarm');
|
||||
}
|
||||
], (err) => {
|
||||
if(err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user