Skip to content

Commit

Permalink
feat: rewrite without lit and cleanup public interface (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Nov 25, 2024
1 parent fea7bbc commit e01327f
Show file tree
Hide file tree
Showing 31 changed files with 2,982 additions and 3,927 deletions.
28 changes: 0 additions & 28 deletions .github/docs.js

This file was deleted.

5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ coverage
dist
dist-ssr
*.local

# Editor directories and files
*storybook.log
storybook-static
!.vscode/extensions.json
.idea
.DS_Store
Expand All @@ -24,6 +24,5 @@ dist-ssr
*.sln
*.sw?
*.tgz
*storybook.log

docs/**/*.md
8 changes: 6 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
import type { StorybookConfig } from "@storybook/web-components-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: ["@storybook/addon-actions", "@storybook/addon-essentials"],
stories: [
"**/*.mdx",
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: ["@storybook/addon-essentials"],
framework: {
name: "@storybook/web-components-vite",
options: {},
Expand Down
9 changes: 9 additions & 0 deletions .storybook/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Meta, Canvas, Controls, Stories } from "@storybook/blocks";

<Meta isTemplate />

<Canvas/>

<Controls/>

<Stories includePrimary={false}/>
9 changes: 3 additions & 6 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/

import type { Preview } from "@storybook/web-components";
// @ts-ignore
import DocumentationTemplate from "./DocumentationTemplate.mdx";
import Page from "./page.mdx";

const preview: Preview = {
parameters: {
Expand All @@ -27,12 +26,10 @@ const preview: Preview = {
},
},
docs: {
stories: {
inline: false,
},
page: DocumentationTemplate,
page: Page,
},
},
tags: ["autodocs"],
};

export default preview;
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@
"editor.defaultFormatter": "biomejs.biome",
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[mdx]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
210 changes: 92 additions & 118 deletions README.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"organizeImports": { "enabled": true },
"formatter": {
"indentStyle": "tab",
"indentWidth": 2,
"ignore": ["*.json"]
},
"linter": {
"enabled": true,
"rules": {
Expand Down
10 changes: 4 additions & 6 deletions src/drive-picker/drive-picker.test.ts → cem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* limitations under the License.
*/

import { expect } from "@open-wc/testing";
import "./drive-picker-element";

it("skeleton", () => {
expect(1 + 2).equal(3);
});
export default {
globs: ["src/**/*.ts"],
exclude: ["src/**/utils.ts", "src/stories/**/*"],
};
Loading

0 comments on commit e01327f

Please sign in to comment.