-
Notifications
You must be signed in to change notification settings - Fork 5
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
8 changed files
with
133 additions
and
5 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
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,46 @@ | ||
# GITS Container Component | ||
|
||
> Reusable Container Component | ||
## Installation | ||
|
||
npm | ||
|
||
``` | ||
npm i @gits-id/container | ||
``` | ||
|
||
yarn | ||
|
||
``` | ||
yarn add @gits-id/container | ||
``` | ||
|
||
pnpm | ||
|
||
``` | ||
pnpm i @gits-id/container | ||
``` | ||
|
||
## Usage | ||
|
||
```vue | ||
<script setup lang="ts"> | ||
// import styles | ||
import '@gits-id/container/dist/style.css'; | ||
// import component | ||
import VContainer from '@gits-id/container'; | ||
</script> | ||
<template> | ||
<VContainer>Text</VContainer> | ||
</template> | ||
``` | ||
|
||
## Documentation | ||
|
||
View `VContainer` documentation [here](https://gits-ui.web.app/?path=/story/components-container--default). | ||
|
||
## Licence | ||
|
||
ISC |
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,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,5 @@ | ||
declare module '*.vue' { | ||
import type {DefineComponent} from 'vue'; | ||
const component: DefineComponent<{}, {}, any>; | ||
export default component; | ||
} |
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,6 @@ | ||
module.exports = { | ||
content: [ | ||
'./src/**/*.{vue,js,ts,jsx,tsx}', | ||
], | ||
presets: [require('@gits-id/tailwind-config/preset')], | ||
}; |
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 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"declaration": true, | ||
"sourceMap": false, | ||
"target": "esnext", | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"allowJs": true, | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"rootDir": ".", | ||
"skipLibCheck": true, | ||
"types": ["vite/client"], | ||
"emitDeclarationOnly": true, | ||
"allowSyntheticDefaultImports": true | ||
}, | ||
"include": ["vue.d.ts", "*.vue", "src"], | ||
"exclude": ["**/*.stories.ts", "**/*.spec.ts", "**/*.test.ts"] | ||
} |
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,36 @@ | ||
import {defineConfig} from 'vite'; | ||
import vue from '@vitejs/plugin-vue'; | ||
import {resolve} from 'path'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
vue(), | ||
], | ||
esbuild: { | ||
exclude: ['./src/**/**.stories.ts'], | ||
}, | ||
build: { | ||
target: 'esnext', | ||
lib: { | ||
entry: resolve(__dirname, 'src/index.ts'), | ||
name: 'Container', | ||
formats: ['es', 'cjs', 'iife', 'umd'], | ||
}, | ||
rollupOptions: { | ||
// make sure to externalize deps that shouldn't be bundled | ||
// into your library | ||
external: ['vue', '@heroicons/vue/outline'], | ||
output: { | ||
// Provide global variables to use in the UMD build | ||
// for externalized deps | ||
globals: { | ||
vue: 'Vue' | ||
} | ||
}, | ||
resolve: { | ||
dedupe: "vue" | ||
}, | ||
}, | ||
}, | ||
}); |