DEV Community

Discussion on: A Nice TypeScript Buildchain

caseywebb profile image
Casey Webb

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.


  "scripts": {
    "build": "gulp"
  "devDependencies": {
    "gulp": "..."

You'd then be able to run gulp with npm run build or yarn build.

I like using package.json scripts, because it's self-documenting in terms of all of the available build commands.