A
A
Andrey Barchuk2021-02-10 20:51:07
npm
Andrey Barchuk, 2021-02-10 20:51:07

How to run 2 scripts npm commands?

I want to run the bundle command so that it starts gulp in turn and then the archiver.
Now this is the kind of line, but it now launches the archiver, and then gulp

"scripts": {
    "bundle": "gulp && dir-archiver --src . --dest ../_s.zip --exclude .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist assets sass style.css.map"
  },

you need gulp, and then the archiver, help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-02-10
@yarkov

https://www.npmjs.com/package/npm-run-all
But in general, this is a game - there are so many parameters to shove into the command. Write a script and run it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question