Skip to content

andru255/learn-npm-buildtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning how works scripts

This repo is for only learn how works the "scripts" key in a package.json

Pre-requisites

You only need node the lastest version, then download this repo and run into the cloned folder:

~  npm install

Single "hello world"

~ npm run hello-scripts

Hint some scripts

~ npm run hint

Report the complexity script's

~ npm run complexity

Source:

http://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm

http://www.jayway.com/2014/03/28/running-scripts-with-npm/

http://substack.net/task_automation_with_npm_run

WARNING:

This repo only works por unix/linux, osx systems, for Windows users its still a problem with some features, check out this issues:

npm/npm#6543

npm/npm#9420

Alternative with docker (it works! :D)

~ docker build -t buildtool .
~ docker run -rm -i -v $PWD:/src/ -t buildtool npm run [my taskname]

For windows user it works but here a little example how works in console:

~ docker run -rm -i -v /$(pwd):/src/ -t buildtool npm run [my taskname]

About

A single repo for learn and apply the funcionality of "scripts" key in a package.json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published