How does gulp’s initial task automatically generate a folder structure?

  node.js, question

Are there any native methods or modules that can automatically generate directory structures, such as those I need?

Var srcJS = './src/js/', //JS source file directory
 DestJS = './dist/js/', //JS production directory
 SrcCSS = './src/css/', //SCSS source file directory
 DestCSS = './dist/css/', //CSS production directory
 SrcFont = './src/fonts/', // font icon source file directory
 DestFont = './dist/fonts/', // font icon production directory
 Srcmage ='./src/img/',//picture source file directory
 DestImage = './dist/img/', // photo production directory
 SrcComp = './src/comp/', // component file source file directory
 SrcHtml = './src/', // page file source file directory
 destHtml = './dist/';  //Page File Production Directory

At present, I have built them manually. I feel a little tired. Is there any automatic generation method?

UsemkdirpModule bar:

var mkdirp = require('mkdirp');
 
 Var srcJS = './src/js/', //JS source file directory
 DestJS = './dist/js/', //JS production directory
 SrcCSS = './src/css/', //SCSS source file directory
 DestCSS = './dist/css/', //CSS production directory
 SrcFont = './src/fonts/', // font icon source file directory
 DestFont = './dist/fonts/', // font icon production directory
 Srcmage ='./src/img/',//picture source file directory
 DestImage = './dist/img/', // photo production directory
 SrcComp = './src/comp/', // component file source file directory
 SrcHtml = './src/', // page file source file directory
 destHtml = './dist/';  //Page File Production Directory
 
 var dirs = [srcJS, destJS, srcCSS, destCSS, srcFont, destFont, srcImage, destImage, srcComp, srcHtml, destHtml];
 
 dirs.forEach(dir => {
 mkdirp.sync(dir);
 });