-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
43 lines (38 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: dist
SHELL := /bin/bash
# ________ ________ ___ ___ ________ ________ ________ ________ ___
# |\ __ \|\ __ \|\ \|\ \|\ ____\ |\ __ \|\ __ \|\ __ \|\ \
# \ \ \|\ \ \ \|\ \ \ \\\ \ \ \___|_ \ \ \|\ \ \ \|\ \ \ \|\ \ \ \
# \ \ \\\ \ \ ____\ \ \\\ \ \_____ \ \ \ ____\ \ \\\ \ \ \\\ \ \ \
# \ \ \\\ \ \ \___|\ \ \\\ \|____|\ \ \ \ \___|\ \ \\\ \ \ \\\ \ \ \____^
# \ \_______\ \__\ \ \_______\____\_\ \ \ \__\ \ \_______\ \_______\ \_______\
# \|_______|\|__| \|_______|\_________\ \|__| \|_______|\|_______|\|_______|
# \|_________|
# Builds package for distribution
#
dist:
npm ci
npm run clean
npm run build
# Publishes package into npm
#
publish: dist
npm login
npm publish --access public
npm logout
# Generates docs
#
doc:
rm -rf docs
rm -rf book/docs
# Used for building all files
npm run doc
cp -r docs book/docs
# Used for building only OpusPool(with TOC)
npm run doc:opuspool
cp -r docs/classes/OpusPool.md book/docs/classes/OpusPool.md
python split_opus_pool.py
# Runs local Gitbook instance
#
book: doc
source /usr/share/nvm/nvm.sh && nvm exec 10.24.1 node ~/node_modules/gitbook-cli serve