mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-11 09:30:50 +01:00
aa6520daac
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
23 lines
366 B
JavaScript
Executable File
23 lines
366 B
JavaScript
Executable File
var fs = require('fs');
|
|
var path = require('path');
|
|
var rimraf = require('rimraf');
|
|
|
|
var cliArgs = process.argv.slice(2);
|
|
|
|
function rmdir_callback(err) {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
}
|
|
|
|
var i, dir;
|
|
|
|
for (i = 0; i < cliArgs.length; i++) {
|
|
|
|
dir = path.resolve(cliArgs[i]);
|
|
|
|
if (fs.existsSync(dir)) {
|
|
rimraf.sync(dir, {}, rmdir_callback);
|
|
}
|
|
}
|