-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from PhyrexTsai/master
v0.0.51
- Loading branch information
Showing
18 changed files
with
224 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ The KAIZEN Platform is currently in experimental alpha. | |
- [Bluzelle](https://www.npmjs.com/package/bluzelle) | ||
- [NKN](https://www.npmjs.com/package/nkn-client) | ||
- [ICON](https://www.npmjs.com/package/icon-sdk-js) | ||
- [Orbit](https://www.npmjs.com/package/orbit-db) | ||
- NOIA | ||
|
||
## <a name="faucet"></a>🚰 Faucet | ||
|
@@ -104,5 +105,8 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for how to help out. | |
|
||
*Quick Start*: Check out [help wanted](https://github.com/PortalNetwork/kaizen-cli/labels/help%20wanted) or [good first issue](https://github.com/PortalNetwork/kaizen-cli/labels/good%20first%20issue) labels to find issues we want to move forward on with your help. | ||
|
||
## <a name="contact"></a>📧 Contact | ||
For any questions, please contact [email protected] or join telegram: [http://bit.ly/2XjhQV2](http://bit.ly/2XjhQV2) | ||
|
||
## <a name="licence"></a>🗒 Licence | ||
See [LICENSE](./LICENSE) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ The KAIZEN Platform is currently in experimental alpha. | |
- [Bluzelle](https://www.npmjs.com/package/bluzelle) | ||
- [NKN](https://www.npmjs.com/package/nkn-client) | ||
- [ICON](https://www.npmjs.com/package/icon-sdk-js) | ||
- [Orbit](https://www.npmjs.com/package/orbit-db) | ||
- NOIA | ||
|
||
## <a name="faucet"></a>🚰 水龍頭 | ||
|
@@ -104,5 +105,8 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for how to help out. | |
|
||
*Quick Start*: Check out [help wanted](https://github.com/PortalNetwork/kaizen-cli/labels/help%20wanted) or [good first issue](https://github.com/PortalNetwork/kaizen-cli/labels/good%20first%20issue) labels to find issues we want to move forward on with your help. | ||
|
||
## <a name="contact"></a>📧 Contact | ||
For any questions, please contact [email protected] or join telegram: [http://bit.ly/2XjhQV2](http://bit.ly/2XjhQV2) | ||
|
||
## <a name="licence"></a>🗒 라이센스 | ||
[LICENSE](./LICENSE) 참조하기 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ KAIZEN Platform 目前正在 Alpha 階段 | |
- [Bluzelle](https://www.npmjs.com/package/bluzelle) | ||
- [NKN](https://www.npmjs.com/package/nkn-client) | ||
- [ICON](https://www.npmjs.com/package/icon-sdk-js) | ||
- [Orbit](https://www.npmjs.com/package/orbit-db) | ||
- NOIA | ||
|
||
## <a name="faucet"></a>🚰 水龍頭 | ||
|
@@ -104,5 +105,8 @@ KAIZEN Faucet 支援下列區塊鏈測試網路的代幣 | |
|
||
*快速開始:您可以透過 [help wanted](https://github.com/PortalNetwork/kaizen-cli/labels/help%20wanted) 或者 [good first issue](https://github.com/PortalNetwork/kaizen-cli/labels/good%20first%20issue) 標籤找到可以參與貢獻的任務。 | ||
|
||
## <a name="contact"></a>📧 聯絡 | ||
如果您有任何問題請聯繫 [email protected] 或者加入我們的 Telegram: [http://bit.ly/2XjhQV2](http://bit.ly/2XjhQV2) | ||
|
||
## <a name="licence"></a>🗒 許可證 | ||
詳細內容請參考 [LICENSE](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
"use strict"; | ||
|
||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
|
||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
|
||
var path = require('path'); | ||
|
||
var fsx = require('fs-extra'); | ||
|
||
var ExecuteCommand = require('../../../lib/ExecuteCommand'); | ||
|
||
module.exports = | ||
/*#__PURE__*/ | ||
_asyncToGenerator( | ||
/*#__PURE__*/ | ||
regeneratorRuntime.mark(function _callee() { | ||
var configPath, userConfig; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return ExecuteCommand('npm install orbit-db ipfs-http-client'); | ||
|
||
case 2: | ||
// update user's kaizen config | ||
configPath = path.resolve('./', 'kaizen.json'); | ||
userConfig = fsx.existsSync(configPath) ? fsx.readJsonSync(configPath) : {}; | ||
|
||
if (!userConfig.plugins) { | ||
userConfig.plugins = []; | ||
} | ||
|
||
if (userConfig.plugins.includes('orbit') === false) { | ||
userConfig.plugins.push('orbit'); | ||
} | ||
|
||
fsx.outputJsonSync(path.resolve('./', 'kaizen.json'), userConfig); | ||
|
||
case 7: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, this); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"use strict"; | ||
|
||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
|
||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
|
||
var path = require("path"); | ||
|
||
var fsx = require("fs-extra"); | ||
|
||
var ExecuteCommand = require('../../../lib/ExecuteCommand'); | ||
|
||
module.exports = | ||
/*#__PURE__*/ | ||
_asyncToGenerator( | ||
/*#__PURE__*/ | ||
regeneratorRuntime.mark(function _callee() { | ||
var configPath, userConfig; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return ExecuteCommand('npm uninstall orbit-db'); | ||
|
||
case 2: | ||
// update user's kaizen config | ||
configPath = path.resolve('./', 'kaizen.json'); | ||
userConfig = fsx.existsSync(configPath) ? fsx.readJsonSync(configPath) : {}; | ||
|
||
if (!userConfig.plugins) { | ||
userConfig.plugins = []; | ||
} | ||
|
||
if (userConfig.plugins.includes('orbit') === false) { | ||
userConfig.plugins = userConfig.plugins.filter(function (element) { | ||
return element != 'orbit'; | ||
}); | ||
} | ||
|
||
fsx.outputJsonSync(path.resolve('./', 'kaizen.json'), userConfig); | ||
|
||
case 7: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, this); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "kaizen-cli", | ||
"version": "0.0.50", | ||
"version": "0.0.51", | ||
"bin": { | ||
"kaizen": "kaizen" | ||
}, | ||
|
Oops, something went wrong.