diff --git a/.drone.yml b/.drone.yml index 762ad13..1215081 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,31 +3,31 @@ type: docker name: default steps: -- name: deploy - image: docker/compose - volumes: - - name: docker - path: /var/run/docker.sock - - name: pegaz - path: /opt/pegaz - environment: - CI_DOMAIN: - from_secret: CI_DOMAIN - commands: - - apk add --upgrade bash findutils rsync sed - - WORKDIR="/opt/pegaz/services/pegazio" - - rm -rf $WORKDIR - - mkdir $WORKDIR - - rsync -av --exclude ./node_modules /drone/src/ $WORKDIR - - cd $WORKDIR - - sed -i "s|DOMAIN=.*|DOMAIN=\"$CI_DOMAIN\"|g" config.sh - - bash /opt/pegaz/cli.pegaz.sh build pegazio &2> /dev/null - - bash /opt/pegaz/cli.pegaz.sh up pegazio + - name: deploy + image: docker/compose + volumes: + - name: docker + path: /var/run/docker.sock + - name: pegaz + path: /opt/pegaz + environment: + CI_DOMAIN: + from_secret: CI_DOMAIN + commands: + - apk add --upgrade bash findutils rsync sed + - WORKDIR="/opt/pegaz/services/pegazio" + - rm -rf $WORKDIR + - mkdir $WORKDIR + - rsync -av --exclude ./node_modules /drone/src/ $WORKDIR + - cd $WORKDIR + - sed -i "s|DOMAIN=.*|DOMAIN=\"$CI_DOMAIN\"|g" config.sh + - bash /opt/pegaz/cli.pegaz.sh build pegazio &2> /dev/null + - bash /opt/pegaz/cli.pegaz.sh up pegazio volumes: -- name: pegaz - host: - path: /opt/pegaz -- name: docker - host: - path: /var/run/docker.sock + - name: pegaz + host: + path: /opt/pegaz + - name: docker + host: + path: /var/run/docker.sock diff --git a/.eslintrc.js b/.eslintrc.js index 9711295..b1d64b5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,13 @@ module.exports = { - extends: ["plugin:vue/vue3-essential", "prettier"], + extends: [ + 'plugin:vue/vue3-essential', + 'prettier', + // 'airbnb-base', + 'plugin:import/typescript' + ], rules: { // override/add rules settings here, such as: - "vue/no-unused-vars": "error", + 'vue/no-unused-vars': 'error', + 'vue/multi-word-component-names': 'off', }, -}; +} diff --git a/.prettierrc.js b/.prettierrc.js index b2b06e0..ad6c3f5 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,9 +3,9 @@ module.exports = { tabWidth: 2, useTabs: false, printWidth: 80, - endOfLine: "auto", + endOfLine: 'auto', singleQuote: true, - trailingComma: "es5", + trailingComma: 'es5', bracketSpacing: true, - arrowParens: "always", -}; + arrowParens: 'always', +} diff --git a/README.md b/README.md index a57e14d..d393cb4 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,28 @@ +# TODO + +0. anim pegaz create ?? +1. presentation de l'arborecense - doc du code +2. command line guide - doc du CLI +3. configuration file ? + # vue-3-stackter  A Vue3 starter project setup with these following components, -- [Vite](https://vitejs.dev/) -- vue-meta-3.0.0-alpha.8 -- Router -- [Pinia](https://pinia.vuejs.org/) (Vue 3 default) -- Eslint -- Prettier -- [Tailwind CSS](https://tailwindcss.com/) -- File based routing with [vite-plugin-pages](https://github.com/hannoeru/vite-plugin-pages). (Like [Nuxt file system routing](https://nuxtjs.org/docs/2.x/features/file-system-routing)) -- Layout system with [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts). (Like [Nuxt layouts](https://nuxtjs.org/docs/2.x/directory-structure/layouts)) +- [Vite](https://vitejs.dev/) +- vue-meta-3.0.0-alpha.8 +- Router +- [Pinia](https://pinia.vuejs.org/) (Vue 3 default) +- Eslint +- Prettier +- [Tailwind CSS](https://tailwindcss.com/) +- File based routing with [vite-plugin-pages](https://github.com/hannoeru/vite-plugin-pages). (Like [Nuxt file system routing](https://nuxtjs.org/docs/2.x/features/file-system-routing)) +- Layout system with [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts). (Like [Nuxt layouts](https://nuxtjs.org/docs/2.x/directory-structure/layouts)) - Components auto importing with [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) -- `~/` alias for `/src`. So we don't have to write something like `../../../SomeModule` to import modules. -- and some custom setups. +- `~/` alias for `/src`. So we don't have to write something like `../../../SomeModule` to import modules. +- and some custom setups. [Check out Typescript version here](https://github.com/shamscorner/vitesse-stackter-clean-architect) diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..6e20f69 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,20 @@ +// generated by unplugin-vue-components +// We suggest you to commit this file into source control +// Read more: https://github.com/vuejs/core/pull/3399 +import '@vue/runtime-core' + +export {} + +declare module '@vue/runtime-core' { + export interface GlobalComponents { + ApplicationsList: typeof import('./src/components/applications-list.vue')['default'] + BackupRestore: typeof import('./src/components/backup-restore.vue')['default'] + Demo: typeof import('./src/components/demo.vue')['default'] + Disclaimer: typeof import('./src/components/disclaimer.vue')['default'] + HeroButtons: typeof import('./src/components/hero-buttons.vue')['default'] + HeroTitle: typeof import('./src/components/hero-title.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + Terminal: typeof import('./src/components/terminal.vue')['default'] + } +} diff --git a/docker-compose.yml b/docker-compose.yml index 6f6c76e..a7d813c 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,5 @@ -version: "3.7" +version: '3.7' services: - pegazio: image: pegazio build: . @@ -11,11 +10,11 @@ services: volumes: - $PWD:/app environment: - VIRTUAL_HOST: "${DOMAIN}" - LETSENCRYPT_HOST: "${DOMAIN}" - PUID: "${PUID}" - PGID: "${PGID}" + VIRTUAL_HOST: '${DOMAIN}' + LETSENCRYPT_HOST: '${DOMAIN}' + PUID: '${PUID}' + PGID: '${PGID}' networks: default: - name: pegaz \ No newline at end of file + name: pegaz diff --git a/histoire.config.js b/histoire.config.js index 48e6a34..e981cda 100644 --- a/histoire.config.js +++ b/histoire.config.js @@ -2,7 +2,5 @@ import { defineConfig } from 'histoire' import { HstVue } from '@histoire/plugin-vue' export default defineConfig({ - plugins: [ - HstVue(), - ], -}) \ No newline at end of file + plugins: [HstVue()], +}) diff --git a/index.html b/index.html index 357668b..21598fa 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,30 @@
- - - - - - - - - - + + + + + + + + + +
- {{ terminalContent }}
-
-
+ {{ terminalContent
+ }}
+
+