-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
130 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,95 @@ | ||
{ | ||
"type": "module", | ||
"name": "unplugin-unocss-config", | ||
"version": "0.1.0", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"description": "Use uno config in run-time", | ||
"license": "MIT", | ||
"homepage": "https://github.com/unpreset/unplugin-unocss-config#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/unpreset/unplugin-unocss-config.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/unpreset/unplugin-unocss-config/issues" | ||
}, | ||
"keywords": [ | ||
"unpreset", | ||
"unocss", | ||
"unocss-config", | ||
"unplugin", | ||
"vite", | ||
"nuxt-module" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"./client": { | ||
"types": "./client.d.ts" | ||
}, | ||
"./vite": { | ||
"types": "./dist/vite.d.ts", | ||
"import": "./dist/vite.mjs", | ||
"require": "./dist/vite.js" | ||
}, | ||
"./nuxt": { | ||
"types": "./dist/nuxt.d.ts", | ||
"import": "./dist/nuxt.mjs", | ||
"require": "./dist/nuxt.js" | ||
}, | ||
"./types": { | ||
"types": "./dist/types.d.ts", | ||
"import": "./dist/types.mjs", | ||
"require": "./dist/types.js" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/*", | ||
"./*" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"client.d.ts", | ||
"dist" | ||
], | ||
"scripts": { | ||
"dev": "pnpm -r --filter=./packages/* --parallel run dev", | ||
"build": "pnpm -r --filter=./packages/* --parallel run build", | ||
"build": "tsup", | ||
"dev": "tsup --watch src", | ||
"build:fix": "esno scripts/postbuild.ts", | ||
"lint": "eslint .", | ||
"play": "pnpm -C playground run dev", | ||
"prepublishOnly": "pnpm run build", | ||
"release": "bumpp -r && pnpm -r publish --access public --no-git-checks" | ||
"play": "npm -C playground run dev", | ||
"prepublishOnly": "npm run build", | ||
"release": "bumpp && npm publish", | ||
"start": "esno src/index.ts", | ||
"test": "vitest" | ||
}, | ||
"peerDependencies": { | ||
"@nuxt/kit": "^3", | ||
"@nuxt/schema": "^3", | ||
"vite": ">=3" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@nuxt/kit": { | ||
"optional": true | ||
}, | ||
"@nuxt/schema": { | ||
"optional": true | ||
}, | ||
"vite": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"unplugin": "^1.5.1" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.6.1", | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"type": "module", | ||
"private": true, | ||
"scripts": { | ||
"dev": "cross-env DEBUG=unplugin-unocss-config vite", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { addVitePlugin, defineNuxtModule } from '@nuxt/kit' | ||
import vite from './vite' | ||
import type { Options } from './types' | ||
import '@nuxt/schema' | ||
|
||
export interface ModuleOptions extends Options { | ||
|
||
} | ||
|
||
export default defineNuxtModule<ModuleOptions>({ | ||
meta: { | ||
name: 'nuxt-unplugin-starter', | ||
configKey: 'unpluginStarter', | ||
}, | ||
defaults: { | ||
// ...default options | ||
}, | ||
setup(options, _nuxt) { | ||
addVitePlugin(() => vite(options)) | ||
}, | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { createVitePlugin } from 'unplugin' | ||
import { unpluginFactory } from '.' | ||
|
||
export default createVitePlugin(unpluginFactory) |
Oops, something went wrong.