-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
57 lines (57 loc) · 2.64 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
49
50
51
52
53
54
55
56
57
{
"name": "@templateApp/build",
"version": "0.1.4",
"private": true,
"type": "module",
"dependencies": {
"@types/diff": "5.0.3",
"@types/fs-extra": "11.0.1",
"@types/semver": "7.5.0",
"@types/yargs": "17.0.24",
"change-case": "4.1.2",
"copyfiles": "2.3.0",
"cpy-cli": "4.2.0",
"cross-env": "7.0.3",
"diff": "5.1.0",
"fast-xml-parser": "4.2.2",
"fs-extra": "11.1.1",
"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",
"ts-node": "10.9.1",
"yargs": "17.7.2"
},
"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": "npx tsx scripts/rename-script.ts",
"pull-template-changes": "npx tsx scripts/pull-template-changes.ts && 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\"",
"build-import-meta-env": "npx pkg ./node_modules/@import-meta-env/cli/bin/import-meta-env.js -t node16-linux -o ./publish/import-meta-env",
"docker-build": "docker build -t templateapp:latest -t templateapp:$npm_package_version -f publish/Dockerfile publish",
"build-with-docker": "yarn build && yarn build-import-meta-env && 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": "[email protected]"
}