Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Nov 17, 2023
1 parent dddefe3 commit c5fe316
Show file tree
Hide file tree
Showing 8 changed files with 3,580 additions and 7,961 deletions.
7 changes: 7 additions & 0 deletions packages/x-components/histoire.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'histoire';
import { HstVue } from '@histoire/plugin-vue2';

export default defineConfig({
plugins: [HstVue()],
setupFile: './src/histoire-setup.ts'
});
3 changes: 3 additions & 0 deletions packages/x-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
},
"scripts": {
"serve": "vite",
"story:dev": "histoire dev",
"preview": "vite build && vite preview",
"build": "ts-node --project ./build/tsconfig.json ./build/build.ts",
"build:website": "vite build",
Expand Down Expand Up @@ -95,6 +96,7 @@
"@bahmutov/cypress-esbuild-preprocessor": "~2.2.0",
"@cypress/vue2": "~2.0.1",
"@empathyco/x-tailwindcss": "^1.1.0-alpha.0",
"@histoire/plugin-vue2": "^0.17.4",
"@microsoft/api-documenter": "~7.22.0",
"@microsoft/api-extractor": "~7.35.0",
"@rollup/plugin-commonjs": "~25.0.0",
Expand All @@ -112,6 +114,7 @@
"cypress": "~13.2.0",
"esbuild": "0.17.19",
"glob": "~10.2.0",
"histoire": "^0.17.5",
"jest": "~27.5.0",
"jest-scss-transform": "~1.0.1",
"postcss": "~8.4.12",
Expand Down
10 changes: 10 additions & 0 deletions packages/x-components/src/components/auto-progress-bar.story.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Meow.story.vue -->
<script setup>
import AutoProgressBar from './auto-progress-bar.vue';
</script>

<template>
<Story>
<AutoProgressBar />
</Story>
</template>
9 changes: 9 additions & 0 deletions packages/x-components/src/components/base-currency.story.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup>
import BaseCurrency from './currency/base-currency.vue';
</script>

<template>
<Story class="x-text-accent-25">
<BaseCurrency :value="150" />
</Story>
</template>
1 change: 1 addition & 0 deletions packages/x-components/src/histoire-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './tailwind/index.css';
1 change: 1 addition & 0 deletions packages/x-components/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
content: [
'./public/index.html',
'./src/**/*.vue',
'./src/**/*.story.vue',
'./node_modules/@empathyco/x-tailwindcss/showcase/**/*.js'
],
prefix: 'x-',
Expand Down
3 changes: 2 additions & 1 deletion packages/x-components/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"src/**/*.tsx",
"src/**/*.vue",
"tailwind.config.ts",
"vite.config.ts"
"vite.config.ts",
"histoire.config.ts"
],
"exclude": ["node_modules"]
}
Loading

0 comments on commit c5fe316

Please sign in to comment.