mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-15 05:11:31 +03:00
64 lines
2.9 KiB
JSON
64 lines
2.9 KiB
JSON
{
|
|
"name": "twenty-front",
|
|
"version": "0.2.3",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"nx": "NX_DEFAULT_PROJECT=twenty-front node ../../node_modules/nx/bin/nx.js",
|
|
"start": "vite --host",
|
|
"start:clean": "yarn start --force",
|
|
"build": "tsc && vite build && yarn build:inject-runtime-env",
|
|
"build:inject-runtime-env": "sh ./scripts/inject-runtime-env.sh",
|
|
"tsc:spec": "tsc --project tsconfig.spec.json --noEmit",
|
|
"tsc": "tsc --project tsconfig.app.json --watch",
|
|
"tsc:ci": "tsc --project tsconfig.app.json --noEmit && tsc --project tsconfig.spec.json --noEmit && tsc --project tsconfig.node.json --noEmit",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs",
|
|
"lint:ci": "yarn lint --config .eslintrc-ci.cjs",
|
|
"fmt:fix": "prettier --cache --write \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
"fmt": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
"test": "jest",
|
|
"test-watch": "jest --coverage=false --watch",
|
|
"tsup": "tsup",
|
|
"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",
|
|
"storybook:test-single-worker": "test-storybook --maxWorkers=1",
|
|
"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",
|
|
"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"
|
|
},
|
|
"engines": {
|
|
"node": "^18.17.1",
|
|
"npm": "please-use-yarn",
|
|
"yarn": "^4.0.2"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"msw": {
|
|
"workerDirectory": "public"
|
|
}
|
|
}
|