-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathchompfile.toml
95 lines (86 loc) · 2.69 KB
/
chompfile.toml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version = 0.1
default-task = 'build'
extensions = [
'[email protected]:npm',
'./extensions/static-site-generator.js',
'./extensions/typedoc.js',
]
[env]
IMPORT_MAP_VERSION = '1.1.0'
GENERATOR_VERSION = '2.3.0'
JSPM_CLI_VERSION = '3.3.3'
TYPEDOC_SYNTAX_THEME = 'rose-pine-dawn'
[server]
root = "public_html"
[[task]]
name = 'build'
deps = ['copy:css', 'generate:site', 'generate:api']
[[task]]
name = 'copy:css'
targets = ['public_html/codemirror.css', 'public_html/lint.css']
invalidation = 'always'
run = '''
curl "https://ga.jspm.io/npm:codemirror@5" -o codemirror.version
curl "https://ga.jspm.io/npm:codemirror@$(cat codemirror.version)/lib/codemirror.css" -o public_html/codemirror.css
curl "https://ga.jspm.io/npm:codemirror@$(cat codemirror.version)/addon/lint/lint.css" -o public_html/lint.css
rm codemirror.version
'''
[[task]]
name = 'generate:site'
template = 'static-site-generator'
[task.template-options]
template = 'template.html'
pages = 'pages'
public-html = 'public_html'
feed = 'feed.json'
feed-exclude = [
'pages/docs/',
'pages/cdn/',
'pages/index.md',
'pages/getting-started.md',
'pages/overview.md',
'pages/workflows.md',
'pages/faq.md',
]
site-name = 'JSPM'
site-url = 'https://jspm.org/'
site-image = 'https://jspm.org/jspm.png'
edit-url = 'https://github.com/jspm/jspm.org/blob/main/pages'
[[task]]
name = 'generate:api'
deps = [
'generate:api:generator',
'generate:api:import-map',
'generate:api:jspm-cli',
]
engine = 'node'
[[task]]
name = 'generate:api:generator'
template = 'typedoc-generator'
deps = ['template.html', 'generator/docs.md']
[task.template-options]
lib = 'generator'
custom-css = 'typedoc/typedoc-theme.css'
plugins = './typedoc/typedoc-theme.cjs,typedoc-plugin-versions,typedoc-plugin-external-resolver'
flags = '--lightHighlightTheme $TYPEDOC_SYNTAX_THEME --darkHighlightTheme $TYPEDOC_SYNTAX_THEME'
out = 'public_html/docs/generator'
[[task]]
name = 'generate:api:import-map'
template = 'typedoc-generator'
deps = ['template.html']
[task.template-options]
lib = 'import-map'
custom-css = 'typedoc/typedoc-theme.css'
plugins = './typedoc/typedoc-theme.cjs,typedoc-plugin-versions,typedoc-plugin-external-resolver'
flags = '--lightHighlightTheme $TYPEDOC_SYNTAX_THEME --darkHighlightTheme $TYPEDOC_SYNTAX_THEME'
out = 'public_html/docs/import-map'
[[task]]
name = 'generate:api:jspm-cli'
template = 'typedoc-generator'
deps = ['template.html', 'jspm-cli/docs.md']
[task.template-options]
lib = 'jspm-cli'
custom-css = 'typedoc/typedoc-theme.css'
plugins = './typedoc/typedoc-theme.cjs,typedoc-plugin-versions,typedoc-plugin-external-resolver'
flags = '--lightHighlightTheme $TYPEDOC_SYNTAX_THEME --darkHighlightTheme $TYPEDOC_SYNTAX_THEME'
out = 'public_html/docs/jspm-cli'