-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshark-deploy-conf.js
56 lines (56 loc) · 2.4 KB
/
shark-deploy-conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
comment: '前端自动化构建',
version: '1.0.0',
product: 'shark-automation', //项目名称
contextPath: '/shark-automation',
protocol: 'http', //项目使用的协议
browserPort: 9000, //给browser sync使用的端口
port: 9100, //express 起的端口
hostname: '127.0.0.1', //模拟域名
openurl: 'http://127.0.0.1:9000/shark-automation/index.html', //自动打开的url
rootPath: __dirname, //项目的根目录
webapp: 'src/main/webapp', //前端代码的根目录
mock: 'src/test/mock', //mock文件的根目录
scssPath: 'style/scss', //scss文件的目录,相对于webapp
cssPath: 'style/css', //scss编译成css文件的存放目录,
imgPath: 'style/img', //img目录,相对于webapp
videoPath: 'style/video', //video目录
jsPath: 'js', //js目录
fontPath: 'fonts', //fonts目录
htmlPath: 'examples',
templatePath: 'WEB-INF/tmpl', //ftl目录
ajaxPrefix: '/xhr', //ajax请求的根路径
mimgPathPrefix: '/hxm', //静态资源请求的根路径
ifwebpack: true, //是否用webpack来打包js
remoteUrl: '', //前后端联调时,异步请求的转发地址
staticVersion: '2016', //
tmpDir: '.tmp', // optional
build: 'build', // optional
buildWebapp: 'app', // optional
buildStatic: 'mimg', // optional
ftl2html: [ // ftl2html
{
"url": "/index.html$", // url
"sourceRoot": "src/main/webapp/WEB-INF", // source root for fmpp
"ftl": "tmpl/index.ftl", // ftl file for fmpp
"outputRoot": "src/test/mock/output", // output root for fmpp
"data": "src/test/mock/tdd/oglobal.tdd,src/test/mock/tdd/index.tdd" // tdd for fmpp
}
],
//required
mimgURLPrefix: {
develop: '', //the rootpath of static resource during develop phase
online: '', //the rootpath of static resource at online phase
test: '' //the rootpath of static resource at test phase
},
//need to deploy then required
deploy: {
path: '', //the folder path which contains the files need to be pushed to the repository
static: '', ////the folder path which contains the static files need to be pushed to the repository
giturl: '', //git repository url.not required
git: {
test: 'test', //test repository
online: 'deploy' //online repository
}
}
};