Skip to content

Commit

Permalink
update vite template
Browse files Browse the repository at this point in the history
  • Loading branch information
haikyuu committed Dec 27, 2023
1 parent 2b6a22d commit c256eb3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
9 changes: 9 additions & 0 deletions packages/imba/templates/vite/imba.config.mjs
@@ -0,0 +1,9 @@
export default {
bundler: "vite",
client: {
// Any vite config can be put in client object in order to configure the bundling.
// It will be merged with the default config bundled with imba
plugins: [], // same for plugins
},
// server: {}
}
2 changes: 1 addition & 1 deletion packages/imba/templates/vite/index.html
Expand Up @@ -7,6 +7,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<script type="module" src="./src/index.js"></script>
<script type="module" src="./src/main.imba"></script>
</body>
</html>
9 changes: 4 additions & 5 deletions packages/imba/templates/vite/package.json
Expand Up @@ -2,13 +2,12 @@
"name": "imba-project",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"dev": "imba serve",
"build": "imba build",
"preview": "imba preview"
},
"devDependencies": {
"vite": "*",
"imba": "*",
"vite-plugin-imba": "*"
"imba": "*"
}
}
1 change: 0 additions & 1 deletion packages/imba/templates/vite/src/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/imba/templates/vite/src/main.imba
@@ -1,6 +1,6 @@
global css body c:warm2 bg:warm8 ff:Arial inset:0 d:vcc

tag app
tag App
count = 0
<self>
<%counter @click=count++>
Expand All @@ -9,4 +9,4 @@ tag app
<img[s:20px] src="https://imba.io/logo.svg">
"count is {count}"

imba.mount <app>
imba.mount <App>
6 changes: 0 additions & 6 deletions packages/imba/templates/vite/vite.config.js

This file was deleted.

0 comments on commit c256eb3

Please sign in to comment.