Skip to content

Commit 4ff8a91

Browse files
committed
chore: add process for building website
1 parent ee39e76 commit 4ff8a91

File tree

9 files changed

+2262
-32
lines changed

9 files changed

+2262
-32
lines changed

package-lock.json

Lines changed: 2224 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"build": "npm run build:library && npm run build:website",
1212
"build:library": "npm run clean && tsc --build && npx outlinecss build --output ./dist/outline.css --entry null --tokens null",
13-
"build:website": "cp -r website website-dist",
13+
"build:website": "npx webanvil",
1414
"clean": "tsc --build --clean",
1515
"preprepare": "ts-patch install",
1616
"prepack": "npm run build"
@@ -28,10 +28,12 @@
2828
"devDependencies": {
2929
"@types/minimist": "^1.2.5",
3030
"@types/node": "^22.4.0",
31+
"ejs": "^3.1.10",
3132
"ts-patch": "^3.2.1",
3233
"tslib": "^2.6.3",
3334
"typescript": "^5.5.4",
34-
"typescript-transform-paths": "^3.4.11"
35+
"typescript-transform-paths": "^3.4.11",
36+
"webanvil": "^0.0.1"
3537
},
3638
"author": "Mateusz Pietrzak",
3739
"license": "MIT",

website/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

website/pages/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
title: Hello World!
4+
---
5+
<div>
6+
Hello world!!!?
7+
<%- include('example') %>
8+
</div>

website/pages/nested/contact.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
title: Contact!
4+
---
5+
<div>
6+
Contact!
7+
<%- include('example') %>
8+
</div>

website/public/.gitkeep

Whitespace-only changes.

website/styles/main.scss

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title><%= title %></title>
6+
<link rel="stylesheet" href="node_modules/outlinecss/dist/outline.css">
7+
</head>
8+
<body>
9+
10+
<header><h1><%= title %></h1></header>
11+
<main>
12+
<%- body %>
13+
</main>
14+
</body>
15+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div>
2+
example partial
3+
</div>

0 commit comments

Comments
 (0)