-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathproject.json
168 lines (168 loc) · 5.12 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "studio-web",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "packages/studio-web/src",
"prefix": "app",
"i18n": {
"sourceLocale": "en",
"locales": {
"fr": "packages/studio-web/src/i18n/messages.fr.json",
"es": "packages/studio-web/src/i18n/messages.es.json"
}
},
"targets": {
"build": {
"executor": "@angular-builders/custom-webpack:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/studio-web",
"index": "packages/studio-web/src/index.html",
"main": "packages/studio-web/src/main.ts",
"i18nMissingTranslation": "warning",
"polyfills": ["packages/studio-web/src/polyfills.ts"],
"tsConfig": "packages/studio-web/tsconfig.app.json",
"customWebpackConfig": {
"path": "packages/studio-web/custom-webpack.config.cjs"
},
"assets": [
"packages/studio-web/src/favicon.ico",
"packages/studio-web/src/assets",
{
"glob": "**/*",
"ignore": ["fr-fr/*"],
"input": "./node_modules/soundswallower/model",
"output": "./model"
}
],
"styles": ["packages/studio-web/src/styles.sass"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "packages/studio-web/src/environments/environment.ts",
"with": "packages/studio-web/src/environments/environment.prod.ts"
}
],
"budgets": [
{
"type": "initial",
"maximumWarning": "1500kb",
"maximumError": "3mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
"en": {
"localize": ["en"]
},
"fr": {
"localize": ["fr"]
},
"es": {
"localize": ["es"]
}
},
"defaultConfiguration": "production"
},
"update-browserslist": {
"command": "npx update-browserslist-db@latest"
},
"serve": {
"executor": "@angular-builders/custom-webpack:dev-server",
"dependsOn": ["update-browserslist"],
"configurations": {
"production-en": {
"buildTarget": "studio-web:build:production,en"
},
"development-en": {
"buildTarget": "studio-web:build:development,en"
},
"production-fr": {
"buildTarget": "studio-web:build:production,fr"
},
"development-fr": {
"buildTarget": "studio-web:build:development,fr",
"port": 4203
},
"production-es": {
"buildTarget": "studio-web:build:production,es"
},
"development-es": {
"buildTarget": "studio-web:build:development,es",
"port": 4204
}
},
"defaultConfiguration": "development-en"
},
"serve-es": {
"executor": "@angular-builders/custom-webpack:dev-server",
"options": {
"buildTarget": "studio-web:build:development,es",
"port": 4204
}
},
"serve-fr": {
"executor": "@angular-builders/custom-webpack:dev-server",
"options": {
"buildTarget": "studio-web:build:development,fr",
"port": 4203
}
},
"serve-web-api": {
"command": "bash -c \"cd ../Studio/readalongs && PRODUCTION= DEVELOPMENT=1 uvicorn readalongs.web_api:web_api_app --reload\""
},
"extract-i18n": {
"executor": "@angular-builders/custom-webpack:extract-i18n",
"options": {
"format": "json",
"outputPath": "packages/studio-web/src/i18n",
"buildTarget": "studio-web:build"
}
},
"check-l10n": {
"executor": "nx:noop",
"dependsOn": ["check-fr-l10n", "check-es-l10n"]
},
"check-fr-l10n": {
"command": "bash -c \"diff -w <(cat packages/studio-web/src/i18n/messages.json | sed 's/:.*//' | sort) <(cat packages/studio-web/src/i18n/messages.fr.json | sed 's/:.*//' | sort)\""
},
"check-es-l10n": {
"command": "bash -c \"diff -w <(cat packages/studio-web/src/i18n/messages.json | sed 's/:.*//' | sort) <(cat packages/studio-web/src/i18n/messages.es.json | sed 's/:.*//' | sort)\""
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/studio-web/**/*.ts",
"packages/studio-web/**/*.html"
]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/studio-web/jest.config.ts",
"passWithNoTests": true
}
}
},
"tags": []
}