Каркас web-приложения: Vite, Tailwind, ESLint, раздача статики через Caddy, страница со статусом и версией проекта.
89 lines
2.5 KiB
JSON
89 lines
2.5 KiB
JSON
{
|
|
"name": "web",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/web/src",
|
|
"projectType": "application",
|
|
"tags": [],
|
|
"targets": {
|
|
"clean": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"rimraf apps/web/dist"
|
|
]
|
|
}
|
|
},
|
|
"build": {
|
|
"executor": "@nx/vite:build",
|
|
"options": {
|
|
"outputPath": "apps/web/dist/",
|
|
"base": "/",
|
|
"viteConfig": "apps/web/vite.config.ts"
|
|
}
|
|
},
|
|
"typecheck": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "tsc --noEmit -p tsconfig.spec.json",
|
|
"cwd": "apps/web"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"{projectRoot}/**/*.{ts,tsx}"
|
|
],
|
|
"eslintConfig": "{projectRoot}/eslint.config.mjs",
|
|
"fix": true
|
|
}
|
|
},
|
|
"lint-check": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"{projectRoot}/**/*.{ts,tsx}"
|
|
],
|
|
"eslintConfig": "{projectRoot}/eslint.config.mjs"
|
|
}
|
|
},
|
|
"format": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"parallel": false,
|
|
"commands": [
|
|
"prettier --write {projectRoot}",
|
|
"stylelint --fix \"{projectRoot}/**/*.{scss,css}\""
|
|
]
|
|
}
|
|
},
|
|
"format-check": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"parallel": false,
|
|
"commands": [
|
|
"prettier --check {projectRoot}",
|
|
"stylelint \"{projectRoot}/**/*.{scss,css}\""
|
|
]
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/vite:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "web:build",
|
|
"port": 5173
|
|
},
|
|
"configurations": {}
|
|
},
|
|
"preview": {
|
|
"executor": "@nx/vite:preview-server",
|
|
"options": {
|
|
"buildTarget": "web:build",
|
|
"port": 5173
|
|
},
|
|
"configurations": {}
|
|
}
|
|
}
|
|
}
|