Update twenty-front commands (#4667)

# This PR

- Moves dev and ci scripts to the `project.json` file in the
twenty-front package
- Adds a project.json file in the root of the project with the main
start command that start both twenty-server and twenty-front
applications concurrently
- Updates the script command of the root project with the start:prod
command (replacing the start command which will be used in dev with the
help of nx)
- Add a start:prod command in the twenty-front app, replacing the start
command (now used for dev purpose)

Issue ref #4645 

@charlesBochet @FelixMalfait please let me know how can I improve it

---------

Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
This commit is contained in:
Pacifique LINJANJA
2024-04-17 18:06:02 +02:00
committed by GitHub
parent 977927af04
commit 627a6bda29
40 changed files with 800 additions and 381 deletions

View File

@ -4,7 +4,10 @@ import { RecoilRoot, useSetRecoilState } from 'recoil';
import { useOnboardingStatus } from '@/auth/hooks/useOnboardingStatus';
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import {
CurrentWorkspace,
currentWorkspaceState,
} from '@/auth/states/currentWorkspaceState';
import { isVerifyPendingState } from '@/auth/states/isVerifyPendingState';
import { tokenPairState } from '@/auth/states/tokenPairState';
import { billingState } from '@/client-config/states/billingState';
@ -84,7 +87,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'incomplete',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember(currentWorkspaceMember);
});
@ -106,7 +109,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'canceled',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember({
...currentWorkspaceMember,
name: {
@ -130,7 +133,7 @@ describe('useOnboardingStatus', () => {
...currentWorkspace,
activationStatus: 'inactive',
subscriptionStatus: 'active',
});
} as CurrentWorkspace);
});
expect(result.current.onboardingStatus).toBe(
@ -153,7 +156,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'active',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember(currentWorkspaceMember);
});
@ -175,7 +178,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'active',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember({
...currentWorkspaceMember,
name: {
@ -203,7 +206,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'past_due',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember({
...currentWorkspaceMember,
name: {
@ -231,7 +234,7 @@ describe('useOnboardingStatus', () => {
setCurrentWorkspace({
...currentWorkspace,
subscriptionStatus: 'unpaid',
});
} as CurrentWorkspace);
setCurrentWorkspaceMember({
...currentWorkspaceMember,
name: {