It's also worth mentioning, in this setup, you could add your gulp command to the package.json scripts, and then no one needs to know about npx as npm will add ./node_modules/.bin to the path for anything executed with npm run.
gulp
package.json
./node_modules/.bin
npm run
e.g.
{ "scripts": { "build": "gulp" }, "devDependencies": { "gulp": "..." } }
You'd then be able to run gulp with npm run build or yarn build.
npm run build
yarn build
I like using package.json scripts, because it's self-documenting in terms of all of the available build commands.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's also worth mentioning, in this setup, you could add your
gulp
command to thepackage.json
scripts, and then no one needs to know about npx as npm will add./node_modules/.bin
to the path for anything executed withnpm run
.e.g.
You'd then be able to run gulp with
npm run build
oryarn build
.I like using package.json scripts, because it's self-documenting in terms of all of the available build commands.