added typechecking for all ts files (#6466)

Fixes: #6436 

Changes made: 

- Added typecheck step before twenty-ui build to check stories TS errors
- Added a tsconfig.dev.json to add stories and tests to typecheking when
in dev mode
- Added tsconfig.dev.json to storybook dev command of twenty-ui to
typecheck stories while developing
- Fixed twenty-ui stories that were broken

- Added a serve command to serve front build
- Fixed unit test from another PR

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Syed Md Mihan Chistie
2024-08-20 14:35:13 +05:30
committed by GitHub
parent 12a657ce29
commit be20a690b3
15 changed files with 135 additions and 66 deletions

View File

@ -13,10 +13,7 @@ const meta: Meta<typeof Banner> = {
Sync lost with mailbox hello@twenty.com. Please reconnect for updates:
</Banner>
),
argTypes: {
as: { control: false },
theme: { control: false },
},
argTypes: {},
};
export default meta;

View File

@ -25,6 +25,4 @@ const getDefaultUrl = () => {
};
export const REACT_APP_SERVER_BASE_URL =
window._env_?.REACT_APP_SERVER_BASE_URL ||
process.env.REACT_APP_SERVER_BASE_URL ||
getDefaultUrl();
window._env_?.REACT_APP_SERVER_BASE_URL || getDefaultUrl();