L
L
lilwings2020-02-25 17:27:25
npm
lilwings, 2020-02-25 17:27:25

How to create a build command that would create folders if they don't exist?

Hello everyone, there is a project that is built on scss, typescript, svg-sprite.

And each script saves the finished result to a folder:

5e552db38cad9383809929.png

But if there is no output folder, then these scripts will simply work, without creating the same output folder.

Is it possible to do this: Write a script that would generate all the necessary folders and then call all these scripts.

At the expense of calling all the necessary scripts on command, I know how to do it, but how to generate a folder for them without a clue.

PS: Folders don't fly to gitlub css/js/sprite, here we need the build command so as not to create folders manually. At first, there is nothing in manual creation, then when you do it N times you get bored

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adik Izat, 2020-02-25
@JaxAdam

If I were you, I would look at programs like Koala, which will recompile scripts for you into the same folders in a different folder. There was another program, but I forgot the name. They work in the background and don't get in the way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question