2022-12-01 17:58:08 +03:00
|
|
|
{
|
2023-12-10 20:10:54 +03:00
|
|
|
"name": "twenty-front",
|
2023-12-22 01:52:45 +03:00
|
|
|
"version": "0.2.2",
|
2022-12-01 17:58:08 +03:00
|
|
|
"private": true,
|
2023-12-10 18:22:43 +03:00
|
|
|
"type": "module",
|
|
|
|
"scripts": {
|
2024-01-04 18:39:57 +03:00
|
|
|
"nx": "NX_DEFAULT_PROJECT=twenty-front node ../../node_modules/nx/bin/nx.js",
|
2023-12-11 12:54:57 +03:00
|
|
|
"start": "vite --host",
|
|
|
|
"start:clean": "yarn start --force",
|
2023-12-10 18:22:43 +03:00
|
|
|
"build": "tsc && vite build && yarn build:inject-runtime-env",
|
2023-12-13 00:38:40 +03:00
|
|
|
"build:inject-runtime-env": "sh ./scripts/inject-runtime-env.sh",
|
2024-01-11 22:27:59 +03:00
|
|
|
"tsc:spec": "tsc --project tsconfig.spec.json --noEmit",
|
2024-01-05 21:18:22 +03:00
|
|
|
"tsc": "tsc --project tsconfig.app.json --watch",
|
2024-01-11 22:27:59 +03:00
|
|
|
"tsc:ci": "tsc --project tsconfig.app.json --noEmit && tsc --project tsconfig.spec.json --noEmit && tsc --project tsconfig.node.json --noEmit",
|
2023-12-10 18:22:43 +03:00
|
|
|
"preview": "vite preview",
|
2024-01-04 01:07:25 +03:00
|
|
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs",
|
|
|
|
"lint:ci": "yarn lint --config .eslintrc-ci.cjs",
|
2023-12-10 18:22:43 +03:00
|
|
|
"fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
|
|
"fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
|
|
"test": "jest",
|
2024-01-11 22:27:59 +03:00
|
|
|
"test-watch": "jest --coverage=false --watch",
|
2023-12-13 18:40:31 +03:00
|
|
|
"tsup": "tsup",
|
2023-12-10 18:22:43 +03:00
|
|
|
"coverage": "jest --coverage",
|
|
|
|
"storybook:modules:dev": "STORYBOOK_SCOPE=modules yarn storybook:dev",
|
|
|
|
"storybook:dev": "storybook dev -p 6006 --no-open",
|
|
|
|
"storybook:pages:dev": "STORYBOOK_SCOPE=pages yarn storybook:dev",
|
|
|
|
"storybook:docs:dev": "STORYBOOK_SCOPE=ui-docs yarn storybook:dev",
|
|
|
|
"storybook:build": "storybook build",
|
|
|
|
"storybook:modules:build": "STORYBOOK_SCOPE=modules yarn storybook:build",
|
|
|
|
"storybook:pages:build": "STORYBOOK_SCOPE=pages yarn storybook:build",
|
|
|
|
"storybook:docs:build": "STORYBOOK_SCOPE=ui-docs yarn storybook:build",
|
|
|
|
"storybook:test": "test-storybook",
|
|
|
|
"storybook:test-slow": "test-storybook --maxWorkers=3",
|
2024-01-11 22:27:59 +03:00
|
|
|
"storybook:test-single-worker": "test-storybook --maxWorkers=1",
|
2023-12-10 18:22:43 +03:00
|
|
|
"storybook:coverage": "yarn storybook:test-slow --coverage && npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook --check-coverage",
|
|
|
|
"storybook:modules:coverage": "STORYBOOK_SCOPE=modules yarn storybook:coverage",
|
|
|
|
"storybook:pages:coverage": "STORYBOOK_SCOPE=pages yarn storybook:coverage",
|
|
|
|
"graphql:data:generate": "dotenv cross-var graphql-codegen -- --config codegen.cjs",
|
|
|
|
"graphql:metadata:generate": "dotenv cross-var graphql-codegen -- --config codegen-metadata.cjs",
|
2024-01-12 20:32:00 +03:00
|
|
|
"chromatic": "cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name=storybook:build",
|
|
|
|
"chromatic:ci": "cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name=storybook:build --exit-zero-on-changes"
|
2023-12-10 18:22:43 +03:00
|
|
|
},
|
|
|
|
"engines": {
|
2024-01-05 16:59:58 +03:00
|
|
|
"node": "^18.17.1",
|
2023-12-11 12:54:57 +03:00
|
|
|
"npm": "please-use-yarn",
|
|
|
|
"yarn": "^4.0.2"
|
2023-12-10 18:22:43 +03:00
|
|
|
},
|
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
|
|
|
]
|
2023-05-29 12:02:38 +03:00
|
|
|
},
|
|
|
|
"msw": {
|
|
|
|
"workerDirectory": "public"
|
2023-12-10 20:10:54 +03:00
|
|
|
}
|
2023-12-23 12:08:55 +03:00
|
|
|
}
|