Skip to content

Commit

Permalink
Remove ganache-cli dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
macor161 committed Jun 8, 2019
1 parent 2b37298 commit 779e995
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 21,688 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
yarn-error.log
.vscode
.vscode
build
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"commander": "^2.20.0",
"debug": "^4.1.1",
"fs-extra": "^7.0.1",
"ganache-cli": "^6.4.1",
"import-fresh": "^3.0.0",
"line-column": "^1.0.2",
"lodash": "^4.17.11",
Expand Down
1 change: 1 addition & 0 deletions src/commands/ganache.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This command is currently disabled
const {ganacheServer} = require('../ganache-server')

module.exports = function(dep) {
Expand Down
1 change: 1 addition & 0 deletions src/commands/serve.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This command is currently disabled
module.exports = ({argv, logger, getOptions}) => {
return async () => {
const build = require('../build')
Expand Down
3 changes: 2 additions & 1 deletion src/ganache-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const ACCOUNT_PADDING = 3

exports.ganacheServer = async function ganacheServer(options) {
return new Promise((res, rej) => {
/* Disabled for now
const ganache = require('ganache-cli')
const server = ganache.server(options)
Expand All @@ -18,7 +19,7 @@ exports.ganacheServer = async function ganacheServer(options) {
}
res(getServerInfo(ganacheInfo, PORT))
})
})*/
})
}

Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ async function main() {
try {
const argv = require('commander')
.option('-w, --watch', 'Watch for changes')
.option('-s, --serve', 'Start a ganache server')
// Ganache (serve) command is currently disabled
//.option('-s, --serve', 'Start a ganache server')
.version(jsonPackage.version)
.parse(process.argv)

Expand Down
12,050 changes: 0 additions & 12,050 deletions test/test-project/build/contracts/ERC20.json

This file was deleted.

1,888 changes: 0 additions & 1,888 deletions test/test-project/build/contracts/IERC20.json

This file was deleted.

Loading

0 comments on commit 779e995

Please sign in to comment.