crabatool 1.0.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/config.js +25 -0
- package/package.json +21 -0
- package/readme.md +4 -0
- package/server.js +3 -0
- package/start.bat +30 -0
package/config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var config = {
|
|
2
|
+
//【必填】
|
|
3
|
+
// 告诉工具当前项的端路径地址,填绝对路径哦
|
|
4
|
+
webPath: "F:/jxc/jxc-web/src/main/resources/static/jxc",
|
|
5
|
+
|
|
6
|
+
//【必填】
|
|
7
|
+
// 告诉工具当前项前端服务器端口地址
|
|
8
|
+
port: 3001,
|
|
9
|
+
|
|
10
|
+
//【不是必填】
|
|
11
|
+
// 当前项目模块名称,各组按需修改
|
|
12
|
+
modName: "jxc", // 如:modName:"jxc"
|
|
13
|
+
|
|
14
|
+
//【不是必填】
|
|
15
|
+
// 1. 当前模块是由哪些过去的模块合并来的,各组按需修改
|
|
16
|
+
// 2. 如果配置了子模块清单,工具会自动将所有子模块下的init.js和当前模块的jxc/js/jxc.js,合并打包到:jxc/js/init.js,实际运行过程中只加载:jxc/js/init.js,不会加载子模块下面的init.js,这样就可以大大减少http请求
|
|
17
|
+
// 3. 同2,biz.js也是相同思路进行合并打包
|
|
18
|
+
childModList: [], // 如: ['recordsheet', 'baseinfo', 'accounting'],
|
|
19
|
+
|
|
20
|
+
// 【不是必填】
|
|
21
|
+
// 上一步中打包后的文件是否压缩, true为忽略【不压缩】,false为【要压缩】,各组按需修改
|
|
22
|
+
ignoreCompress: true
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
module.exports = config;
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "crabatool",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ngpTool",
|
|
5
|
+
"main": "server.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node server.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "wssf",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"crabatool": "^1.0.0"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "no"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"crabatool"
|
|
19
|
+
],
|
|
20
|
+
"license": "UNLICENSED"
|
|
21
|
+
}
|
package/readme.md
ADDED
package/server.js
ADDED
package/start.bat
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@echo 1: 启动服务
|
|
2
|
+
@echo 2: 更新平台后启动服务
|
|
3
|
+
@echo off
|
|
4
|
+
rem 关闭自动输出
|
|
5
|
+
:begin
|
|
6
|
+
|
|
7
|
+
set /p input=请输入操作编号:
|
|
8
|
+
|
|
9
|
+
if %input% == 1 (
|
|
10
|
+
echo 启动服务
|
|
11
|
+
node server.js
|
|
12
|
+
exit
|
|
13
|
+
)
|
|
14
|
+
if %input% == 2 (
|
|
15
|
+
echo 清理npm缓存
|
|
16
|
+
npm cache clean --force
|
|
17
|
+
|
|
18
|
+
echo 更新平台服务
|
|
19
|
+
npm update
|
|
20
|
+
|
|
21
|
+
echo 启动服务
|
|
22
|
+
node server.js -update
|
|
23
|
+
exit
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
rem pause>null
|
|
27
|
+
|
|
28
|
+
echo.
|
|
29
|
+
|
|
30
|
+
goto begin
|