Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Organize npm scripts and fix app-name in az ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Oct 3, 2021
1 parent 6f0476a commit bdb2b9e
Show file tree
Hide file tree
Showing 4 changed files with 561 additions and 531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: "hackatalk"
app-name: "hackatalk-dev"
publish-profile: ${{ secrets.AzureAppService_PublishProfile_241cb4cf043b472bba4b578954b48fc9 }}
package: ./server
2 changes: 1 addition & 1 deletion .github/workflows/release-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
uses: azure/webapps-deploy@v2
with:
app-name: "hackatalk"
slot-name: "production"
# slot-name: "production"
publish-profile: ${{ secrets.AZURE_APPSERVICE_PROD }}
package: ./server
9 changes: 5 additions & 4 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
"start": "dotenv -e ./dotenv/.env -- ts-node-dev --respawn --transpile-only --files src/server.ts",
"prod": "node dist/src/server",
"clean": "rm -rf dist",
"build": "npm -s run clean && npm -s run generate && tsc",
"lint": "eslint --ext .ts,.tsx,.js,.jsx src tests",
"build": "npm -s run clean && npm -s run generate && tsc",
"tsc": "tsc",
"test": "dotenv -e ./dotenv/test.env -- jest --runInBand --detectOpenHandles --forceExit",
"generate": "yarn generate:prisma && yarn generate:nexus",
"generate:prisma": "prisma generate",
"generate:nexus": "ts-node --transpile-only src/schema",
"generate:local": "dotenv -e ./dotenv/.env -- yarn generate:prisma && dotenv -e ./dotenv/.env -- yarn generate:nexus",
"generate:test": "npm -s run generate:prisma:test && npm -s run generate:nexus:test",
"generate:prisma:test": "dotenv -e ./dotenv/test.env -- prisma generate",
"generate:nexus:test": "dotenv -e ./dotenv/test.env -- ts-node --transpile-only src/schema",
"test:watch": "jest --watch",
"generate": "yarn generate:prisma && yarn generate:nexus",
"generate:prisma": "dotenv -e ./dotenv/.env -- prisma generate",
"generate:nexus": "dotenv -e ./dotenv/.env -- ts-node --transpile-only src/schema",
"migrate": "prisma migrate deploy",
"migrate:reset": "dotenv -e ./dotenv/.env -- prisma migrate reset",
"migrate:dev": "dotenv -e ./dotenv/.env -- prisma migrate dev",
Expand Down
Loading

0 comments on commit bdb2b9e

Please sign in to comment.