随笔分类 -  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 阅读全文
posted @ 2017-02-12 02:38 Zhentiw 阅读(388) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-12 02:21 Zhentiw 阅读(247) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-12 02:05 Zhentiw 阅读(570) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-08 20:26 Zhentiw 阅读(192) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-08 20:18 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要:Unfortunately not all shell commands work across various environments. Two main techniques to support cross-environment scripts is to either use cross 阅读全文
posted @ 2017-02-08 16:38 Zhentiw 阅读(483) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-07 21:22 Zhentiw 阅读(357) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-07 21:13 Zhentiw 阅读(175) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-07 18:52 Zhentiw 阅读(359) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-07 18:45 Zhentiw 阅读(226) 评论(0) 推荐(0)
摘要:In an effort to bypass saving temporary build files you can leverage piping and output redirection to streamline your build process. In addition using 阅读全文
posted @ 2017-02-06 19:43 Zhentiw 阅读(234) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-06 19:36 Zhentiw 阅读(259) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-06 19:25 Zhentiw 阅读(244) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-03 21:56 Zhentiw 阅读(230) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-03 21:48 Zhentiw 阅读(244) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-03 21:43 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-02-03 21:37 Zhentiw 阅读(175) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-01-26 21:41 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-12-06 01:49 Zhentiw 阅读(576) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-12-02 01:43 Zhentiw 阅读(528) 评论(0) 推荐(0)