-
Notifications
You must be signed in to change notification settings - Fork 49
/
jello.js
80 lines (64 loc) · 1.76 KB
/
jello.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
var fis = module.exports = require('fis');
// 让 jello 打头的先加载。
fis.require.prefixes.unshift('jello');
fis.cli.name = 'jello';
fis.cli.info = fis.util.readJSON(__dirname + '/package.json');
fis.cli.help.commands = [ 'release', 'server' ];
fis.config.merge({
namespace: '',
statics: '/static',
templates: '/WEB-INF/views',
server: {
clean: {
exclude: "WEB-INF/lib/**,WEB-INF/web.xml,WEB-INF/tools.xml,WEB-INF/velocity.properties,WEB-INF/views/index.vm,WEB-INF/fis.tld"
}
},
modules: {
parser: {
less: 'less',
sass: 'sass',
scss: 'sass',
tmpl: 'bdtmpl',
po: 'po'
},
preprocessor: {
vm: 'components, extlang',
jsp: 'components, extlang',
html: 'components',
js: 'components',
css: 'components'
},
postprocessor: {
vm: 'require-async',
jsp: 'require-async',
js: 'jswrapper, require-async'
},
prepackager: 'derived',
packager: 'depscombine'
},
roadmap: {
ext: {
less: 'css',
sass: 'css',
scss: 'css',
tmpl: 'js',
po: 'json'
},
path: [/*后续填充*/]
},
settings: {
postprocessor: {
jswrapper: {
type: 'amd'
}
}
},
component: {
skipRoadmapCheck: true
}
});
fis.emitter.once('fis-conf:loaded', function() {
var paths = fis.config.get('roadmap.path', []);
var defaultPaths = fis.config.get('namespace') ? require('./roadmap/with_ns.js') : require('./roadmap/default.js');
paths.push.apply(paths, defaultPaths);
});