Skip to content

Commit

Permalink
feat: add vue app demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed May 14, 2024
1 parent f0797fe commit e64aba9
Show file tree
Hide file tree
Showing 10 changed files with 673 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/vue-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
Empty file removed examples/vue-app/.gitkeep
Empty file.
11 changes: 11 additions & 0 deletions examples/vue-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: ['@vue/babel-preset-app'],
plugins: [
[
'@babel/plugin-transform-typescript',
{
isTSX: true,
},
],
],
};
32 changes: 32 additions & 0 deletions examples/vue-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@pixas/vue-app",
"version": "0.0.0",
"description": "pixas vue app demo",
"private": true,
"scripts": {
"dev": "pixas dev",
"build": "pixas build"
},
"dependencies": {
"vue": "^3.4.27"
},
"devDependencies": {
"@vue/babel-preset-app": "^5.0.8",
"@vue/tsconfig": "^0.5.1",
"pixas": "^0.0.0",
"vue-loader": "^17.4.2",
"vue-template-compiler": "^2.7.16"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
8 changes: 8 additions & 0 deletions examples/vue-app/pixas.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { AppConfig } from 'pixas';

const config: AppConfig = {
name: 'vue-app',
description: 'A vue app example',
};

export default config;
8 changes: 8 additions & 0 deletions examples/vue-app/src/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<div>Hello world!</div>
</template>
<script setup lang="ts">
defineOptions({
name: 'App',
});
</script>
6 changes: 6 additions & 0 deletions examples/vue-app/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createApp } from 'vue';
import App from './app.vue';

const app = createApp(App);

app.mount('#app');
3 changes: 3 additions & 0 deletions examples/vue-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@vue/tsconfig/tsconfig.json"
}
Loading

0 comments on commit e64aba9

Please sign in to comment.