@urbansolv/create-nestjs-app 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -86,8 +86,8 @@ For full documentation, visit: [Urbansolv Documentation](https://docs.urbansolv.
|
|
|
86
86
|
|
|
87
87
|
## Support
|
|
88
88
|
|
|
89
|
-
- Issues: https://github.com/
|
|
90
|
-
- Email:
|
|
89
|
+
- Issues: https://github.com/MspUrbansolv/package-npm-create_nestjs_app/issues
|
|
90
|
+
- Email: bhagaskuro@gmail.com
|
|
91
91
|
|
|
92
92
|
## License
|
|
93
93
|
|
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "__PROJECT_NAME__",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Urbansolv NestJS Application",
|
|
5
|
-
"author": "Urbansolv",
|
|
6
|
-
"private": true,
|
|
7
|
-
"license": "UNLICENSED",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"test
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"@nestjs/
|
|
32
|
-
"@nestjs/
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@types/
|
|
52
|
-
"@types/
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"eslint-plugin
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "__PROJECT_NAME__",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Urbansolv NestJS Application",
|
|
5
|
+
"author": "Urbansolv",
|
|
6
|
+
"private": true,
|
|
7
|
+
"license": "UNLICENSED",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "npm run clean && tsc && npm run copy-templates",
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"copy-templates": "cp -r templates dist/",
|
|
12
|
+
"dev": "ts-node src/cli.ts",
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
15
|
+
"start": "nest start",
|
|
16
|
+
"start:dev": "nest start --watch",
|
|
17
|
+
"start:debug": "nest start --debug --watch",
|
|
18
|
+
"start:prod": "node dist/main",
|
|
19
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
20
|
+
"test": "echo \"No tests yet\" && exit 0",
|
|
21
|
+
"test:watch": "jest --watch",
|
|
22
|
+
"test:cov": "jest --coverage",
|
|
23
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
24
|
+
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
25
|
+
"prisma:generate": "prisma generate",
|
|
26
|
+
"prisma:migrate": "prisma migrate dev",
|
|
27
|
+
"prisma:studio": "prisma studio",
|
|
28
|
+
"prisma:seed": "ts-node prisma/seed.ts"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@nestjs/common": "^11.0.1",
|
|
32
|
+
"@nestjs/config": "^4.0.2",
|
|
33
|
+
"@nestjs/core": "^11.0.1",
|
|
34
|
+
"@nestjs/passport": "^11.0.5",
|
|
35
|
+
"@nestjs/platform-express": "^11.0.1",
|
|
36
|
+
"@nestjs/swagger": "^11.2.3",
|
|
37
|
+
"@prisma/client": "^6.19.0",
|
|
38
|
+
"bcryptjs": "^3.0.3",
|
|
39
|
+
"class-transformer": "^0.5.1",
|
|
40
|
+
"class-validator": "^0.14.0",
|
|
41
|
+
"joi": "^18.0.2",
|
|
42
|
+
"passport": "^0.7.0",
|
|
43
|
+
"passport-jwt": "^4.0.1",
|
|
44
|
+
"reflect-metadata": "^0.2.2",
|
|
45
|
+
"rxjs": "^7.8.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@nestjs/cli": "^11.0.0",
|
|
49
|
+
"@nestjs/schematics": "^11.0.0",
|
|
50
|
+
"@nestjs/testing": "^11.0.1",
|
|
51
|
+
"@types/bcrypt": "^6.0.0",
|
|
52
|
+
"@types/express": "^5.0.5",
|
|
53
|
+
"@types/jest": "^30.0.0",
|
|
54
|
+
"@types/node": "^22.10.7",
|
|
55
|
+
"@types/passport-jwt": "^4.0.1",
|
|
56
|
+
"@types/supertest": "^6.0.2",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
58
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
59
|
+
"eslint": "^9.18.0",
|
|
60
|
+
"eslint-config-prettier": "^10.0.1",
|
|
61
|
+
"eslint-plugin-prettier": "^5.2.2",
|
|
62
|
+
"jest": "^30.0.0",
|
|
63
|
+
"prettier": "^3.4.2",
|
|
64
|
+
"prisma": "^6.19.0",
|
|
65
|
+
"source-map-support": "^0.5.21",
|
|
66
|
+
"supertest": "^7.0.0",
|
|
67
|
+
"ts-jest": "^29.2.5",
|
|
68
|
+
"ts-loader": "^9.5.2",
|
|
69
|
+
"ts-node": "^10.9.2",
|
|
70
|
+
"tsconfig-paths": "^4.2.0",
|
|
71
|
+
"typescript": "^5.7.3"
|
|
72
|
+
},
|
|
73
|
+
"prisma": {
|
|
74
|
+
"seed": "ts-node prisma/seed.ts"
|
|
75
|
+
},
|
|
76
|
+
"jest": {
|
|
77
|
+
"moduleFileExtensions": ["js", "json", "ts"],
|
|
78
|
+
"rootDir": "src",
|
|
79
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
80
|
+
"transform": {
|
|
81
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
82
|
+
},
|
|
83
|
+
"collectCoverageFrom": ["**/*.(t|j)s"],
|
|
84
|
+
"coverageDirectory": "../coverage",
|
|
85
|
+
"testEnvironment": "node"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
+
import { IsEmail, IsString, MinLength, IsBoolean, IsOptional } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class UpdateUserDto {
|
|
5
|
+
@ApiPropertyOptional({ example: 'bhagaskoro@urbansolv.co.id' })
|
|
6
|
+
@IsEmail({}, { message: 'Please provide a valid email address' })
|
|
7
|
+
@IsOptional()
|
|
8
|
+
email?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional({ example: 'newpassword123' })
|
|
11
|
+
@IsString()
|
|
12
|
+
@MinLength(6, { message: 'Password must be at least 6 characters long' })
|
|
13
|
+
@IsOptional()
|
|
14
|
+
password?: string;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional({ example: 'Bhagas' })
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
first_name?: string;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional({ example: 'Koro' })
|
|
22
|
+
@IsString()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
last_name?: string;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional({ example: true })
|
|
27
|
+
@IsBoolean()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
is_active?: boolean;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urbansolv/create-nestjs-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI generator for Urbansolv NestJS boilerplate with RBAC and Prisma",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"node": ">=22.2.0",
|
|
62
62
|
"npm": ">=10.7.0"
|
|
63
63
|
}
|
|
64
|
-
}
|
|
64
|
+
}
|