commit 764c6cdc59921a9203681defe57cc405444b73f9 Author: wanggang <76527413@qq.com> Date: Wed Jun 2 16:24:24 2021 +0800 init diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..87ff3d9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +kind: pipeline +type: docker +name: default +platform: + arch: amd64 + os: linux +steps: + - name: build + image: node:16.2.0 + commands: + - vite build + - name: publish + image: plugins/docker:19.03.8 + environment: + PLUGIN_REGISTRY: 10.10.14.176:5000 + PLUGIN_REPO: 10.10.14.176:5000/fe/example + settings: + insecure: true + tags: + - latest + - ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53f7466 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d91e269 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM 1.21.0-alpine +WORKDIR /usr/share/nginx/html +COPY dist . \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..030a6ff --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..f416b7c --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "version": "0.0.0", + "scripts": { + "dev": "vite", + "build": "vite build", + "serve": "vite preview" + }, + "dependencies": { + "vue": "^3.0.5" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^1.2.3", + "@vue/compiler-sfc": "^3.0.5", + "vite": "^2.3.5" + } +} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..df36fcf Binary files /dev/null and b/public/favicon.ico differ diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..b67169d --- /dev/null +++ b/src/App.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue new file mode 100644 index 0000000..d834212 --- /dev/null +++ b/src/components/HelloWorld.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..01433bc --- /dev/null +++ b/src/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..315212d --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [vue()] +})