Elijah begins by exploring existing npm scripts, creating custom scripts, having scripts run in series and in parallel, using various npm script lifecycle hooks, passing arguments from one script to another, piping data from one process to another, and using environment or config variables within our scripts.
Elijah then looks at several node packages that enable you to use shorthand and wildcard syntax, run scripts when either the file system changes or certain Git hooks are triggered, and provide ways to easily find and execute the scripts we want.
Elijah ends by examining several techniques to split out npm scripts to external files once they get large or complicated and addressing considerations when trying to run npm scripts across different environments (i.e., Mac, Linux, and Windows).
Elijah Manor is a senior software engineer at LeanKit, as well as a Microsoft ASP.NET MVP, ASPInsider, IE userAgent, and Pluralsight author. A Christian and a family man, Elijah blogs at Elijahmanor.com and tweets about the things he learns.
For exhibition and sponsorship opportunities, email firstname.lastname@example.org
For information on trade opportunities with O'Reilly conferences, email email@example.com
View a complete list of Fluent contacts
©2017, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • firstname.lastname@example.org