very-express 0.2.0 → 0.2.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/dist/cli.js CHANGED
@@ -36,7 +36,7 @@ config.useOauth = config.useOauth || {
36
36
  };
37
37
  logger_1.default.writing("vex.config.json");
38
38
  fs_1.default.writeFileSync("vex.config.json", JSON.stringify(config, null, 4));
39
- if (["help", "-h", "h"].includes(String(args._[0]).toLowerCase())) {
39
+ if (String(args._[0]).toLowerCase() === "h" || args["h"]) {
40
40
  console.log(`Very Express CLI Usage :
41
41
  vex [flag]
42
42
  -h | help : Help
@@ -48,7 +48,7 @@ to generate app :
48
48
  `);
49
49
  process.exit(0);
50
50
  }
51
- else if (["init", "-i", "i"].includes(String(args._[0]).toLowerCase())) {
51
+ else if (String(args._[0]).toLowerCase() === "i" || args["i"]) {
52
52
  console.log("Very Express CLI : Initialization ...");
53
53
  process.exit(0);
54
54
  }
@@ -9,7 +9,7 @@ const server_template_1 = __importDefault(require("./server.template"));
9
9
  const packageJson_generator_1 = __importDefault(require("./packageJson.generator"));
10
10
  const logger_1 = __importDefault(require("../utils/logger"));
11
11
  function compile(compilerOptions) {
12
- const serverOutPath = compilerOptions.srcDir + "/server.gen.ts";
12
+ const serverOutPath = compilerOptions.srcDir + "/server.ts";
13
13
  const packageOutPath = compilerOptions.rootDir + "/package.json";
14
14
  const envOutPath = compilerOptions.rootDir + "/.env";
15
15
  const tsconfigOutPath = compilerOptions.rootDir + "/tsconfig.json";
@@ -1,32 +1,42 @@
1
1
  {
2
2
  "main": "index.js",
3
3
  "scripts": {
4
- "vexgen": "vex",
5
4
  "build": "tsc -p .",
6
- "start": "node dist/server.gen.js",
7
- "dev": "nodemon --exec ts-node src/server.gen.ts"
5
+ "start": "node dist/server.js",
6
+ "dev": "nodemon --watch src --exec ts-node src/server.ts"
8
7
  },
9
8
  "dependencies": {
10
- "dotenv": "^16.3.1",
9
+ "binance": "^2.8.9",
10
+ "bybit-api": "^3.7.2",
11
+ "dotenv": "^16.4.4",
11
12
  "express": "^4.18.2",
13
+ "express-session": "^1.18.0",
12
14
  "express-validator": "^7.0.1",
13
15
  "helmet": "^7.1.0",
14
16
  "js-yaml": "^4.1.0",
15
- "mongoose": "^8.0.3",
16
- "mongo-ts-querystring": "^1.0.0",
17
- "nodemon": "^2.0.22",
17
+ "mongo-ts-querystring": "^1.0.4",
18
+ "mongodb": "^5.6.0",
19
+ "mongoose": "^7.4.0",
18
20
  "passport": "^0.7.0",
19
21
  "passport-google-oauth20": "^2.0.0",
20
22
  "swagger-ui-express": "^5.0.0"
21
23
  },
22
24
  "devDependencies": {
23
- "@types/express": "^4.17.21",
25
+ "@types/crypto-js": "^4.1.2",
26
+ "@types/dotenv": "^8.2.0",
27
+ "@types/express": "^4.17.17",
28
+ "@types/express-session": "^1.17.10",
29
+ "@types/express-validator": "^3.0.0",
24
30
  "@types/js-yaml": "^4.0.9",
25
- "@types/node": "^20.10.5",
31
+ "@types/mongodb": "^4.0.7",
32
+ "@types/node": "^20.4.2",
26
33
  "@types/passport": "^1.0.16",
27
34
  "@types/passport-google-oauth20": "^2.0.14",
35
+ "@types/sequelize": "^4.28.15",
28
36
  "@types/swagger-ui-express": "^4.1.6",
29
- "ts-node": "^10.9.2",
30
- "typescript": "^5.3.3"
37
+ "@types/ws": "^8.5.5",
38
+ "nodemon": "^2.0.22",
39
+ "ts-node": "^10.9.1",
40
+ "typescript": "^5.1.6"
31
41
  }
32
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "very-express",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
5
5
  "author": "justin26l",
6
6
  "license": "MIT",