-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathproject.json
97 lines (97 loc) · 2.49 KB
/
project.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "ui",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/ui/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/ui/**/*.{ts,tsx,js,jsx}"]
}
},
"publish": {
"command": "node tools/scripts/publish.mjs ui latest",
"dependsOn": ["test", "build"]
},
"publish-beta": {
"command": "node tools/scripts/publish.mjs ui beta",
"dependsOn": ["test", "build"]
},
"build_simple": {
"command": "cd packages/ui && vite build --mode={args.mode}",
"configurations": {
"demo": {
"args": "--mode=demo"
}
}
},
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"generatePackageJson": true,
"outputPath": "dist/ui"
},
"configurations": {
"demo": {
"mode": "demo",
"base": "./",
"outputPath": "demo-dist/ui"
},
"production": {
"mode": "production"
}
}
},
"pushToGhPages": {
//tnw: waiting for https://github.com/nrwl/nx/issues/15064 to be able to work with "build:demo"
// "dependsOn": ["build:demo"],
"command": "yarn gh-pages -a -d demo-dist"
},
"start": {
"executor": "nx:run-commands",
"options": {
"commands": ["cd packages/ui && yarn vite"]
},
"configurations": {
"ci": {
"readyWhen": "ready in"
}
}
},
"launch-e2e": {
"executor": "@nx/cypress:cypress",
"options": {
"watch": true,
"headed": true,
"browser": "chrome",
"cypressConfig": "packages/ui/cypress.config.ts",
"devServerTarget": "ui:start:ci",
"testingType": "e2e"
}
},
"e2e": {
"executor": "@nx/cypress:cypress",
"options": {
"parallel": true,
"key": "1ced39be-1a3a-4fd8-b2d5-a88951d9b766",
"record": true,
"cypressConfig": "packages/ui/cypress.config.ts",
"devServerTarget": "ui:start:ci",
"testingType": "e2e"
},
"configurations": {
"dev": {
"parallel": false
}
}
},
"test": {
"command": "cd packages/ui && yarn vitest run --changed --config vite.config.ts"
}
}
}