-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (40 loc) · 2.95 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include .launchpad/Makefile.header # see .launchpad/Makefile.documentation
#-----------------------------------------------------------------------------------------------------------------------
# Default target
#-----------------------------------------------------------------------------------------------------------------------
autorun.editor: test;
autorun : $(LP_PREREQUISITE_TSC) # $(LP_PREREQUISITE_BUNDLE) or $(LP_PREREQUISITE_BUNDLE_JS) + $(LP_PREREQUISITE_BUNDLE_DTS)
#$(call lp.run, build/cli/cli.js)
#-----------------------------------------------------------------------------------------------------------------------
# Bundling
#-----------------------------------------------------------------------------------------------------------------------
$(call lp.bundle.add, src/bundles/typefinity-cli.ts, build/bundle/typefinity-cli.mjs, cli dts minify sourcemap)
$(call lp.bundle.add, src/bundles/typefinity-core.ts, build/bundle/typefinity-core.mjs, cli dts minify sourcemap)
$(call lp.bundle.add, src/bundles/typefinity-test.ts, build/bundle/typefinity-test.mjs, cli dts minify sourcemap)
$(call lp.bundle.add, src/bundles/typefinity-web.ts, build/bundle/typefinity-web.mjs, cli dts minify sourcemap)
#-----------------------------------------------------------------------------------------------------------------------
# TypeDoc
#-----------------------------------------------------------------------------------------------------------------------
$(call lp.help.add-target, docs, ............... create API documentation)
.PHONY: doc docs documentation typedoc
doc docs documentation typedoc : build/typedoc/index.html;
build/typedoc/index.html : $(LP_PREREQUISITE_TSC) $(wildcard resources/typedoc/*)
. bin/create-api-documentation.sh
#-----------------------------------------------------------------------------------------------------------------------
# Release
#-----------------------------------------------------------------------------------------------------------------------
$(call lp.help.add-phony-target , release, ............ assemble the release)
release : bundle typedoc test;
. ./bin/assemble-release.sh
#-----------------------------------------------------------------------------------------------------------------------
# Publish
#-----------------------------------------------------------------------------------------------------------------------
$(call lp.help.add-phony-target, publish, ............ publish the npm package and the API documentation)
publish : release;
. ./bin/publish.sh
#-----------------------------------------------------------------------------------------------------------------------
# Clean
#-----------------------------------------------------------------------------------------------------------------------
$(call lp.clean.files, build dist)
#-----------------------------------------------------------------------------------------------------------------------
include .launchpad/Makefile.footer