|
1 | 1 | {
|
2 | | - "name": "aspnet.core.react.template", |
| 2 | + "name": "aspnet.core.vuejs.template", |
3 | 3 | "version": "1.0.0",
|
4 | 4 | "description": "",
|
5 | 5 | "main": "index.js",
|
6 | 6 | "scripts": {
|
7 | 7 | "postinstall": "dotnet restore ./api && dotnet restore ./api.test",
|
8 | 8 | "build": "dotnet build ./api",
|
9 | 9 | "test:api": "cd ./api.test && dotnet xunit",
|
10 | | - "pretest:client": "./node_modules/typescript/bin/tsc -p ./client-react.test/", |
11 | | - "test:client": "mocha --require ignore-styles --recursive client-react.test/build/client-react.test", |
| 10 | + "pretest:client": "./node_modules/typescript/bin/tsc -p ./client-web.test/", |
| 11 | + "test:client": "mocha --require ignore-styles --recursive client-web.test/build/client-web.test", |
12 | 12 | "test": "npm run test:api && npm run test:client",
|
13 | 13 | "migrate": "cd ./api/ && dotnet ef migrations add $(date +%s) && dotnet ef database update",
|
14 | 14 | "prestart": "docker-compose up -d",
|
15 | 15 | "start": "cd ./api && cross-env NODE_PATH=../node_modules/ ASPNETCORE_ENVIRONMENT=Development dotnet watch run",
|
16 | 16 | "start:release": "npm run prerelease && cd ./api/bin/Release/netcoreapp1.0/publish/ && dotnet api.dll",
|
17 | 17 | "provision:prod": "ansible-playbook -l production -i ./ops/hosts ./ops/provision.yml",
|
18 | | - "prerelease": "cross-env ASPNETCORE_ENVIRONMENT=Production webpack --config ./client-react/webpack.config.js && cd ./api && dotnet publish --configuration Release", |
| 18 | + "prerelease": "cross-env ASPNETCORE_ENVIRONMENT=Production webpack --config ./client-web/webpack.config.js && cd ./api && dotnet publish --configuration Release", |
19 | 19 | "deploy:prod": "npm run prerelease && ansible-playbook -l production -i ./ops/hosts ./ops/deploy.yml",
|
20 | 20 | "ssh:prod": "ssh `grep 'deploy_user=' ./ops/hosts | tail -n1 | awk -F'=' '{ print 2ドル}'`@`awk 'f{print;f=0} /[production]/{f=1}' ./ops/hosts | head -n 1`"
|
21 | 21 | },
|
|
0 commit comments