Skip to content

Commit

Permalink
chore(release): main (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
BayanBennett committed Apr 15, 2023
2 parents a13820a + 054fd1a commit abae934
Show file tree
Hide file tree
Showing 20 changed files with 9,182 additions and 48,478 deletions.
15 changes: 15 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript"
],
"plugins": []
}
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ on:
push:
branches:
- main
- next
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
34 changes: 22 additions & 12 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
module.exports = {
"stories": [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
const config = {
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
"@storybook/addon-interactions",
{
name: "@storybook/addon-styling",
options: {
// Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
// For more details on this addon's options.
postCss: true,
},
},
],
"framework": "@storybook/react",
"core": {
"builder": "webpack5"
}
}
framework: {
name: "@storybook/react-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
19 changes: 10 additions & 9 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { theme } from "./theme";
import { Theme } from "../libs/Theme";
import "../src/styles.css";
import { withThemeByDataAttribute } from "@storybook/addon-styling";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand All @@ -9,14 +9,15 @@ export const parameters = {
date: /Date$/,
},
},
layout: "centered",
docs: { theme },
};

export const decorators = [
(Story) => (
<Theme>
<Story />
</Theme>
),
withThemeByDataAttribute({
themes: {
light: "light",
dark: "dark",
},
defaultTheme: "light",
attributeName: "data-mode",
}),
];
Loading

0 comments on commit abae934

Please sign in to comment.