express-generator-typescript 2.8.0 → 2.8.1

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.
@@ -4,7 +4,6 @@ const path = require('path'),
4
4
  ncp = require('ncp').ncp,
5
5
  fs = require('fs');
6
6
 
7
-
8
7
  /******************************************************************************
9
8
  Constants
10
9
  ******************************************************************************/
@@ -13,6 +12,7 @@ const PROJECT_FOLDER_PATH = './project-files';
13
12
 
14
13
  const DEPENDENCIES = [
15
14
  'cookie-parser',
15
+ 'cross-env',
16
16
  'dayjs',
17
17
  'dotenv',
18
18
  'express',
@@ -41,6 +41,7 @@ const DEV_DEPENDENCIES = [
41
41
  '@types/supertest',
42
42
  'browser-sync',
43
43
  'concurrently',
44
+ 'delay-cli',
44
45
  'eslint',
45
46
  'eslint-config-prettier',
46
47
  'eslint-plugin-n',
@@ -58,7 +59,6 @@ const DEV_DEPENDENCIES = [
58
59
  'vitest',
59
60
  ];
60
61
 
61
-
62
62
  // "ncp" options
63
63
  const ncpOpts = {
64
64
  filter: (fileName) => {
@@ -66,7 +66,6 @@ const ncpOpts = {
66
66
  },
67
67
  };
68
68
 
69
-
70
69
  /******************************************************************************
71
70
  Functions
72
71
  ******************************************************************************/
@@ -145,7 +144,6 @@ function downloadNodeModules(destination, useYarn) {
145
144
  childProcess.execSync(downloadDepCmd, options);
146
145
  }
147
146
 
148
-
149
147
  /******************************************************************************
150
148
  Export
151
149
  ******************************************************************************/
@@ -6,14 +6,14 @@
6
6
  "build:copy-static": "shx mkdir -p dist/public dist/views && shx cp -r src/public/* dist/public && shx cp -r src/views/* dist/views",
7
7
  "build:make-db": "shx mkdir -p dist/repos/common && shx touch dist/repos/common/database.json && echo \"{}\" > dist/repos/common/database.json",
8
8
  "clean-install": "rm -rf ./node_modules && rm -r package-lock.json && npm i",
9
- "dev:basic": "DOTENV_CONFIG_PATH=./config/.env.development ts-node ./src/main",
9
+ "dev:basic": "cross-env DOTENV_CONFIG_PATH=./config/.env.development ts-node ./src/main",
10
10
  "dev:watch": "nodemon --exec \"npm run dev:basic\" --watch ./src --ext .ts",
11
11
  "dev": "concurrently \"npm run dev:watch\" \"npm run sync\"",
12
12
  "lint": "eslint .",
13
13
  "format": "prettier --write .",
14
- "start": "DOTENV_CONFIG_PATH=./config/.env.production node -r dotenv/config -r module-alias/register ./dist/main.js",
15
- "sync": "sleep 1 && browser-sync start --config bs-config.js",
16
- "test": "NODE_ENV=test vitest",
14
+ "start": "cross-env DOTENV_CONFIG_PATH=./config/.env.production node -r dotenv/config -r module-alias/register ./dist/main.js",
15
+ "sync": "delay 1s && browser-sync start --config bs-config.js",
16
+ "test": "cross-env NODE_ENV=test vitest",
17
17
  "type-check": "tsc -b --noEmit"
18
18
  },
19
19
  "engines": {
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "cookie-parser": "^1.4.7",
27
+ "cross-env": "^10.1.0",
27
28
  "dayjs": "^1.11.19",
28
29
  "dotenv": "^17.2.3",
29
30
  "express": "^5.2.1",
@@ -51,6 +52,7 @@
51
52
  "@types/supertest": "^6.0.3",
52
53
  "browser-sync": "^3.0.4",
53
54
  "concurrently": "^9.2.1",
55
+ "delay-cli": "^3.0.0",
54
56
  "eslint": "^9.39.2",
55
57
  "eslint-config-prettier": "^10.1.8",
56
58
  "eslint-plugin-n": "^17.23.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-generator-typescript",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
5
5
  "scripts": {
6
6
  "express-generator-typescript": "node bin/cli.js",