Auto Commit
Showing
.editorconfig
0 → 100644
.eslintignore
0 → 100644
.eslintrc
0 → 100644
.github/FUNDING.yml
0 → 100644
.github/workflows/release.yml
0 → 100644
.npmrc
0 → 100644
.nuxtrc
0 → 100644
CONTRIBUTING.md
0 → 100644
LICENSE
0 → 100644
README.md
0 → 100644
client-test/sw.spec.ts
0 → 100644
configuration.d.ts
0 → 100644
hero.png
0 → 100644
3.6 KB
package.json
0 → 100644
| { | ||
| "name": "@vite-pwa/nuxt", | ||
| "type": "module", | ||
| "version": "0.7.0", | ||
| "packageManager": "pnpm@9.0.6", | ||
| "description": "Zero-config PWA for Nuxt 3", | ||
| "author": "antfu <anthonyfu117@hotmail.com>", | ||
| "license": "MIT", | ||
| "funding": "https://github.com/sponsors/antfu", | ||
| "homepage": "https://github.com/vite-pwa/nuxt#readme", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/vite-pwa/nuxt.git" | ||
| }, | ||
| "bugs": "https://github.com/vite-pwa/nuxt/issues", | ||
| "keywords": [ | ||
| "nuxt", | ||
| "pwa", | ||
| "workbox", | ||
| "vite-plugin-pwa", | ||
| "nuxt-module" | ||
| ], | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/types.d.mts", | ||
| "default": "./dist/module.mjs" | ||
| }, | ||
| "./configuration": { | ||
| "types": "./configuration.d.ts" | ||
| }, | ||
| "./*": "./*" | ||
| }, | ||
| "main": "./dist/module.mjs", | ||
| "types": "./dist/types.d.ts", | ||
| "files": [ | ||
| "dist", | ||
| "*.d.ts" | ||
| ], | ||
| "scripts": { | ||
| "prepack": "nuxt-module-build prepare && nuxt-module-build build", | ||
| "dev": "nuxi dev playground", | ||
| "dev:generate": "nuxi generate playground", | ||
| "dev:generate:netlify": "NITRO_PRESET=netlify nuxi generate playground", | ||
| "dev:generate:vercel": "NITRO_PRESET=vercel nuxi generate playground", | ||
| "dev:build": "nuxi build playground", | ||
| "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", | ||
| "dev:preview:build": "nr dev:build && node playground/.output/server/index.mjs", | ||
| "dev:preview:generate": "nr dev:generate && serve playground/dist", | ||
| "release": "bumpp && npm publish", | ||
| "lint": "eslint .", | ||
| "lint-fix": "nr lint --fix", | ||
| "test:build:serve": "PORT=4173 node playground/.output/server/index.mjs", | ||
| "test:generate:serve": "PORT=4173 serve playground/dist", | ||
| "test:build": "nr dev:build && TEST_BUILD=true vitest run && TEST_BUILD=true playwright test", | ||
| "test:generate": "nr dev:generate && vitest run && playwright test", | ||
| "test": "nr test:build && nr test:generate", | ||
| "test:with-build": "nr dev:prepare && nr prepack && nr test" | ||
| }, | ||
| "dependencies": { | ||
| "@nuxt/kit": "^3.9.0", | ||
| "pathe": "^1.1.1", | ||
| "ufo": "^1.3.2", | ||
| "vite-plugin-pwa": ">=0.20.0 <1" | ||
| }, | ||
| "devDependencies": { | ||
| "@antfu/eslint-config": "^0.43.1", | ||
| "@antfu/ni": "^0.21.10", | ||
| "@nuxt/module-builder": "^0.5.5", | ||
| "@nuxt/schema": "^3.10.1", | ||
| "@nuxt/test-utils": "^3.11.0", | ||
| "@playwright/test": "^1.40.1", | ||
| "@types/node": "^18", | ||
| "bumpp": "^9.2.0", | ||
| "eslint": "^8.54.0", | ||
| "node-fetch-native": "^1.4.1", | ||
| "nuxt": "^3.10.1", | ||
| "publint": "^0.2.5", | ||
| "rimraf": "^5.0.5", | ||
| "serve": "^14.2.1", | ||
| "typescript": "^5.4.5", | ||
| "vitest": "^1.1.0", | ||
| "vue-tsc": "^1.8.27" | ||
| }, | ||
| "resolutions": { | ||
| "@nuxt/kit": "^3.10.1" | ||
| }, | ||
| "peerDependencies": { | ||
| "@vite-pwa/assets-generator": "^0.2.4" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "@vite-pwa/assets-generator": { | ||
| "optional": true | ||
| } | ||
| }, | ||
| "build": { | ||
| "externals": [ | ||
| "node:child_process", | ||
| "node:fs", | ||
| "consola", | ||
| "esbuild", | ||
| "pathe", | ||
| "rollup", | ||
| "ufo", | ||
| "vite", | ||
| "vite-plugin-pwa" | ||
| ] | ||
| }, | ||
| "stackblitz": { | ||
| "startCommand": "nr prepack && nr dev:prepare && nr dev" | ||
| } | ||
| } |
playground-assets/app.vue
0 → 100644
playground-assets/nuxt.config.ts
0 → 100644
playground-assets/package.json
0 → 100644
playground-assets/pages/about.vue
0 → 100644
playground-assets/pages/index.vue
0 → 100644
playground-assets/tsconfig.json
0 → 100644
playground/.nuxtrc
0 → 100644
playground/app.vue
0 → 100644
playground/layouts/default.vue
0 → 100644
playground/nuxt.config.ts
0 → 100644
playground/package.json
0 → 100644
playground/pages/about.vue
0 → 100644
playground/pages/index.vue
0 → 100644
playground/public/favicon.ico
0 → 100644
14.7 KB
playground/public/favicon.svg
0 → 100644
playground/public/pwa-192x192.png
0 → 100644
14.0 KB
playground/public/pwa-512x512.png
0 → 100644
50.1 KB
playground/public/robots.txt
0 → 100644
playground/service-worker/sw.ts
0 → 100644
playground/tsconfig.json
0 → 100644
playwright.config.ts
0 → 100644
pnpm-lock.yaml
0 → 100644
此差异已折叠。
pnpm-workspace.yaml
0 → 100644
src/module.ts
0 → 100644
src/runtime/composables/index.ts
0 → 100644
src/runtime/plugins/pwa-icons.mjs
0 → 100644
src/runtime/plugins/pwa.client.ts
0 → 100644
src/runtime/plugins/types.d.ts
0 → 100644
src/types.ts
0 → 100644
src/utils/config.ts
0 → 100644
src/utils/module.ts
0 → 100644
src/utils/pwa-icons-helper.ts
0 → 100644
src/utils/pwa-icons-types.ts
0 → 100644
src/utils/pwa-icons.ts
0 → 100644
src/utils/utils.ts
0 → 100644
test/build.test.ts
0 → 100644
tsconfig.json
0 → 100644
vitest.config.mts
0 → 100644