Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeJ <geraud@gcu.info>2014-05-30 06:53:42 +0400
committerisaacs <i@izs.me>2014-06-28 02:12:42 +0400
commit28d62174570e3e05d31ef0490137afaf9db5d289 (patch)
treec5598c8b607569b67b7941a37dc18a41d766eaea /Makefile
parent59eb112eec7bfd0e39b6098142d76ad66d3aca14 (diff)
Allow to build all the docs OOTB.
Since 1.4.10, the html docs are generated via the marked module. when doing the usual "make" dance, the build process stops when attempting to generate the first html doc complaining about a missing node_modules/.bin/marked. This patch is a quick'n'dirty copy-pasta of the treatment applied to load the ronn module but applied to marked. When applied against the 1.4.13 tarball it allows -- at least in a works-for-me manner -- to generate all the docs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c06734958..78014d5c7 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ dev: install
link: uninstall
node cli.js link -f
-clean: ronnclean doc-clean uninstall
+clean: markedclean ronnclean doc-clean uninstall
rm -rf npmrc
node cli.js cache clean
@@ -78,12 +78,16 @@ uninstall:
doc: $(mandocs) $(htmldocs)
+markedclean:
+ rm -rf node_modules/marked node_modules/.bin/marked .building_marked
+
ronnclean:
rm -rf node_modules/ronn node_modules/.bin/ronn .building_ronn
docclean: doc-clean
doc-clean:
rm -rf \
+ .building_marked \
.building_ronn \
html/doc \
html/api \
@@ -149,6 +153,10 @@ html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
scripts/doc-build.sh $< $@
+marked: node_modules/.bin/marked
+
+node_modules/.bin/marked:
+ node cli.js install marked --no-global
ronn: node_modules/.bin/ronn