clwy-express-generator 5.0.14 → 5.1.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.
- package/README.md +0 -2
- package/bin/express-cli.js +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ $ npm start
|
|
|
49
49
|
-c, --css <engine> 添加样式表引擎 <engine> 支持 (less|stylus|compass|sass)(默认为纯 css)
|
|
50
50
|
--git 添加 .gitignore 文件
|
|
51
51
|
--es6 生成 ES6 代码和模块类型项目(需要Node 14.x或更高版本)
|
|
52
|
-
-o, --orm 使用 Prisma ORM
|
|
53
52
|
-f, --force 强制在非空目录上操作
|
|
54
53
|
-h, --help 输出使用信息
|
|
55
54
|
|
|
@@ -104,7 +103,6 @@ This generator can also be further configured with the following command line fl
|
|
|
104
103
|
-c, --css <engine> add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)
|
|
105
104
|
--git add .gitignore
|
|
106
105
|
--es6 generate ES6 code and module-type project (requires Node 14.x or higher)
|
|
107
|
-
-o, --orm use the Prisma ORM
|
|
108
106
|
-f, --force force on non-empty directory
|
|
109
107
|
-h, --help output usage information
|
|
110
108
|
|
package/bin/express-cli.js
CHANGED
|
@@ -95,24 +95,22 @@ function createApplication (name, dir, options, done) {
|
|
|
95
95
|
name: name,
|
|
96
96
|
version: '0.0.0',
|
|
97
97
|
private: true,
|
|
98
|
+
type: options.es6 ? 'module' : 'commonjs',
|
|
98
99
|
scripts: {
|
|
99
100
|
start: 'nodemon ./bin/www',
|
|
100
101
|
format: 'prettier --write "**/*.{js,json,md}"'
|
|
101
102
|
},
|
|
102
103
|
dependencies: {
|
|
104
|
+
cors: '^2.8.5',
|
|
103
105
|
debug: '~4.4.0',
|
|
104
106
|
dotenv: '^16.5.0',
|
|
105
107
|
express: '~5.1.0'
|
|
106
108
|
},
|
|
107
109
|
devDependencies: {
|
|
108
|
-
cors: '^2.8.5',
|
|
109
110
|
nodemon: '^3.1.9',
|
|
110
111
|
prettier: '^3.5.3'
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
if (options.es6) {
|
|
114
|
-
pkg.type = 'module'
|
|
115
|
-
}
|
|
116
114
|
|
|
117
115
|
// JavaScript
|
|
118
116
|
const app = loadTemplate(options.es6 ? 'mjs/app.js' : 'js/app.js')
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "clwy-express-generator",
|
|
3
3
|
"description": "Express' application generator",
|
|
4
4
|
"homepage": "https://github.com/clwy-cn/clwy-express-generator",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.1.1",
|
|
6
6
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
7
7
|
"contributors": [
|
|
8
8
|
"Aaron Heckmann <aaron.heckmann+github@gmail.com>",
|