Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/chromatic.yml

# Workflow name
name: 'Chromatic'

# Event for the workflow
on: push

# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*.local
dist
dist-ssr
node_modules
node_modules
build-storybook.log
12 changes: 12 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)",
"../src/*.css"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-postcss"
]
}
10 changes: 10 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
27 changes: 1 addition & 26 deletions demo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,14 @@
Component library
</h1>

<div class="px-4">
<lc-button-demo />
<lc-checkbox-demo />
<lc-icon-demo />
<lc-input-demo />
<lc-form-demo />
<lc-modal-demo />
<lc-table-demo />
</div>
<div class="px-4" />
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import LcButtonDemo from './components/LcButtonDemo.vue'
import LcCheckboxDemo from './components/LcCheckboxDemo.vue'
import LcFormDemo from './components/LcFormDemo.vue'
import LcIconDemo from './components/LcIconDemo.vue'
import LcInputDemo from './components/LcInputDemo.vue'
import LcModalDemo from './components/LcModalDemo.vue'
import LcTableDemo from './components/LcTableDemo.vue'

export default defineComponent({
name: 'App',
components: {
LcButtonDemo,
LcCheckboxDemo,
LcFormDemo,
LcIconDemo,
LcInputDemo,
LcModalDemo,
LcTableDemo,
},
})
</script>
137 changes: 0 additions & 137 deletions demo/components/LcButtonDemo.vue

This file was deleted.

69 changes: 0 additions & 69 deletions demo/components/LcCheckboxDemo.vue

This file was deleted.

Loading