Design by typing

Screencasts on design and front-end development

NPM Publish Workflow

Disclaimer: This is a pretty hacky process. It's mostly meant to demonstrate a few ways to combine simple unix utilities

In this screencast I pipe output from the ls command to the contents of a new file called 'npm-publish.txt'. I then use xargs to run a command on every line in a file. In this case we will run npm-publish on every line in the file called npm-publish.txt


ls >> npm-publish.txt
xargs -n 1 npm publish < npm-publish.txt