Skip to content

Commit

Permalink
feat: support nuxt as a nuxt module vue-view-transitions/nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarkkkk committed Oct 11, 2023
1 parent 5fd98da commit f298e0e
Show file tree
Hide file tree
Showing 7 changed files with 4,127 additions and 415 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dist-ssr
*.local
coverage
.eslintcache
.nuxt

# Editor directories and files
.history/*
Expand Down
30 changes: 21 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"license": "MIT",
"author": "Aaron Zhou",
"packageManager": "[email protected]",
"main": "./dist/vue-view-transitions.cjs",
"module": "./dist/vue-view-transitions.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/src/index.d.ts",
"type": "module",
"files": [
"dist"
Expand All @@ -32,9 +32,14 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/vue-view-transitions.cjs",
"import": "./dist/vue-view-transitions.js"
"types": "./dist/src/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./nuxt": {
"types": "./dist/nuxt/index.d.ts",
"require": "./dist/nuxt.cjs",
"import": "./dist/nuxt.js"
}
},
"scripts": {
Expand All @@ -45,14 +50,20 @@
"typecheck": "tsc --noEmit --watch --preserveWatchOutput",
"format": "eslint --fix --cache src/**/*.{vue,ts}",
"prepare": "husky install",
"postinstall": "nuxt prepare",
"uninstall-husky": "npm uninstall husky --no-save && git config --unset core.hooksPath && npx rimraf .husky",
"changelog": "conventional-changelog -o CHANGELOG.md -p aaron-preset -r 0",
"release": "commit-and-tag-version"
},
"peerDependencies": {
"vue": "^2.6 || ^3.0.0"
"vue": "^2.6 || ^3.0.0",
"nuxt": "^3.0.0"
},
"dependencies": {
"@nuxt/kit": "^3.7.4"
},
"devDependencies": {
"@nuxt/schema": "^3.7.4",
"@types/jsdom": "^21.1.1",
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^5.59.11",
Expand All @@ -77,10 +88,11 @@
"lint-staged": "^13.2.2",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"rollup-plugin-node-externals": "^6.1.2",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"typescript": "^5.2.2",
"vite": "^4.3.9",
"vite-plugin-dts": "^2.3.0",
"vite-plugin-dts": "^3.6.0",
"vitest": "^0.32.2",
"vue": "^3.3.4",
"vue2": "npm:[email protected]"
Expand Down
Loading

0 comments on commit f298e0e

Please sign in to comment.