Drop mkdirp
This commit is contained in:
parent
2b22e8cd05
commit
55344f8a9d
|
@ -24,7 +24,6 @@
|
||||||
"double-ended-queue": "^2.1.0-0",
|
"double-ended-queue": "^2.1.0-0",
|
||||||
"express": "^4.17.3",
|
"express": "^4.17.3",
|
||||||
"helmet": "^3.23.3",
|
"helmet": "^3.23.3",
|
||||||
"mkdirp": "^0.5.6",
|
|
||||||
"mozlog": "^3.0.1",
|
"mozlog": "^3.0.1",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
"redis": "^3.1.1",
|
"redis": "^3.1.1",
|
||||||
|
@ -13038,6 +13037,7 @@
|
||||||
"version": "0.5.6",
|
"version": "0.5.6",
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
||||||
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
||||||
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.6"
|
"minimist": "^1.2.6"
|
||||||
},
|
},
|
||||||
|
@ -32682,6 +32682,7 @@
|
||||||
"version": "0.5.6",
|
"version": "0.5.6",
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
||||||
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"minimist": "^1.2.6"
|
"minimist": "^1.2.6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,6 @@
|
||||||
"double-ended-queue": "^2.1.0-0",
|
"double-ended-queue": "^2.1.0-0",
|
||||||
"express": "^4.17.3",
|
"express": "^4.17.3",
|
||||||
"helmet": "^3.23.3",
|
"helmet": "^3.23.3",
|
||||||
"mkdirp": "^0.5.6",
|
|
||||||
"mozlog": "^3.0.1",
|
"mozlog": "^3.0.1",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
"redis": "^3.1.1",
|
"redis": "^3.1.1",
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const promisify = require('util').promisify;
|
const promisify = require('util').promisify;
|
||||||
const mkdirp = require('mkdirp');
|
|
||||||
|
|
||||||
const stat = promisify(fs.stat);
|
const stat = promisify(fs.stat);
|
||||||
|
|
||||||
|
@ -9,7 +8,9 @@ class FSStorage {
|
||||||
constructor(config, log) {
|
constructor(config, log) {
|
||||||
this.log = log;
|
this.log = log;
|
||||||
this.dir = config.file_dir;
|
this.dir = config.file_dir;
|
||||||
mkdirp.sync(this.dir);
|
fs.mkdirSync(this.dir, {
|
||||||
|
recursive: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async length(id) {
|
async length(id) {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* eslint-disable no-undef, no-process-exit */
|
/* eslint-disable no-undef, no-process-exit */
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const mkdirp = require('mkdirp');
|
|
||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const config = require('../../webpack.config');
|
const config = require('../../webpack.config');
|
||||||
|
@ -44,7 +43,9 @@ const server = app.listen(async function() {
|
||||||
const coverage = await page.evaluate(() => __coverage__);
|
const coverage = await page.evaluate(() => __coverage__);
|
||||||
if (coverage) {
|
if (coverage) {
|
||||||
const dir = path.resolve(__dirname, '../../.nyc_output');
|
const dir = path.resolve(__dirname, '../../.nyc_output');
|
||||||
mkdirp.sync(dir);
|
fs.mkdirSync(dir, {
|
||||||
|
recursive: true
|
||||||
|
});
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path.resolve(dir, 'frontend.json'),
|
path.resolve(dir, 'frontend.json'),
|
||||||
JSON.stringify(coverage)
|
JSON.stringify(coverage)
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const mkdirp = require('mkdirp');
|
const fs = require('fs');
|
||||||
const rimraf = require('rimraf');
|
const rimraf = require('rimraf');
|
||||||
const dir = path.join(__dirname, 'integration', 'downloads');
|
const dir = path.join(__dirname, 'integration', 'downloads');
|
||||||
|
|
||||||
mkdirp.sync(dir);
|
fs.mkdirSync(dir, {
|
||||||
|
recursive: true
|
||||||
|
});
|
||||||
rimraf.sync(`${dir}${path.sep}*`);
|
rimraf.sync(`${dir}${path.sep}*`);
|
||||||
|
|
||||||
exports.config = {
|
exports.config = {
|
||||||
|
|
Loading…
Reference in New Issue