Slide 1

Slide 1 text

npm run all run the world, one command at a time @bobylito - ParisJS#46

Slide 2

Slide 2 text

What is npm run? https://docs.npmjs.com/cli/run-script

Slide 3

Slide 3 text

It executes commands • defined in scripts object of the package.json • the commands are run with : 
 npm run command

Slide 4

Slide 4 text

BUT WHHY? since I have everything I already need with my build- system X!

Slide 5

Slide 5 text

Node comes with NPM

Slide 6

Slide 6 text

Runs node modules

Slide 7

Slide 7 text

Straightforward

Slide 8

Slide 8 text

Up to date

Slide 9

Slide 9 text

Feature full

Slide 10

Slide 10 text

Demo time! Live coding FTW or not

Slide 11

Slide 11 text

Thanks @bobylito - Paris JS 04/2015

Slide 12

Slide 12 text

Some links • Real world switching to NPM run : http:// blog.keithcirkel.co.uk/how-to-use-npm-as-a- build-tool/ • Official doc : https://docs.npmjs.com/cli/run- script • Task automation with NPM run : http:// substack.net/task_automation_with_npm_run