-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28e7e4d
commit 34cc910
Showing
35 changed files
with
1,178 additions
and
1,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Format | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
- run: make format | ||
- name: Indicate formatting issues | ||
run: git diff HEAD --exit-code --color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
const { vanillaExtractPlugin } = require('@vanilla-extract/vite-plugin'); | ||
const { resolve } = require('path'); | ||
const { mergeConfig } = require('vite'); | ||
const { vanillaExtractPlugin } = require("@vanilla-extract/vite-plugin") | ||
const { resolve } = require("path") | ||
const { mergeConfig } = require("vite") | ||
|
||
module.exports = { | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions' | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
], | ||
framework: '@storybook/react', | ||
framework: "@storybook/react", | ||
core: { | ||
builder: '@storybook/builder-vite' | ||
builder: "@storybook/builder-vite", | ||
}, | ||
typescript: { | ||
reactDocgen: 'react-docgen' // 👈 react-docgen configured here. | ||
reactDocgen: "react-docgen", // 👈 react-docgen configured here. | ||
}, | ||
async viteFinal(config) { | ||
return mergeConfig(config, { | ||
build: { | ||
minify: 'esbuild', | ||
minify: "esbuild", | ||
sourcemap: true, | ||
lib: { | ||
entry: resolve(__dirname, 'src/react.ts'), | ||
name: 'ory/elements', | ||
fileName: (format) => `index.${format}.js` | ||
entry: resolve(__dirname, "src/react.ts"), | ||
name: "ory/elements", | ||
fileName: (format) => `index.${format}.js`, | ||
}, | ||
rollupOptions: { | ||
treeshake: 'recommended', | ||
external: ['react', 'react-dom', 'storybook'], | ||
treeshake: "recommended", | ||
external: ["react", "react-dom", "storybook"], | ||
output: { | ||
globals: { | ||
storybook: 'storybook', | ||
react: 'React', | ||
'react-dom': 'ReactDOM' | ||
} | ||
} | ||
} | ||
storybook: "storybook", | ||
react: "React", | ||
"react-dom": "ReactDOM", | ||
}, | ||
}, | ||
}, | ||
}, | ||
plugins: [vanillaExtractPlugin()] | ||
}); | ||
plugins: [vanillaExtractPlugin()], | ||
}) | ||
}, | ||
features: { | ||
storyStoreV7: true | ||
} | ||
}; | ||
storyStoreV7: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<script> | ||
window.global = window; | ||
</script> | ||
window.global = window | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.