-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathproject.json
100 lines (100 loc) · 3.08 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
98
99
100
{
"name": "web-component",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/web-component/src",
"projectType": "library",
"generators": {
"@nxext/stencil:component": {
"style": "css"
}
},
"tags": [],
"targets": {
"test": {
"executor": "@nxext/stencil:test",
"outputs": ["{options.outputPath}"],
"options": {
"projectType": "library",
"tsConfig": "packages/web-component/tsconfig.lib.json",
"configPath": "packages/web-component/stencil.config.ts",
"outputPath": "dist/packages/web-component"
}
},
"build": {
"executor": "@nxext/stencil:build",
"outputs": ["{options.outputPath}"],
"dependsOn": ["update-version-file"],
"options": {
"projectType": "library",
"tsConfig": "packages/web-component/tsconfig.lib.json",
"configPath": "packages/web-component/stencil.config.ts",
"outputPath": "dist/packages/web-component"
},
"configurations": {
"production": {
"dev": false,
"prod": true
}
}
},
"serve": {
"executor": "@nxext/stencil:serve",
"outputs": ["{options.outputPath}"],
"dependsOn": ["update-version-file"],
"options": {
"projectType": "library",
"tsConfig": "packages/web-component/tsconfig.lib.json",
"configPath": "packages/web-component/stencil.config.ts",
"outputPath": "dist/packages/web-component"
}
},
"e2e": {
"executor": "@nxext/cypress:cypress",
"outputs": ["{options.outputPath}"],
"dependsOn": ["build"],
"options": {
"projectType": "library",
"tsConfig": "packages/web-component/tsconfig.lib.json",
"configPath": "packages/web-component/stencil.config.ts",
"outputPath": "dist/packages/web-component"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": "packages/web-component/**/*.{ts,tsx}"
}
},
"update-version-file": {
"command": "node -p \"'export const PACKAGE_VERSION = ' + JSON.stringify(require('./packages/web-component/package.json').version) + ';'\"> packages/web-component/src/version.ts"
},
"serve-test-data": {
"command": "sirv --dev --cors --port 8941 ./packages/web-component/test-data/"
},
"dev-build": {
"executor": "@nxext/stencil:build",
"outputs": ["{options.outputPath}"],
"dependsOn": ["update-version-file"],
"options": {
"projectType": "library",
"tsConfig": "packages/web-component/tsconfig.lib.json",
"configPath": "packages/web-component/stencil.config.ts",
"outputPath": "dist/packages/web-component",
"dev": true,
"watch": true,
"serve": true
}
},
"dev": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx nx serve-test-data web-component",
"npx nx dev-build web-component"
],
"parallel": true
}
}
}
}