Skip to content

Commit

Permalink
feat: add Nuxt playground (#14)
Browse files Browse the repository at this point in the history
* chore: update

* chore: catalog

* chore: update

* chore: update
  • Loading branch information
zyyv authored Sep 3, 2024
1 parent cdde6d4 commit ce08849
Show file tree
Hide file tree
Showing 40 changed files with 7,723 additions and 826 deletions.
29 changes: 25 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
node_modules
.eslintcache
data

# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log
.vscode
data
.eslintcache

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.5.1",
"private": true,
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.9.0",
"scripts": {
"build": "pnpm -r -F=./packages/* run build",
"stub": "pnpm -r -F=./packages/* --parallel run stub",
Expand All @@ -19,25 +19,25 @@
"magicAnimate": "esno scripts/magicAnimate.ts"
},
"devDependencies": {
"@antfu/eslint-config": "^2.26.1",
"@babel/types": "^7.25.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.4.2",
"@types/postcss-js": "^4.0.4",
"@unocss/eslint-plugin": "^0.62.2",
"bumpp": "^9.5.1",
"eslint": "^9.9.0",
"esno": "^4.7.0",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.9",
"magic.css": "^1.4.8",
"simple-git-hooks": "^2.11.1",
"typescript": "5.5.4",
"unbuild": "^2.0.0",
"unocss": "^0.62.2",
"@antfu/eslint-config": "catalog:",
"@babel/types": "catalog:",
"@types/fs-extra": "catalog:",
"@types/node": "catalog:",
"@types/postcss-js": "catalog:",
"@unocss/eslint-plugin": "catalog:",
"bumpp": "catalog:",
"eslint": "catalog:",
"esno": "catalog:",
"fs-extra": "catalog:",
"lint-staged": "catalog:",
"magic.css": "catalog:",
"simple-git-hooks": "catalog:",
"typescript": "catalog:",
"unbuild": "catalog:",
"unocss": "catalog:",
"unocss-preset-useful": "workspace:*",
"vite": "^5.4.2",
"vitest": "^2.0.5"
"vite": "catalog:",
"vitest": "catalog:"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand Down
30 changes: 15 additions & 15 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
"unocss": "^0.62.2"
},
"dependencies": {
"@unocss/core": "^0.62.2",
"@unocss/preset-attributify": "^0.62.2",
"@unocss/preset-icons": "^0.62.2",
"@unocss/preset-mini": "^0.62.2",
"@unocss/preset-rem-to-px": "^0.62.2",
"@unocss/preset-tagify": "^0.62.2",
"@unocss/preset-typography": "^0.62.2",
"@unocss/preset-uno": "^0.62.2",
"@unocss/preset-web-fonts": "^0.62.2",
"@unocss/transformer-compile-class": "^0.62.2",
"@unocss/transformer-directives": "^0.62.2",
"@unocss/transformer-variant-group": "^0.62.2",
"postcss": "^8.4.41",
"postcss-js": "^4.0.1",
"unocss-preset-scrollbar": "^0.3.1"
"@unocss/core": "catalog:",
"@unocss/preset-attributify": "catalog:",
"@unocss/preset-icons": "catalog:",
"@unocss/preset-mini": "catalog:",
"@unocss/preset-rem-to-px": "catalog:",
"@unocss/preset-tagify": "catalog:",
"@unocss/preset-typography": "catalog:",
"@unocss/preset-uno": "catalog:",
"@unocss/preset-web-fonts": "catalog:",
"@unocss/transformer-compile-class": "catalog:",
"@unocss/transformer-directives": "catalog:",
"@unocss/transformer-variant-group": "catalog:",
"postcss": "catalog:",
"postcss-js": "catalog:",
"unocss-preset-scrollbar": "catalog:"
}
}
18 changes: 18 additions & 0 deletions playground-nuxt/.nuxt/app.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

import { updateAppConfig } from '#app/config'
import { defuFn } from 'defu'

const inlineConfig = {
"nuxt": {}
}

// Vite - webpack is handled directly in #app/config
if (import.meta.hot) {
import.meta.hot.accept((newModule) => {
updateAppConfig(newModule.default)
})
}



export default /*@__PURE__*/ defuFn(inlineConfig)
108 changes: 108 additions & 0 deletions playground-nuxt/.nuxt/components.d.ts

Large diffs are not rendered by default.

Loading

0 comments on commit ce08849

Please sign in to comment.