Skip to content

Commit

Permalink
chore(release): v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
samk-dev committed Nov 23, 2023
1 parent 92e9da2 commit 5e76c34
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## v1.0.2

[compare changes](https://github.com/samk-dev/nuxt-vcalendar/compare/v1.0.1...v1.0.2)

### 🏡 Chore

- **dev:** Deps update vcalendar - nuxt ([8d47e88](https://github.com/samk-dev/nuxt-vcalendar/commit/8d47e88))
- **dev:** Cleaup unused packages from package.json ([6f47900](https://github.com/samk-dev/nuxt-vcalendar/commit/6f47900))

### ❤️ Contributors

- Samk-dev

## v1.0.1

[compare changes](https://github.com/samk-dev/nuxt-vcalendar/compare/1.0.0...v1.0.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samk-dev/nuxt-vcalendar",
"version": "1.0.1",
"version": "1.0.2",
"description": "Integrates V Calendar in Nuxt",
"repository": "samk-dev/nuxt-vcalendar",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ const attrs = ref([
<div>
<client-only>
<h2>Calendar</h2>
<VCalendar v-model="date" />
<VCalendar v-model="date" :attributes="attrs" />

<h2>Date Picker</h2>
<VDatePicker v-model="date" :attributes="attrs" />

<pre lang="js">
{{ date }}
</pre>
Expand Down
7 changes: 4 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface ModuleOptions {
calendarOptions?: Defaults
/**
* @description auto import v-calendar components
* @default []
* @default '{ DatePicker: true, Calendar: true }'
*/
autoImports: VCalendarComponents
}
Expand Down Expand Up @@ -65,10 +65,11 @@ export default defineNuxtModule<ModuleOptions>({
nuxtOptions.runtimeConfig.public.vcalendar ||= {}
nuxtOptions.runtimeConfig.public.vcalendar = moduleOptions.calendarOptions

addPlugin(resolver.resolve('./runtime/plugin.client'))

nuxtOptions.build.transpile ||= []
nuxtOptions.build.transpile.push('vcalendar')
nuxtOptions.build.transpile.push('@popperjs/core')

addPlugin(resolver.resolve('runtime/plugin.client'))

if (moduleOptions.defaultCss) {
nuxtOptions.css ||= []
Expand Down

0 comments on commit 5e76c34

Please sign in to comment.