Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
"name": "app_template",
"version": "1.0.0",
"license": "AGPL-3.0-or-later",
"engines": {
"node": "^22.0.0",
"npm": "^10.5.0"
},
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite --mode development build",
"watch": "vite --mode development build --watch",
"lint": "eslint src",
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css"
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css",
"watch": "vite --mode development build --watch"
},
"type": "module",
"browserslist": [
"extends @nextcloud/browserslist-config"
],
Expand All @@ -26,6 +22,12 @@
"@nextcloud/eslint-config": "^8.4.2",
"@nextcloud/stylelint-config": "^3.1.0",
"@nextcloud/vite-config": "^2.5.0",
"@vue/tsconfig": "^0.8.1",
"typescript": "^5.9.2",
"vite": "^7.1.7"
},
"engines": {
"node": "^22.0.0",
"npm": "^10.5.0"
}
}
24 changes: 8 additions & 16 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
<script setup lang="ts">
import NcAppContent from '@nextcloud/vue/components/NcAppContent'
import NcContent from '@nextcloud/vue/components/NcContent'
</script>

<template>
<NcContent app-name="app_template">
<NcAppContent>
<NcAppContent :class="$style.content">
<h2>Hello world!</h2>
</NcAppContent>
</NcContent>
</template>

<script>

import { NcAppContent, NcContent } from '@nextcloud/vue'

export default {
name: 'App',
components: {
NcContent,
NcAppContent,
},
}
</script>

<style scoped lang="scss">
main {
<style module>
.content {
display: flex;
justify-content: center;
margin: 16px;
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@vue/tsconfig",
"include": ["./src/**/*.ts", "./src/**/*.vue"],
"compilerOptions": {
"erasableSyntaxOnly": true,
"outDir": "js",
"rootDir": "src"
},
}
13 changes: 0 additions & 13 deletions vite.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { createAppConfig } from '@nextcloud/vite-config'
import { join, resolve } from 'path'

export default createAppConfig(
{
main: resolve(join('src', 'main.js')),
},
{
createEmptyCSSEntryPoints: true,
extractLicenseInformation: true,
thirdPartyLicense: false,
},
)