@anthonylzq/simba.js 3.2.0 → 4.3.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/README.md +25 -13
- package/lib/index.js +0 -2
- package/lib/src/functions/api.js +377 -344
- package/lib/src/functions/tsconfig.js +1 -1
- package/lib/src/index.js +4 -4
- package/lib/src/utils/titleCase.js +1 -1
- package/package.json +8 -6
|
@@ -17,7 +17,7 @@ module.exports = async projectName => {
|
|
|
17
17
|
|
|
18
18
|
/* Basic Options */
|
|
19
19
|
// "incremental": true, /* Enable incremental compilation */
|
|
20
|
-
"target": "
|
|
20
|
+
"target": "ES2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
|
21
21
|
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
|
|
22
22
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
23
23
|
"allowJs": true /* Allow javascript files to be compiled. */,
|
package/lib/src/index.js
CHANGED
|
@@ -57,13 +57,13 @@ module.exports = async ({
|
|
|
57
57
|
cliProgress.Presets.shades_classic
|
|
58
58
|
)
|
|
59
59
|
|
|
60
|
-
const expressProdPackages = 'express
|
|
61
|
-
const fastifyProdPackages = '
|
|
62
|
-
const prodPackages = `${manager} http-errors mongoose ${
|
|
60
|
+
const expressProdPackages = 'express morgan swagger-ui-express cors'
|
|
61
|
+
const fastifyProdPackages = 'fastify fastify-swagger fastify-cors pino-pretty'
|
|
62
|
+
const prodPackages = `${manager} http-errors mongoose @sinclair/typebox ajv@^6 ${
|
|
63
63
|
fastify ? fastifyProdPackages : expressProdPackages
|
|
64
64
|
}`
|
|
65
65
|
|
|
66
|
-
const expressDevPackages = `@types/express @types/morgan @types/swagger-ui-express`
|
|
66
|
+
const expressDevPackages = `@types/express @types/morgan @types/swagger-ui-express @types/cors`
|
|
67
67
|
const fastifyDevPackages = ''
|
|
68
68
|
const devPackages = `${manager} -D \
|
|
69
69
|
@types/http-errors \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthonylzq/simba.js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "set up a modern backend app by running one command",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -41,16 +41,18 @@
|
|
|
41
41
|
"colors": "^1.4.0",
|
|
42
42
|
"readline-sync": "^1.4.10",
|
|
43
43
|
"underscore": "^1.13.2",
|
|
44
|
-
"yargs": "^17.
|
|
44
|
+
"yargs": "^17.4.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"dotenv": "^
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"eslint-config-prettier": "^8.
|
|
47
|
+
"dotenv": "^16.0.0",
|
|
48
|
+
"eslint": "^8.13.0",
|
|
49
|
+
"eslint-config-prettier": "^8.5.0",
|
|
50
50
|
"eslint-config-standard": "^16.0.3",
|
|
51
|
-
"eslint-plugin-import": "^2.
|
|
51
|
+
"eslint-plugin-import": "^2.26.0",
|
|
52
52
|
"eslint-plugin-node": "^11.1.0",
|
|
53
53
|
"eslint-plugin-prettier": "^4.0.0",
|
|
54
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
55
|
+
"prettier": "^2.6.2",
|
|
54
56
|
"standard-version": "^9.3.2"
|
|
55
57
|
},
|
|
56
58
|
"repository": {
|