随笔分类 - Node.js
摘要:In this lesson we will look at pulling out complex npm script logic into an external JavaScript file. Instead of writing bash scripts you can leverage
阅读全文
摘要:In this lesson we will look at pulling out complex npm scripts into their own external bash scripts. This ends up simplifying your package.json file a
阅读全文
摘要:A technique you might use once you start having lots of npm scripts is to use a node package that allows you to define your scripts in an external pac
阅读全文
摘要:The need for comments in your package.json file becomes desirable the more and more npm scripts you start to define. At first glance this might seem l
阅读全文
摘要:In this lesson we will look at different ways you can list the available npm scripts. Whether we want to pipe npm run through less or install an npm p
阅读全文
摘要:Unfortunately not all shell commands work across various environments. Two main techniques to support cross-environment scripts is to either use cross
阅读全文
摘要:In this lesson we will look about how we can integrate with git hooks to help enforce a certain level of quality before you either commit your code or
阅读全文
摘要:In addition to package.json level variables (such as name and version), you can have custom conf settings that can be used in your npm scripts. These
阅读全文
摘要:In this lesson we will show that you can leverage values that you already have provided in your package.json file such as the name and version keys. Y
阅读全文
摘要:In this lesson we will look at how we can setup our npm scripts to execute when the file system has changed. Some common examples of this are automati
阅读全文
摘要:In an effort to bypass saving temporary build files you can leverage piping and output redirection to streamline your build process. In addition using
阅读全文
摘要:Often times you’ll have variations that you’ll want to make to your npm scripts and repeating yourself is inefficient and verbose. Instead you can cre
阅读全文
摘要:In this lesson, I introduce a memory leak into our node.js application and show you how to identify it using the Formidable nodejs-dashboard. Once ide
阅读全文
摘要:In this lesson we will run a set of scripts that are grouped together with a wildcard using the npm-run-all node package. Using this technique can hel
阅读全文
摘要:Running multiple scripts in series or in parallel can become very verbose. Using a tool such as npm-run-all can help reduce the amount of overhead you
阅读全文
摘要:In this lesson we will look at running several npm scripts in parallel. Sometimes you don’t need scripts to be run in series and switching them to run
阅读全文
摘要:After creating several npm script it becomes useful to run multiple scripts back-to-back in series. This is a nice feature because you can enforce tha
阅读全文
摘要:micro is a small module that makes it easy to write high performance and asynchronous microservices in Node.js. This video will introduce you to micro
阅读全文
摘要:Use Zeit’s now to deploy a node application from your local machine to a remote cloud service in moments. Install: Deploy: The url it generates contai
阅读全文
摘要:Command line arguments are often used to modify the behavior of an application or specify needed parameters for operation. In this lesson, you will le
阅读全文