-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathkist.dev.yml
More file actions
89 lines (79 loc) · 2.75 KB
/
kist.dev.yml
File metadata and controls
89 lines (79 loc) · 2.75 KB
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
---
# =============================================================================
# Options
# =============================================================================
options:
mode: development
logLevel: info
# =============================================================================
# Stages
# =============================================================================
stages:
# Build
# =========================================================================
- name: Build
description: "Development build for stylescape"
steps:
# Clean dist directory
# -----------------------------------------------------------------
- name: CleanDistDirectory
action: DirectoryCleanAction
options:
dirPath: "./dist"
# Build CSS (expanded) via kist action
# -----------------------------------------------------------------
- name: BuildCSSExpanded
action: StyleProcessingAction
options:
inputFile: "./src/scss/index.scss"
outputFile: "./dist/css/stylescape.css"
styleOption: "expanded"
# Build JS bundles + sourcemaps (ESM + IIFE) via tsup
# -----------------------------------------------------------------
- name: BuildJSEsm
action: BundleAction
options:
entry:
stylescape: "./src/ts/index.ts"
index: "./src/ts/index.ts"
outDir: "./dist/js"
format: esm
sourcemap: true
minify: false
dts: false
clean: false
- name: BuildJSIife
action: BundleAction
options:
entry:
stylescape.iife: "./src/ts/index.ts"
outDir: "./dist/js"
format: iife
sourcemap: true
minify: false
dts: false
clean: false
# Generate Sections JSON (auto-generate navigation from folder structure)
# -----------------------------------------------------------------
- name: GenerateSections
action: RunScriptAction
options:
scriptPath: "./bin/generate_sections.mjs"
# Render Templates via kist action
# -----------------------------------------------------------------
- name: RenderTemplates
action: TemplateRenderAction
options:
inputDir: "./src/jinja"
outputDir: "./src/html"
pattern: "**/*.html.jinja"
contextFiles:
- "./src/jinja/data/sections.json"
removeExtension: ".jinja"
# Copy rendered HTML to dist
# -----------------------------------------------------------------
- name: CopySrcHTML
action: DirectoryCopyAction
options:
srcDir: "./src/html"
destDir: "./dist/html"