mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-03 02:43:25 +00:00
simplify: mv reset code into index
This commit is contained in:
parent
7fcc504873
commit
89a0729002
@ -1,8 +0,0 @@
|
||||
var fs = require('../core/fs.js');
|
||||
|
||||
module.exports = function() {
|
||||
fs.removeSync('./chains.json');
|
||||
fs.removeSync('.embark/');
|
||||
fs.removeSync('dist/');
|
||||
console.log(__("reset done!").green);
|
||||
};
|
@ -351,9 +351,11 @@ class Embark {
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.context = [constants.contexts.reset];
|
||||
let resetCmd = require('./cmds/reset.js');
|
||||
resetCmd();
|
||||
var fs = require('../core/fs.js');
|
||||
fs.removeSync('./chains.json');
|
||||
fs.removeSync('.embark/');
|
||||
fs.removeSync('dist/');
|
||||
console.log(__("reset done!").green);
|
||||
}
|
||||
|
||||
upload(options) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user