|
@@ -1,5 +1,8 @@
|
|
|
-# This Makefile offers convience shortcuts into this codebase
|
|
|
-# it functions as a wrapper around the actual npm scripts, collected in `package.json`
|
|
|
+# Licensed under MIT.
|
|
|
+# Copyright (2016) by Kevin van Zonneveld https://twitter.com/kvz
|
|
|
+#
|
|
|
+# This Makefile offers convience shortcuts into any Node.js project that utilizes npm scripts.
|
|
|
+# It functions as a wrapper around the actual listed in `package.json`
|
|
|
# So instead of typing:
|
|
|
#
|
|
|
# $ npm script build:assets
|
|
@@ -12,9 +15,13 @@
|
|
|
#
|
|
|
# The benefits of this wrapper are:
|
|
|
#
|
|
|
-# - You get to keep the the scripts package.json, which is more portable (Makefiles & Windows are harder to mix)
|
|
|
-# - Offer a polite way into the project for developers coming from different languages (npm scripts is obviously very Node centric)
|
|
|
-# - Profit from better autocomplete (make <TAB><TAB>) than npm currently offers. OSX users will have to install bash-completion (http://davidalger.com/development/bash-completion-on-os-x-with-brew/)
|
|
|
+# - You get to keep the the scripts package.json, which is more portable
|
|
|
+# (Makefiles & Windows are harder to mix)
|
|
|
+# - Offer a polite way into the project for developers coming from different
|
|
|
+# languages (npm scripts is obviously very Node centric)
|
|
|
+# - Profit from better autocomplete (make <TAB><TAB>) than npm currently offers.
|
|
|
+# OSX users will have to install bash-completion
|
|
|
+# (http://davidalger.com/development/bash-completion-on-os-x-with-brew/)
|
|
|
|
|
|
define npm_script_targets
|
|
|
TARGETS := $(shell node -e 'for (var k in require("./package.json").scripts) {console.log(k.replace(/:/g, "-"));}')
|