remove some old cleanup code
This commit is contained in:
parent
bd3873a359
commit
2112b4527d
12
dist/mod00/mod00.clean.js
vendored
12
dist/mod00/mod00.clean.js
vendored
@ -10,17 +10,6 @@ let removeDist = function () {
|
|||||||
plugins.beautylog.ora.text('cleaning dist folder');
|
plugins.beautylog.ora.text('cleaning dist folder');
|
||||||
return plugins.smartfile.fs.remove(paths.distDir);
|
return plugins.smartfile.fs.remove(paths.distDir);
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
* remove .d.ts files from testDirctory
|
|
||||||
*/
|
|
||||||
let removeTestDeclarations = function () {
|
|
||||||
let done = q.defer();
|
|
||||||
plugins.smartfile.fs.listFileTree('./test/', '**/*.d.ts').then(fileArray => {
|
|
||||||
let fileArrayToRemove = plugins.smartpath.transform.toAbsolute(fileArray, process.cwd() + '//test/');
|
|
||||||
plugins.smartfile.fs.removeManySync(fileArrayToRemove);
|
|
||||||
done.resolve();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* remove old pages
|
* remove old pages
|
||||||
*/
|
*/
|
||||||
@ -32,7 +21,6 @@ exports.run = function (configArg) {
|
|||||||
plugins.beautylog.ora.text('cleaning up from previous builds...');
|
plugins.beautylog.ora.text('cleaning up from previous builds...');
|
||||||
let done = q.defer();
|
let done = q.defer();
|
||||||
removeDist()
|
removeDist()
|
||||||
.then(removeTestDeclarations)
|
|
||||||
.then(removePages)
|
.then(removePages)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
plugins.beautylog.ok('Cleaned up from previous builds!');
|
plugins.beautylog.ok('Cleaned up from previous builds!');
|
||||||
|
@ -11,18 +11,6 @@ let removeDist = function () {
|
|||||||
return plugins.smartfile.fs.remove(paths.distDir)
|
return plugins.smartfile.fs.remove(paths.distDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* remove .d.ts files from testDirctory
|
|
||||||
*/
|
|
||||||
let removeTestDeclarations = function () {
|
|
||||||
let done = q.defer()
|
|
||||||
plugins.smartfile.fs.listFileTree('./test/', '**/*.d.ts').then(fileArray => {
|
|
||||||
let fileArrayToRemove = plugins.smartpath.transform.toAbsolute(fileArray, process.cwd() + '//test/')
|
|
||||||
plugins.smartfile.fs.removeManySync(fileArrayToRemove)
|
|
||||||
done.resolve()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* remove old pages
|
* remove old pages
|
||||||
*/
|
*/
|
||||||
@ -35,7 +23,6 @@ export let run = function (configArg) {
|
|||||||
plugins.beautylog.ora.text('cleaning up from previous builds...')
|
plugins.beautylog.ora.text('cleaning up from previous builds...')
|
||||||
let done = q.defer()
|
let done = q.defer()
|
||||||
removeDist()
|
removeDist()
|
||||||
.then(removeTestDeclarations)
|
|
||||||
.then(removePages)
|
.then(removePages)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
plugins.beautylog.ok('Cleaned up from previous builds!')
|
plugins.beautylog.ok('Cleaned up from previous builds!')
|
||||||
|
Loading…
Reference in New Issue
Block a user