crudora 0.1.0-alpha.4 → 0.1.0
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/LICENSE +1 -1
- package/dist/templates/.env.example +8 -8
- package/package.json +94 -84
- package/templates/.env.example +8 -8
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Database
|
|
2
|
-
DATABASE_URL="file:./dev.db"
|
|
3
|
-
|
|
4
|
-
# Server
|
|
5
|
-
PORT=3000
|
|
6
|
-
NODE_ENV=development
|
|
7
|
-
|
|
8
|
-
# API
|
|
1
|
+
# Database
|
|
2
|
+
DATABASE_URL="file:./dev.db"
|
|
3
|
+
|
|
4
|
+
# Server
|
|
5
|
+
PORT=3000
|
|
6
|
+
NODE_ENV=development
|
|
7
|
+
|
|
8
|
+
# API
|
|
9
9
|
API_BASE_PATH="/api"
|
package/package.json
CHANGED
|
@@ -1,84 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "crudora",
|
|
3
|
-
"version": "0.1.0
|
|
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
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
},
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"@types/
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "crudora",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"templates",
|
|
21
|
+
"scripts"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc && node scripts/copy-assets.js",
|
|
25
|
+
"copy-assets": "node scripts/copy-assets.js",
|
|
26
|
+
"build:watch": "tsc --watch",
|
|
27
|
+
"clean": "rimraf dist",
|
|
28
|
+
"prebuild": "npm run clean",
|
|
29
|
+
"prepublishOnly": "npm run build",
|
|
30
|
+
"dev": "ts-node src/index.ts",
|
|
31
|
+
"test": "jest",
|
|
32
|
+
"test:watch": "jest --watch",
|
|
33
|
+
"test:coverage": "jest --coverage",
|
|
34
|
+
"lint": "eslint src/**/*.ts",
|
|
35
|
+
"format": "prettier --write src/**/*.ts",
|
|
36
|
+
"postinstall": "node scripts/postinstall.js || echo 'Postinstall script failed, but continuing...'"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"crud",
|
|
40
|
+
"api",
|
|
41
|
+
"typescript",
|
|
42
|
+
"prisma",
|
|
43
|
+
"express",
|
|
44
|
+
"framework",
|
|
45
|
+
"backend",
|
|
46
|
+
"rest-api",
|
|
47
|
+
"orm",
|
|
48
|
+
"validation",
|
|
49
|
+
"zod",
|
|
50
|
+
"decorators",
|
|
51
|
+
"auto-generation"
|
|
52
|
+
],
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/suryamsj/crudora.git"
|
|
56
|
+
},
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/suryamsj/crudora/issues"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://github.com/suryamsj/crudora#readme",
|
|
61
|
+
"author": {
|
|
62
|
+
"name": "Muhammad Surya J",
|
|
63
|
+
"url": "https://suryamsj.my.id"
|
|
64
|
+
},
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"description": "TypeScript framework for automated CRUD API generation with Prisma and Express",
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@types/express": "^5.0.3",
|
|
69
|
+
"commander": "^14.0.0",
|
|
70
|
+
"express": "^5.1.0",
|
|
71
|
+
"jest-mock-extended": "^4.0.0",
|
|
72
|
+
"reflect-metadata": "^0.2.2",
|
|
73
|
+
"zod": "^4.0.5"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/jest": "^30.0.0",
|
|
77
|
+
"@types/node": "^24.0.15",
|
|
78
|
+
"@types/supertest": "^6.0.3",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
80
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
81
|
+
"eslint": "^9.31.0",
|
|
82
|
+
"jest": "^30.0.4",
|
|
83
|
+
"prettier": "^3.6.2",
|
|
84
|
+
"rimraf": "^6.0.1",
|
|
85
|
+
"supertest": "^7.1.3",
|
|
86
|
+
"ts-jest": "^29.4.0",
|
|
87
|
+
"ts-node": "^10.9.2",
|
|
88
|
+
"typescript": "^5.8.3"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"@prisma/client": "^6.12.0",
|
|
92
|
+
"prisma": "^6.12.0"
|
|
93
|
+
}
|
|
94
|
+
}
|
package/templates/.env.example
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Database
|
|
2
|
-
DATABASE_URL="file:./dev.db"
|
|
3
|
-
|
|
4
|
-
# Server
|
|
5
|
-
PORT=3000
|
|
6
|
-
NODE_ENV=development
|
|
7
|
-
|
|
8
|
-
# API
|
|
1
|
+
# Database
|
|
2
|
+
DATABASE_URL="file:./dev.db"
|
|
3
|
+
|
|
4
|
+
# Server
|
|
5
|
+
PORT=3000
|
|
6
|
+
NODE_ENV=development
|
|
7
|
+
|
|
8
|
+
# API
|
|
9
9
|
API_BASE_PATH="/api"
|