Skip to content

Commit

Permalink
added nasty script
Browse files Browse the repository at this point in the history
  • Loading branch information
richard483 committed Nov 17, 2023
1 parent c7e06c7 commit 227ccbb
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"seed": "ts-node prisma/seed.ts"
},
"scripts": {
"build": "nest build",
"build": "nest build && cp ./package.prod.json ./dist/package.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"init:db": "docker compose up -d && npx prisma generate && npx prisma migrate dev && npx prisma db seed",
"start": "cd .. && node dist/src/main",
"start": "npm i && node dist/src/main",
"dev": "nest build --webpack --webpackPath webpack-hmr.config.js --watch",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
Expand Down
53 changes: 53 additions & 0 deletions package.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "8T-Auth",
"version": "1.0.1",
"description": "",
"author": "8tech",
"private": true,
"license": "UNLICENSED",
"main": "src/main.js",
"prisma": {
"seed": "ts-node prisma/seed.ts"
},
"scripts": {
"build": "nest build && cp ./package.prod.json ./dist/package.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"init:db": "docker compose up -d && npx prisma generate && npx prisma migrate dev && npx prisma db seed",
"start": "npm i && node dist/src/main",
"dev": "nest build --webpack --webpackPath webpack-hmr.config.js --watch",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/src/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^9.1.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^9.1.1",
"@nestjs/jwt": "^10.1.0",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^9.0.0",
"@nestjs/swagger": "^7.1.14",
"@prisma/client": "^5.0.0",
"ajv": "^6.12.6",
"bcrypt": "^5.1.1",
"class-validator": "^0.14.0",
"handlebars": "^4.7.8",
"jspdf": "^2.5.1",
"passport": "^0.6.0",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"puppeteer": "^21.5.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit 227ccbb

Please sign in to comment.