Skip to content

Commit

Permalink
feat(wip): wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 28, 2023
1 parent 4701cc1 commit c6bde1a
Show file tree
Hide file tree
Showing 211 changed files with 13,535 additions and 8,109 deletions.
44 changes: 42 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,52 @@
{
"extends": "@antfu",
"extends": ["@antfu"],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": ["unocss"]
}
],
"yml/no-empty-document": "off",
"react/no-unknown-property": "off",
"curly": ["error", "multi-line", "consistent"],
"quotes": ["error", "single"],
"@typescript-eslint/ban-ts-comment": "off",
"antfu/generic-spacing": "off",
"max-statements-per-line": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"no-console":"off"
}
},
"overrides": [
{
"files": [
"playground/**/*.*",
"examples/**/*.*",
"test/fixtures/**/*.*"
],
"rules": {
"no-restricted-imports": "off"
}
},
{
"files": [
"packages/vscode/**/*.*"
],
"rules": {
"unicorn/prefer-node-protocol": "off"
}
},
{
"files": [
"**/*.md/*.*"
],
"rules": {
"no-restricted-imports": "off",
"no-restricted-syntax": "off",
"no-labels": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ typings/

# Nuxt generate
dist
packages/*/dist

# vuepress build output
.vuepress/dist
Expand Down
2 changes: 1 addition & 1 deletion build/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineBuildConfig({
},
},
failOnWarn: false,
clean: false,
clean: true,
declaration: true,
rollup: {
emitCJS: true,
Expand Down
1 change: 0 additions & 1 deletion docs/.studio/tokens.config.json

This file was deleted.

7 changes: 4 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"scripts": {
"dev": "nuxi dev",
"build": "nuxi generate",
"prepare": "nuxi prepare"
"_prepare": "nuxi prepare"
},
"devDependencies": {
"@nuxt-themes/docus": "^1.10.1",
"@vueuse/motion": "^2.0.0-beta.27"
"@nuxt-themes/docus": "^1.12.3",
"@types/node": "^20.3.1",
"@vueuse/motion": "^2.0.0"
},
"resolutions": {
"pinceau": "workspace:*"
Expand Down
1 change: 1 addition & 0 deletions examples/nuxt3/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
14 changes: 14 additions & 0 deletions examples/nuxt3/.stackblitz.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import fs from 'node:fs'

updateDependencyLinksToLatest('./package.json')

function updateDependencyLinksToLatest(filename) {
try {
const contents = fs.readFileSync(filename, 'utf-8')
const updatedContent = contents.replace(/"link:...+"/gi, '"latest"')
fs.writeFileSync(filename, updatedContent)
}
catch (err) {
console.error(err)
}
}
15 changes: 15 additions & 0 deletions examples/nuxt3/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<main class="py-20 px-12 text-center">
<span text="blue 5xl hover:red" cursor="default">Hello Nuxt 3</span>
<br>
<div i-carbon-car text-4xl inline-block />
<br>
<button btn>
Button
</button>
</main>
</template>

<style>
@import '@unocss/reset/tailwind.css';
</style>
5 changes: 5 additions & 0 deletions examples/nuxt3/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default defineNuxtConfig({
modules: [
'@pinceau/nuxt',
],
})
17 changes: 17 additions & 0 deletions examples/nuxt3/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"private": true,
"scripts": {
"_prepare": "nuxi prepare",
"build": "nuxi build",
"dev": "nuxi dev",
"preview": "nuxi preview"
},
"devDependencies": {
"@pinceau/nuxt": "workspace:*",
"nuxt": "^3.5.3"
},
"stackblitz": {
"installDependencies": false,
"startCommand": "node .stackblitz.mjs && npm install && npm run dev"
}
}
Loading

0 comments on commit c6bde1a

Please sign in to comment.