-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
154 lines (154 loc) · 16.4 KB
/
package.json
1
2
3
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"name": "@anthonylzq/simba.js",
"version": "8.1.0",
"description": "set up a modern backend app by running one command",
"main": "lib/index.js",
"scripts": {
"service": "node ./bin",
"service:q": "node ./bin -q",
"help": "node ./bin -h",
"lint": "eslint --ext js lib/ --fix",
"db:create": "node ./scripts/db/sql/create.mjs && node ./scripts/db/mongo/create.mjs",
"db:create:mongo": "node ./scripts/db/mongo/create.mjs",
"db:create:sql": "node ./scripts/db/sql/create.mjs",
"db:restore": "node ./scripts/db/sql/restore.mjs && node ./scripts/db/mongo/restore.mjs",
"db:restore:mongo": "node ./scripts/db/mongo/restore.mjs",
"db:restore:sql": "node ./scripts/db/sql/restore.mjs",
"example": "node -r dotenv/config ./bin -N local-example -D 'This is a test using fastify' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H --tests --ghat -F",
"build": "npm run build:express:all && npm run build:fastify:all",
"build:mongo": "npm run rm:mongo && npm run db:create:mongo && npm run build:express:mongo && npm run build:fastify:mongo && npm run build:express:mongo:graphql && npm run build:fastify:mongo:graphql",
"build:sql": "npm run rm:sql && npm run db:create:sql && npm run build:express && npm run build:fastify && npm run build:express:graphql && npm run build:fastify:graphql",
"build:express:all": "npm run db:create && npm run build:express && npm run build:express:mongo && npm run build:express:graphql && npm run build:express:mongo:graphql",
"build:fastify:all": "npm run db:create && npm run build:fastify && npm run build:fastify:mongo && npm run build:fastify:graphql && npm run build:fastify:mongo:graphql",
"build:express": "npm run db:create:sql && npm run rm:express && npm run cd:mv:example && node -r dotenv/config ./bin -N example/express -D 'This is a test using Express with Prisma and PostgreSQL' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H --tests --ghat -d postgres && npm run rm:git:express:mongo",
"build:express:mongo": "npm run db:create:mongo && npm run rm:express:mongo && npm run cd:mv:example && node -r dotenv/config ./bin -N example/express-mongo -D 'This is a test using Express with Prisma and MongoDB' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H --tests --ghat && npm run rm:git:express",
"build:fastify": "npm run db:create:sql && npm run rm:fastify && npm run cd:mv:example && node -r dotenv/config ./bin -N example/fastify -D 'This is a test using Fastify with Prisma and PostgreSQL' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H--tests --ghat -d postgres -F && npm run rm:git:fastify",
"build:fastify:mongo": "npm run db:create:mongo && npm run rm:fastify:mongo && npm run cd:mv:example && node -r dotenv/config ./bin -N example/fastify-mongo -D 'This is a test using Fastify with Prisma and MongoDB' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H --tests --ghat -F && npm run rm:git:fastify:mongo",
"build:express:graphql": "npm run db:create:sql && npm run rm:express:graphql && npm run cd:mv:example && node -r dotenv/config ./bin -N example/express-graphql -D 'This is a test using Express with GraphQL with Prisma and PostgreSQL' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H -g --tests --ghat -d postgres && npm run rm:git:express:graphql",
"build:express:mongo:graphql": "npm run db:create:mongo && npm run rm:express:mongo:graphql && npm run cd:mv:example && node -r dotenv/config ./bin -N example/express-mongo-graphql -D 'This is a test using Express with GraphQL with Prisma and MongoDB' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H -g --tests --ghat && npm run rm:git:express:mongo:graphql",
"build:fastify:graphql": "npm run db:create:sql && npm run rm:fastify:graphql && npm run cd:mv:example && node -r dotenv/config ./bin -N example/fastify-graphql -D 'This is a test using Fastify with GraphQL with Prisma and PostgreSQL' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H -g --tests --ghat -d postgres -F && npm run rm:git:fastify:graphql",
"build:fastify:mongo:graphql": "npm run db:create:mongo && npm run rm:fastify:mongo:graphql && npm run cd:mv:example && node -r dotenv/config ./bin -N example/fastify-mongo-graphql -D 'This is a test using Fastify with GraphQL with Prisma and MongoDB' -a AnthonyLzq -e sluzquinosa@uni.pe -l mit -H -g --tests --ghat -F && npm run rm:git:fastify:mongo:graphql",
"build:and:test:only": "npm run build && npm run test:only",
"test": "npm run test:without:restore && git restore .",
"test:local": "npm run test:without:restore",
"test:integration": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.integration.config.js --testPathPattern=test/integration",
"test:without:restore": "npm run db:create && npm run build && npm run test:express:local && npm run test:express:mongo:local && npm run test:express:graphql:local && npm run test:express:mongo:graphql:local && npm run test:fastify:local && npm run test:fastify:mongo:local && npm run test:fastify:graphql:local && npm run test:fastify:mongo:graphql:local",
"test:mongo:ci": "npm run build:mongo && npm run test:express:mongo:ci && npm run test:fastify:mongo:ci && npm run test:express:mongo:graphql:ci && npm run test:fastify:mongo:graphql:ci",
"test:sql:ci": "npm run build:sql && npm run test:express:ci && npm run test:fastify:ci && npm run test:express:graphql:ci && npm run test:fastify:graphql:ci",
"test:only": "npm run test:express:only && npm run test:fastify:only",
"test:express:only": "npm run test:express:local && npm run test:express:mongo:local && npm run test:express:graphql:local && npm run test:express:mongo:graphql:local",
"test:fastify:only": "npm run test:fastify:local && npm run test:fastify:mongo:local && npm run test:fastify:graphql:local && npm run test:fastify:mongo:graphql:local",
"test:express:local": "if [ -d \"example/express/node_modules\" ]; then npm run test:local --prefix example/express; else echo 'Can not run the test for express api because the dependencies are not installed'; fi",
"test:express:mongo:local": "if [ -d \"example/express-mongo/node_modules\" ]; then npm run test:local --prefix example/express-mongo; else echo 'Can not run the test for express-mongo api because the dependencies are not installed'; fi",
"test:fastify:local": "if [ -d \"example/fastify/node_modules\" ]; then npm run test:local --prefix example/fastify; else echo 'Can not run the test for fastify api because the dependencies are not installed'; fi",
"test:fastify:mongo:local": "if [ -d \"example/fastify-mongo/node_modules\" ]; then npm run test:local --prefix example/fastify-mongo; else echo 'Can not run the test for fastify-mongo api because the dependencies are not installed'; fi",
"test:express:graphql:local": "if [ -d \"example/express-graphql/node_modules\" ]; then npm run test:local --prefix example/express-graphql; else echo 'Can not run the test for express-graphql api because the dependencies are not installed'; fi",
"test:express:mongo:graphql:local": "if [ -d \"example/express-mongo-graphql/node_modules\" ]; then npm run test:local --prefix example/express-mongo-graphql; else echo 'Can not run the test for express-mongo-graphql api because the dependencies are not installed'; fi",
"test:fastify:graphql:local": "if [ -d \"example/fastify-graphql/node_modules\" ]; then npm run test:local --prefix example/fastify-graphql; else echo 'Can not run the test for fastify-graphql api because the dependencies are not installed'; fi",
"test:fastify:mongo:graphql:local": "if [ -d \"example/fastify-mongo-graphql/node_modules\" ]; then npm run test:local --prefix example/fastify-mongo-graphql; else echo 'Can not run the test for fastify-mongo-graphql api because the dependencies are not installed'; fi",
"test:express:ci": "if [ -d \"example/express/node_modules\" ]; then npm run test:ci --prefix example/express; else echo 'Can not run the test for express api because the dependencies are not installed'; fi",
"test:express:mongo:ci": "if [ -d \"example/express-mongo/node_modules\" ]; then npm run test:ci --prefix example/express-mongo; else echo 'Can not run the test for express-mongo api because the dependencies are not installed'; fi",
"test:fastify:ci": "if [ -d \"example/fastify/node_modules\" ]; then npm run test:ci --prefix example/fastify; else echo 'Can not run the test for fastify api because the dependencies are not installed'; fi",
"test:fastify:mongo:ci": "if [ -d \"example/fastify-mongo/node_modules\" ]; then npm run test:ci --prefix example/fastify-mongo; else echo 'Can not run the test for fastify-mongo api because the dependencies are not installed'; fi",
"test:express:graphql:ci": "if [ -d \"example/express-graphql/node_modules\" ]; then npm run test:ci --prefix example/express-graphql; else echo 'Can not run the test for express-graphql api because the dependencies are not installed'; fi",
"test:express:mongo:graphql:ci": "if [ -d \"example/express-mongo-graphql/node_modules\" ]; then npm run test:ci --prefix example/express-mongo-graphql; else echo 'Can not run the test for express-mongo-graphql api because the dependencies are not installed'; fi",
"test:fastify:graphql:ci": "if [ -d \"example/fastify-graphql/node_modules\" ]; then npm run test:ci --prefix example/fastify-graphql; else echo 'Can not run the test for fastify-graphql api because the dependencies are not installed'; fi",
"test:fastify:mongo:graphql:ci": "if [ -d \"example/fastify-mongo-graphql/node_modules\" ]; then npm run test:ci --prefix example/fastify-mongo-graphql; else echo 'Can not run the test for fastify-mongo-graphql api because the dependencies are not installed'; fi",
"list:directory:tree:express": "if [ -f \"projectStructureExamples/express.txt\" ]; then rm projectStructureExamples/express.txt; fi && tree example/express -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/express.txt",
"list:directory:tree:express:mongo": "if [ -f \"projectStructureExamples/express-mongo.txt\" ]; then rm projectStructureExamples/express-mongo.txt; fi && tree example/express-mongo -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/express-mongo.txt",
"list:directory:tree:fastify": "if [ -f \"projectStructureExamples/fastify.txt\" ]; then rm projectStructureExamples/fastify.txt; fi && tree example/fastify -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/fastify.txt",
"list:directory:tree:fastify:mongo": "if [ -f \"projectStructureExamples/fastify-mongo.txt\" ]; then rm projectStructureExamples/fastify-mongo.txt; fi && tree example/fastify-mongo -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/fastify-mongo.txt",
"list:directory:tree:express:graphql": "if [ -f \"projectStructureExamples/express-graphql.txt\" ]; then rm projectStructureExamples/express-graphql.txt; fi && tree example/express-graphql -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/express-graphql.txt",
"list:directory:tree:express:mongo:graphql": "if [ -f \"projectStructureExamples/express-mongo-graphql.txt\" ]; then rm projectStructureExamples/express-mongo-graphql.txt; fi && tree example/express-mongo-graphql -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/express-mongo-graphql.txt",
"list:directory:tree:fastify:graphql": "if [ -f \"projectStructureExamples/fastify-graphql.txt\" ]; then rm projectStructureExamples/fastify-graphql.txt; fi && tree example/fastify-graphql -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/fastify-graphql.txt",
"list:directory:tree:fastify:mongo:graphql": "if [ -f \"projectStructureExamples/fastify-mongo-graphql.txt\" ]; then rm projectStructureExamples/fastify-mongo-graphql.txt; fi && tree example/fastify-mongo-graphql -a --dirsfirst --sort name -I node_modules | cut -d'/' -f 2 | tail -n +2 >> projectStructureExamples/fastify-mongo-graphql.txt",
"list:directory:tree:examples": "npm run rm:project:structures && npm run list:directory:tree:express && npm run list:directory:tree:express:mongo && npm run list:directory:tree:fastify && npm run list:directory:tree:fastify:mongo && npm run list:directory:tree:express:graphql && npm run list:directory:tree:express:mongo:graphql && npm run list:directory:tree:fastify:graphql && npm run list:directory:tree:fastify:mongo:graphql",
"rm": "if [ -d \"example\" ]; then rm -rf example; fi",
"rm:mongo": "if [ -d \"example/express-mongo\" ]; then rm -rf example/express-mongo; fi && if [ -d \"example/express-mongo-graphql\" ]; then rm -rf example/express-mongo-graphql; fi && if [ -d \"example/fastify-mongo\" ]; then rm -rf example/fastify-mongo; fi && if [ -d \"example/fastify-mongo-graphql\" ]; then rm -rf example/fastify-mongo-graphql; fi",
"rm:sql": "if [ -d \"example/express\" ]; then rm -rf example/express; fi && if [ -d \"example/express-graphql\" ]; then rm -rf example/express-graphql; fi && if [ -d \"example/fastify\" ]; then rm -rf example/fastify; fi && if [ -d \"example/fastify-graphql\" ]; then rm -rf example/fastify-graphql; fi",
"rm:express": "if [ -d \"example/express\" ]; then rm -rf example/express; fi",
"rm:express:mongo": "if [ -d \"example/express-mongo\" ]; then rm -rf example/express-mongo; fi",
"rm:fastify": "if [ -d \"example/fastify\" ]; then rm -rf example/fastify; fi",
"rm:fastify:mongo": "if [ -d \"example/fastify-mongo\" ]; then rm -rf example/fastify-mongo; fi",
"rm:express:graphql": "if [ -d \"example/express-graphql\" ]; then rm -rf example/express-graphql; fi",
"rm:fastify:graphql": "if [ -d \"example/fastify-graphql\" ]; then rm -rf example/fastify-graphql; fi",
"rm:express:mongo:graphql": "if [ -d \"example/express-mongo-graphql\" ]; then rm -rf example/express-mongo-graphql; fi",
"rm:fastify:mongo:graphql": "if [ -d \"example/fastify-mongo-graphql\" ]; then rm -rf example/fastify-mongo-graphql; fi",
"rm:git:express": "if [ -d \"example/express/.git\" ]; then rm -rf example/express/.git; fi",
"rm:git:express:mongo": "if [ -d \"example/express-mongo/.git\" ]; then rm -rf example/express-mongo/.git; fi",
"rm:git:fastify": "if [ -d \"example/fastify/.git\" ]; then rm -rf example/fastify/.git; fi",
"rm:git:fastify:mongo": "if [ -d \"example/fastify-mongo/.git\" ]; then rm -rf example/fastify-mongo/.git; fi",
"rm:git:express:graphql": "if [ -d \"example/express-graphql/.git\" ]; then rm -rf example/express-graphql/.git; fi",
"rm:git:express:mongo:graphql": "if [ -d \"example/express-mongo-graphql/.git\" ]; then rm -rf example/express-mongo-graphql/.git; fi",
"rm:git:fastify:graphql": "if [ -d \"example/fastify-graphql/.git\" ]; then rm -rf example/fastify-graphql/.git; fi",
"rm:git:fastify:mongo:graphql": "if [ -d \"example/fastify-mongo-graphql/.git\" ]; then rm -rf example/fastify-mongo-graphql/.git; fi",
"rm:project:structures": "if [ -d \"projectStructureExamples\" ]; then rm -rf projectStructureExamples/*; fi",
"cd:mv:example": "if [ ! -d \"example\" ]; then mkdir example && cd example; fi",
"release": "standard-version",
"version": "npm run release && npm run list:directory:tree:examples && git add ."
},
"bin": {
"simba": "./bin/index.js"
},
"keywords": [
"TypeScript",
"cli",
"console",
"term",
"terminal",
"tool",
"tty",
"utility",
"Simba",
"shell"
],
"author": "AnthonyLzq",
"license": "MIT",
"dependencies": {
"cli-progress": "3.12.0",
"colors": "1.4.0",
"prompts": "2.4.2",
"underscore": "1.13.7",
"yargs": "17.7.2"
},
"devDependencies": {
"@types/jest": "29.5.12",
"dotenv": "16.4.5",
"eslint": "^8",
"eslint-config-prettier": "^8",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "^6",
"jest": "29.7.0",
"knex": "3.1.0",
"mongodb": "6.8.0",
"pg": "8.12.0",
"prettier": "3.3.3",
"standard-version": "9.5.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AnthonyLzq/simba.js.git"
},
"bugs": {
"url": "https://github.com/AnthonyLzq/simba.js/issues"
},
"homepage": "https://github.com/AnthonyLzq/simba.js#readme",
"files": [
"lib",
"bin"
],
"standard-version": {
"skip": {
"tag": true,
"commit": true,
"bump": true
}
},
"engines": {
"npm": ">=8.0.0",
"node": ">=16.0.0"
}
}