@zenithbuild/language 0.5.0-beta.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ <script setup="ts" lang="ts">
2
+ state count = 0
3
+
4
+ function increment() {
5
+ count = count + 1
6
+ }
7
+
8
+ function decrement() {
9
+ count = count - 1
10
+ }
11
+
12
+ zenOnMount(() => {
13
+ console.log('🚀 Zenith app mounted!')
14
+ })
15
+ </script>
16
+
17
+ <div class="card" onClick={() => increment()} disabled>
18
+ <h1>Counter: {count}</h1>
19
+ <button onClick={() => increment()}>+</button>
20
+ <button onClick={() => decrement()}>-</button>
21
+ </div>
22
+
23
+ <Counter count={count} :data-id="myId" />
24
+
25
+ <style scoped>
26
+ .card {
27
+ padding: 1rem;
28
+ border-radius: 8px;
29
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
30
+ }
31
+
32
+ button {
33
+ margin: 0.5rem;
34
+ padding: 0.5rem 1rem;
35
+ }
36
+ </style>
package/tsconfig.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "commonjs",
5
+ "lib": [
6
+ "ES2020"
7
+ ],
8
+ "outDir": "./out",
9
+ "rootDir": "./src",
10
+ "strict": true,
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "declaration": true,
15
+ "declarationMap": true,
16
+ "sourceMap": true,
17
+ "moduleResolution": "node"
18
+ },
19
+ "include": [
20
+ "src/**/*"
21
+ ],
22
+ "exclude": [
23
+ "node_modules",
24
+ "out"
25
+ ]
26
+ }