-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoonboots_config.js
45 lines (43 loc) · 1.15 KB
/
moonboots_config.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
var config = require('getconfig');
var stylizer = require('stylizer');
var templatizer = require('templatizer');
var bowerDir = __dirname + '/bower_components';
var appDir = __dirname + '/client';
var cssDir = __dirname + '/stylesheets';
module.exports = {
appPath: '/{p*}',
moonboots: {
jsFileName: 'bike',
cssFileName: 'bike',
main: appDir + '/app.js',
developmentMode: config.isDev,
libraries: [],
stylesheets: [
bowerDir + '/skeleton/css/normalize.css',
bowerDir + '/skeleton/css/skeleton.css',
cssDir + '/app.css'
],
browserify: {
debug: config.isDev
},
beforeBuildJS: function () {
if (config.isDev) {
templatizer(__dirname + '/templates', appDir + '/templates.js');
}
},
beforeBuildCSS: function (done) {
// We only want to do this in dev mode. If it's not in dev mode, this
// function will only be run once.
if (!config.isDev) {
done();
return;
}
stylizer({
infile: cssDir + '/app.styl',
outfile: cssDir + '/app.css',
development: true,
watch: cssDir + '/**/*.styl'
}, done);
}
}
};