mirror of https://github.com/embarklabs/embark.git
simplify: mv reset code into index
This commit is contained in:
parent
14c634e0f7
commit
49791c916a
|
@ -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);
|
|
||||||
};
|
|
|
@ -354,9 +354,11 @@ class Embark {
|
||||||
}
|
}
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
this.context = [constants.contexts.reset];
|
var fs = require('../core/fs.js');
|
||||||
let resetCmd = require('./cmds/reset.js');
|
fs.removeSync('./chains.json');
|
||||||
resetCmd();
|
fs.removeSync('.embark/');
|
||||||
|
fs.removeSync('dist/');
|
||||||
|
console.log(__("reset done!").green);
|
||||||
}
|
}
|
||||||
|
|
||||||
upload(options) {
|
upload(options) {
|
||||||
|
|
Loading…
Reference in New Issue