Skip to content

Commit 3d626ae

Browse files
committed
Add rollup options, update vite config
1 parent 7aa36e0 commit 3d626ae

File tree

15 files changed

+1258
-216
lines changed

15 files changed

+1258
-216
lines changed

package-lock.json

Lines changed: 1188 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,47 @@
11
{
22
"name": "google-recaptcha-vue3",
3-
"private": true,
4-
"version": "0.0.0",
3+
"version": "0.0.1",
54
"type": "module",
5+
"description": "Vue 3 component which support both Google reCAPTCHA v2 and v3",
6+
"main": "google-recaptcha-vue3.umd.js",
7+
"module": "google-recaptcha-vue3.es.js",
8+
"files": [
9+
"dist"
10+
],
11+
"exports": {
12+
".": {
13+
"import": "./google-recaptcha-vue3.es.js",
14+
"require": "./google-recaptcha-vue3.umd.js"
15+
}
16+
},
617
"scripts": {
718
"dev": "vite",
8-
"build": "vue-tsc -b && vite build",
9-
"preview": "vite preview"
19+
"build": "vite build"
1020
},
11-
"dependencies": {
12-
"vue": "^3.5.13"
21+
"peerDependencies": {
22+
"vue": "^3.0.0"
1323
},
1424
"devDependencies": {
15-
"@vitejs/plugin-vue": "^5.2.1",
16-
"@vue/tsconfig": "^0.7.0",
17-
"typescript": "~5.7.2",
18-
"vite": "^6.2.0",
19-
"vue-tsc": "^2.2.4"
20-
}
25+
"@vitejs/plugin-vue": "^5.0.0",
26+
"vite": "^5.0.0"
27+
},
28+
"keywords": [
29+
"vue",
30+
"recaptcha",
31+
"google",
32+
"v2",
33+
"v3",
34+
"vue3",
35+
"vite"
36+
],
37+
"author": "Shiv Baran Singh <[email protected]>",
38+
"license": "MIT",
39+
"repository": {
40+
"type": "git",
41+
"url": "git+https://github.com/spyshiv/google-recaptcha-vue3.git"
42+
},
43+
"bugs": {
44+
"url": "https://github.com/spyshiv/google-recaptcha-vue3/issues"
45+
},
46+
"homepage": "https://github.com/spyshiv/google-recaptcha-vue3#readme"
2147
}

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/App.vue

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
<script setup lang="ts">
2-
import HelloWorld from './components/HelloWorld.vue'
2+
import Recaptcha from "./components/Recaptcha.vue";
33
</script>
44

55
<template>
6-
<div>
7-
<a href="https://vite.dev" target="_blank">
8-
<img src="/vite.svg" class="logo" alt="Vite logo" />
9-
</a>
10-
<a href="https://vuejs.org/" target="_blank">
11-
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
12-
</a>
13-
</div>
14-
<HelloWorld msg="Vite + Vue" />
6+
<Recaptcha />
157
</template>
16-
17-
<style scoped>
18-
.logo {
19-
height: 6em;
20-
padding: 1.5em;
21-
will-change: filter;
22-
transition: filter 300ms;
23-
}
24-
.logo:hover {
25-
filter: drop-shadow(0 0 2em #646cffaa);
26-
}
27-
.logo.vue:hover {
28-
filter: drop-shadow(0 0 2em #42b883aa);
29-
}
30-
</style>

src/components/HelloWorld.vue

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/components/Recaptcha.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<div>This is recaptcha component</div>
3+
</template>

src/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { createApp } from "vue";
2+
import App from "./App.vue";
3+
createApp(App).mount("#app");

src/main.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/style.css

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)