forked from mccsoft/backend-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
48 lines (48 loc) · 2.26 KB
/
package.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
{
"name": "@templateApp/build",
"version": "0.1.4",
"private": true,
"type": "module",
"dependencies": {
"change-case": "4.1.2",
"copyfiles": "2.3.0",
"cpy-cli": "4.2.0",
"cross-env": "7.0.3",
"json": "11.0.0",
"node-replace": "0.3.3",
"prettier": "2.8.7",
"renamer": "4.0.0",
"rimraf": "3.0.2",
"semver": "7.3.7",
"yargs": "17.0.1"
},
"workspaces": [
"frontend",
"e2e"
],
"scripts": {
"typecheck": "yarn frontend typecheck && yarn e2e typecheck",
"start": "yarn frontend start",
"start-remote": "yarn frontend start-remote",
"test": "yarn frontend test",
"generate-api-clients": "yarn frontend generate-api-clients",
"generate-api-client-remote": "yarn frontend generate-api-client-remote",
"rename": "node scripts/rename-script.js",
"pull-template-changes": "node scripts/pull-template-changes.js && yarn install && yarn typecheck",
"frontend": "yarn workspace @templateApp/frontend",
"e2e": "yarn workspace e2e",
"build-dotnet": "rimraf publish && cross-env-shell dotnet publish webapi/src/MccSoft.TemplateApp.App/MccSoft.TemplateApp.App.csproj -c Release -o publish -p:Version=$npm_package_version",
"build-frontend": "yarn frontend build",
"copy-frontend": "yarn copyfiles -u 2 \"frontend/build/**/*\" \"publish/wwwroot\" && yarn copyfiles -u 1 frontend/.env publish/wwwroot",
"copy-storybook": "yarn copyfiles -u 2 \"frontend/storybook-static/**/*\" \"publish/wwwroot/storybook\"",
"docker-build": "cross-env-shell docker build -t templateapp:latest templateapp:$npm_package_version -f publish/Dockerfile publish",
"build-with-docker": "yarn build && yarn docker-build",
"build": "yarn prestart && yarn build-dotnet && yarn build-frontend && yarn copy-frontend",
"prestart": "yarn copy-translations-to-backend",
"copy-translations-to-backend": "yarn cpy frontend/public/dictionaries/* dictionaries_tmp/ --flat && yarn renamer --force --verbose -f \"/translation.(.*).json/\" -r '../webapi/src/MccSoft.TemplateApp.App/Dictionaries/$1/Frontend.json' './dictionaries_tmp/*'",
"postinstall": "cd webapi && dotnet tool restore",
"run-csharpier": "cd webapi && dotnet csharpier .",
"run-prettier": "prettier -w ."
},
"packageManager": "yarn@3.3.0"
}