This repository has been archived by the owner on Apr 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix name abi-to-script to gen-script, BREAKING CHANGE
- Loading branch information
Showing
12 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
packages/vvisp/commands/abi-to-script.js → packages/vvisp/commands/gen-script.js
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,16 +1,16 @@ | ||
const { abiToScript } = require('../scripts'); | ||
const { genScript } = require('../scripts'); | ||
|
||
const name = 'abi-to-script'; | ||
const name = 'gen-script'; | ||
const signature = `${name} <files...>`; | ||
const description = `generate javascript libraries communicating the smart contracts`; | ||
|
||
const register = commander => | ||
commander | ||
.command(signature, { noHelp: true }) | ||
.usage('<files...> [options]') | ||
.option('-f, --front <name>', 'generate the front-end library') | ||
.option('-f, --front <name>', 'generate the front-end javascript library') | ||
.description(description) | ||
.action(abiToScript) | ||
.action(genScript) | ||
.addCustomConfigOption(); | ||
|
||
module.exports = { name, signature, description, register, abiToScript }; | ||
module.exports = { name, signature, description, register, genScript }; |
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,17 +1,17 @@ | ||
const abiToScript = require('./abi-to-script.js'); | ||
const compile = require('./compile'); | ||
const console = require('./console'); | ||
const deployContract = require('./deploy-contract'); | ||
const deployService = require('./deploy-service'); | ||
const init = require('./init'); | ||
const flatten = require('./flatten'); | ||
const console = require('./console'); | ||
const genScript = require('./gen-script.js'); | ||
const init = require('./init'); | ||
|
||
module.exports = [ | ||
abiToScript, | ||
compile, | ||
console, | ||
deployContract, | ||
deployService, | ||
init, | ||
flatten, | ||
console | ||
genScript, | ||
init | ||
]; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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