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

@ -8,6 +8,7 @@ describe('getDisplayNameFromParticipant', () => {
handle: '',
role: 'from',
person: {
__typename: 'Person',
id: '1',
createdAt: '',
updatedAt: '',
@ -32,6 +33,7 @@ describe('getDisplayNameFromParticipant', () => {
companyId: '',
},
workspaceMember: {
__typename: 'WorkspaceMember',
id: '1',
name: {
firstName: 'Jane',

View File

@ -4,7 +4,7 @@ import { groupEventsByMonth } from '../groupEventsByMonth';
describe('groupEventsByMonth', () => {
it('should group activities by month', () => {
const grouped = groupEventsByMonth(mockedEvents as unknown as Event[]);
const grouped = groupEventsByMonth(mockedEvents);
expect(grouped).toHaveLength(2);
expect(grouped[0].items).toHaveLength(1);

View File

@ -83,12 +83,10 @@ describe('useCreateActivityInCache', () => {
act(() => {
const res = result.current.createActivityInCache({
type: 'Note',
targetableObjects: [
{
targetObjectNameSingular: 'person',
id: '1234',
},
],
targetObject: {
targetObjectNameSingular: 'person',
id: '1234',
},
});
expect(res.createdActivityInCache).toHaveProperty('id');