Skip to content

Commit

Permalink
feat: pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskang committed Sep 21, 2023
1 parent 3b37a9a commit ca49950
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 45 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "pnpm --filter docs dev",
"docs:build": "pnpm --filter docs build",
"docs:preview": "pnpm --filter docs preview",
"build": "pnpm --filter docs preview"
"build": "pnpm --filter @zonda/vue build"
},
"dependencies": {
"@floating-ui/vue": "^1.0.2",
Expand Down Expand Up @@ -37,6 +37,7 @@
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.4",
"rimraf": "^5.0.1",
"sass": "^1.68.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"vite": "^4.4.9",
Expand Down
1 change: 1 addition & 0 deletions packages/vue/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
'postcss-nested': {},
autoprefixer: {},
}
2 changes: 0 additions & 2 deletions packages/vue/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './button.css'

import {
type ComponentObjectPropsOptions,
computed,
Expand Down
2 changes: 0 additions & 2 deletions packages/vue/src/components/Switch/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './switch.css'

import {
defineComponent,
type ExtractPropTypes,
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './styles/base.css'
import './styles/_index.scss'

import type { Plugin } from 'vue'

Expand Down
4 changes: 4 additions & 0 deletions packages/vue/src/styles/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import './var.scss';
@import './button.scss';
@import './switch.scss';
@import './breadcrumb.scss';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@layer reset, base, tokens, recipes, utilities;

:root {
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"extends": "@jaskang/config/tsconfig.vue.json",
"compilerOptions": {
"paths": {
"@": ["./src"]
}
},
"include": ["src"]
}
3 changes: 3 additions & 0 deletions packages/vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx()],
css: {
transformer: 'postcss',
},
build: {
lib: {
entry: 'src/index.ts',
Expand Down
69 changes: 32 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca49950

Please sign in to comment.