feat: implement phase one iceberg build tool

This commit is contained in:
2026-10-31 00:31:06 +01:00
commit af89662161
25 changed files with 949 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
<!doctype html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Iceberg + Frost</title></head><body><main id="app" class="frost-container"><h1>Frost</h1></main><script type="module" src="/src/main.js"></script></body></html>
+22
View File
@@ -0,0 +1,22 @@
{
"name": "iceberg-frost-example",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "iceberg-frost-example",
"dependencies": {
"@fretuks/frost": "file:../../../../WebstormProjects/Frost"
}
},
"../../../Frost": {
"name": "@fretuks/frost",
"version": "0.3.0",
"license": "MIT"
},
"node_modules/@fretuks/frost": {
"resolved": "../../../Frost",
"link": true
}
}
}
+1
View File
@@ -0,0 +1 @@
{ "name": "iceberg-frost-example", "private": true, "type": "module", "dependencies": { "@fretuks/frost": "file:../../../../WebstormProjects/Frost" }, "scripts": { "build": "iceberg build" } }
+2
View File
@@ -0,0 +1,2 @@
import '@fretuks/frost';
document.querySelector('#app').dataset.built = 'true';
+5
View File
@@ -0,0 +1,5 @@
<!doctype html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Iceberg Vanilla</title></head>
<body><main id="app"></main><script type="module" src="/src/main.js"></script></body>
</html>
+1
View File
@@ -0,0 +1 @@
{ "name": "iceberg-vanilla-example", "private": true, "type": "module", "scripts": { "build": "iceberg build" } }
+1
View File
@@ -0,0 +1 @@
.card { padding: 2rem; }
+3
View File
@@ -0,0 +1,3 @@
import './style.css';
import { message } from './utils.js';
document.querySelector('#app').textContent = message;
+2
View File
@@ -0,0 +1,2 @@
@import './components/card.css';
body { margin: 0; font-family: system-ui, sans-serif; }
+1
View File
@@ -0,0 +1 @@
export const message = 'Built with Iceberg';