raylu před 2 měsíci
revize
1ee151409e
9 změnil soubory, kde provedl 90 přidání a 0 odebrání
  1. 1 0
      .gitignore
  2. 14 0
      bun.lock
  3. 7 0
      dist/main.js
  4. 9 0
      dist/main.js.map
  5. 13 0
      index.html
  6. 13 0
      package.json
  7. 0 0
      src/main.ts
  8. 16 0
      styles.css
  9. 17 0
      tsconfig.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules/

+ 14 - 0
bun.lock

@@ -0,0 +1,14 @@
+{
+  "lockfileVersion": 1,
+  "workspaces": {
+    "": {
+      "name": "prun-calc",
+      "devDependencies": {
+        "typescript": "^5.2.0",
+      },
+    },
+  },
+  "packages": {
+    "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
+  }
+}

+ 7 - 0
dist/main.js

@@ -0,0 +1,7 @@
+// src/main.ts
+var main_default = {};
+export {
+  main_default as default
+};
+
+//# debugId=7ACBF329D9352D3964756E2164756E21

+ 9 - 0
dist/main.js.map

@@ -0,0 +1,9 @@
+{
+  "version": 3,
+  "sources": [],
+  "sourcesContent": [
+  ],
+  "mappings": "",
+  "debugId": "7ACBF329D9352D3964756E2164756E21",
+  "names": []
+}

+ 13 - 0
index.html

@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+	<meta charset="UTF-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<title>PrUn calculator</title>
+	<link rel="stylesheet" href="styles.css">
+</head>
+<body>
+	<main></main>
+	<script type="module" src="./dist/main.js"></script>
+</body>
+</html>

+ 13 - 0
package.json

@@ -0,0 +1,13 @@
+{
+  "name": "prun-calc",
+  "version": "1.0.0",
+  "description": "GitHub Pages site with TypeScript",
+  "scripts": {
+    "build": "bun build src/main.ts --outdir dist --target browser --sourcemap=external",
+    "typecheck": "tsc --noEmit",
+    "serve": "python3 -m http.server 8000"
+  },
+  "devDependencies": {
+    "typescript": "^5.2.0"
+  }
+}

+ 0 - 0
src/main.ts


+ 16 - 0
styles.css

@@ -0,0 +1,16 @@
+* {
+    box-sizing: border-box;
+}
+
+body {
+    font-family: sans-serif;
+    background-color: #000;
+    color: #eee;
+}
+
+main {
+    max-width: 1200px;
+    margin: 1em auto;
+    padding: 1em;
+    background: #111;
+}

+ 17 - 0
tsconfig.json

@@ -0,0 +1,17 @@
+{
+  "compilerOptions": {
+    "target": "esnext",
+    "module": "esnext",
+    "lib": ["ESNext", "DOM"],
+    "outDir": "./dist",
+    "rootDir": "./src",
+    "strict": true,
+    "esModuleInterop": true,
+    "skipLibCheck": true,
+    "forceConsistentCasingInFileNames": true,
+    "moduleResolution": "bundler",
+    "sourceMap": true,
+  },
+  "include": ["src/**/*"],
+  "exclude": ["node_modules"],
+}