mdzjs 0.0.2 → 0.0.4
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.
- package/examples/vanjs/README.md +25 -0
- package/examples/vanjs/index.html +13 -0
- package/examples/vanjs/package-lock.json +1069 -0
- package/examples/vanjs/package.json +20 -0
- package/examples/vanjs/public/vanjs.svg +1 -0
- package/examples/vanjs/public/vite.svg +1 -0
- package/examples/vanjs/src/App.css +97 -0
- package/examples/vanjs/src/App.js +42 -0
- package/examples/vanjs/src/blog/__test__.mdx +18 -0
- package/examples/vanjs/src/blog/test.mdx +106 -0
- package/examples/vanjs/src/components/Counter.js +10 -0
- package/examples/vanjs/src/components/comp.js +13 -0
- package/examples/vanjs/src/components/md.mdx +0 -0
- package/examples/vanjs/src/vite-env.d.ts +1 -0
- package/examples/vanjs/vite.config.js +8 -0
- package/package.json +5 -6
- package/preview/index.html +1 -1
- package/preview/main.js +1 -1
- package/preview/package-lock.json +8 -252
- package/preview/package.json +1 -1
- package/preview/vite.config.js +3 -1
- package/src/transpiler/process.js +22 -22
- package/src/transpiler/transpile.js +5 -4
- package/src/types/Style.d.ts +84 -0
- package/src/utils/hyperscript.js +26 -1
- package/src/utils/parse-yml.js +9 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## node-base
|
|
2
|
+
|
|
3
|
+
A minimalist starter template for VanJS.
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- NodeJS Configuration (works with any runtime)
|
|
8
|
+
- Single Page Application (SPA)
|
|
9
|
+
|
|
10
|
+
### Scripts
|
|
11
|
+
|
|
12
|
+
- `npm run dev` - Start the development server
|
|
13
|
+
- `npm run build` - Build for production
|
|
14
|
+
- `npm run start` - Start the app in production mode
|
|
15
|
+
- `npm run preview` - Preview the production build
|
|
16
|
+
- `npm run serve` - Vite serves the app on the network.
|
|
17
|
+
|
|
18
|
+
### What's included
|
|
19
|
+
|
|
20
|
+
- `vanjs-core` - The VanJS core library for building reactive UIs.
|
|
21
|
+
|
|
22
|
+
### Resources
|
|
23
|
+
|
|
24
|
+
- [vanjs-core](https://vanjs.org/tutorial): The Official VanJS Tutorial.
|
|
25
|
+
- [vite](https://vite.dev): The Official Vite Website.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>VanJS App</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/App.js"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|