Skip to content

Commit

Permalink
fix: fix playground project import vite-plugin-version-mark
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongxuYang committed Jul 10, 2024
1 parent 2078d0c commit f796d36
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 223 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-version-mark",
"version": "0.1.0",
"version": "0.0.13",
"description": "Automatically insert the version or git_commit_sha in your Vite/Nuxt project.",
"keywords": [
"git",
Expand Down Expand Up @@ -44,14 +44,14 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@nuxt/kit": "^3.12.2",
"@nuxt/schema": "^3.12.2",
"@types/node": "^20.14.9",
"@nuxt/kit": "^3.12.3",
"@nuxt/schema": "^3.12.3",
"@types/node": "^20.14.10",
"husky": "^9.0.11",
"nuxt": "^3.5.2",
"nuxt": "^3.12.3",
"rollup": "^4.18.1",
"tsup": "^8.1.0",
"typescript": "^5.5.2",
"typescript": "^5.5.3",
"vitest": "^1.6.0"
},
"peerDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion playground/nuxt3-webapp/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// @ts-ignore
import nuxt3Module from '../../src/plugins/nuxt3'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
['vite-plugin-version-mark/nuxt', {
[nuxt3Module, {
ifGitSHA: true,
ifShortSHA: true,
ifMeta: true,
Expand Down
3 changes: 2 additions & 1 deletion playground/vite-lib/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vite'
import { vitePluginVersionMark } from 'vite-plugin-version-mark'
// @ts-ignore
import { vitePluginVersionMark } from '../../src/plugins/vite'

export default defineConfig({
build: {
Expand Down
3 changes: 2 additions & 1 deletion playground/vite-webapp/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {defineConfig} from 'vite'
import type {Plugin} from 'vite'
import vue from '@vitejs/plugin-vue'
import {vitePluginVersionMark} from 'vite-plugin-version-mark'
// @ts-ignore
import {vitePluginVersionMark} from '../../src/plugins/vite'

const testPlugin: () => Plugin = () => ({
name: 'test-plugin',
Expand Down
Loading

0 comments on commit f796d36

Please sign in to comment.