Skip to content

Commit

Permalink
Fixed Storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
trevoreyre committed Jan 8, 2024
1 parent 2e99457 commit f3602a9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import { defineCustomElements } from '../loader'
import '../dist/components/slate-app-bar'
import '../dist/components/slate-app-nav'
import '../dist/components/slate-app-nav-content'
import '../dist/components/slate-app-nav-menu-button'
import '../dist/components/slate-container'
import '../dist/components/slate-heading'
import '../dist/components/slate-link'
import '../dist/components/slate-stack'
import '../dist/components/slate-tag'
import '../dist/components/slate-text'
import { html } from '../src/utils/html'
import '../src/theme.css'
import '../src/theme-typography.css'
import '../src/styles.css'
import './preview.css'

defineCustomElements()
// defineCustomElements()

const defaultStyles = {
padding: 'var(--spacing-xl)',
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v2.0.1 (January 8, 2024)

- Fixed Storybook build

## v2.0.0 (January 7, 2024)

- BREAKING: Switched from Lit to Stencil
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slate-ui/core",
"version": "2.0.0",
"version": "2.0.1",
"description": "Web component library",
"private": false,
"keywords": [
Expand Down Expand Up @@ -35,6 +35,7 @@
"start:stencil": "stencil build --watch",
"test": "stencil test --spec --e2e",
"test:watch": "stencil test --spec --e2e --watchAll",
"prebuild": "rimraf dist loader storybook-static",
"build": "npm run build:stencil && npm run build:storybook",
"build:stencil": "stencil build --docs",
"build:storybook": "storybook build",
Expand Down Expand Up @@ -63,6 +64,7 @@
"puppeteer": "21.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"storybook": "^7.6.7"
}
}

0 comments on commit f3602a9

Please sign in to comment.