-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manager-react-components): build manager react components lib
ref: MANAGER-14822: Signed-off-by: Alex Boungnaseng <[email protected]>
- Loading branch information
1 parent
f68007f
commit 5e707e9
Showing
22 changed files
with
150 additions
and
126 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './hooks'; | ||
export * from './hooks/feature-availability/useFeatureAvailability'; | ||
export * from './components'; | ||
export * from './enumTypes'; | ||
export * from './utils/click-utils'; |
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,65 @@ | ||
import react from '@vitejs/plugin-react'; | ||
import { defineConfig } from 'vitest/config'; | ||
import dts from 'vite-plugin-dts'; | ||
import path from 'path'; | ||
import tailwindcss from 'tailwindcss'; | ||
import { getBaseConfig } from '@ovh-ux/manager-vite-config'; | ||
|
||
const baseConfig = getBaseConfig({}); | ||
|
||
export default defineConfig({ | ||
...baseConfig, | ||
plugins: [ | ||
react(), | ||
dts({ | ||
outDir: '../dist/types', | ||
insertTypesEntry: true, | ||
}), | ||
], | ||
css: { | ||
postcss: { | ||
plugins: [tailwindcss], | ||
}, | ||
}, | ||
test: { | ||
globals: true, | ||
environment: 'jsdom', | ||
}, | ||
build: { | ||
outDir: '../dist', | ||
lib: { | ||
entry: path.resolve(__dirname, 'src/lib.ts'), | ||
name: 'ManagerReactComponentsLib', | ||
fileName: (format) => `manager-react-components-lib.${format}.ts`, | ||
}, | ||
rollupOptions: { | ||
external: [ | ||
'@ovh-ux/request-tagger', | ||
'@ovh-ux/manager-core-api', | ||
'@ovh-ux/manager-react-shell-client', | ||
'@tanstack/react-query', | ||
'i18next', | ||
'i18next-http-backend', | ||
'react', | ||
'react-dom', | ||
'react-router-dom', | ||
'react-i18next', | ||
'zustand', | ||
], | ||
output: { | ||
globals: { | ||
'@ovh-ux/manager-core-api': 'ManagerCoreApi', | ||
'@ovh-ux/manager-react-shell-client': 'ManagerReactShellClient', | ||
'@tanstack/react-query': 'ReactQuery', | ||
i18next: 'i18next', | ||
'i18next-http-backend': 'i18nextHttpBackend', | ||
react: 'React', | ||
'react-i18next': 'ReactI18next', | ||
'react-dom': 'ReactDOM', | ||
'react-router-dom': 'ReactRouterDOM', | ||
zustand: 'Zustand', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.