Generate documentation by assembling markdown and litcoffee files

This commit is contained in:
Glen Whitney 2019-12-09 20:52:42 -05:00
parent 83318c7884
commit eb81cee609
5 changed files with 42 additions and 20 deletions

View file

@ -5,13 +5,21 @@
"private": "true",
"main": "dyna3.js",
"scripts": {
"clean": "rm -r site",
"clean": "rm -rf site docbuild",
"doc:extra":
"mkdir -p docbuild && coffee src/helpers/pkglock_to_externals.litcoffee --doc > docbuild/extlist.md",
"doc:collate":
"mkdir -p site/doc && coffee doc/gendoc.litcoffee > site/doc/dyna3.md",
"doc": "npm run doc:extra && npm run doc:collate",
"prebuild": "npm run clean",
"build:coffee": "coffee -o site -c -m src/*.litcoffee",
"build:ext":
"coffee src/helpers/pkglock_to_externals.litcoffee > site/externals.js",
"build:doc":
"npm run doc && pandoc -s --toc site/doc/dyna3.md > site/doc/dyna3.html",
"build:copy": "cp src/*.html site && cp -r node_modules site",
"build": "npm run build:coffee && npm run build:ext && npm run build:copy",
"build":
"npm run build:coffee && npm run build:ext && npm run build:doc && npm run build:copy",
"test": "qunit"
},
"repository": {