forked from javallone/regexper-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
41 lines (40 loc) · 1.09 KB
/
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
var path = require('path'),
_ = require('lodash'),
es6ify = require('es6ify'),
buildRoot = process.env.BUILD_PATH || './build',
buildPath = _.bind(path.join, path, buildRoot);
module.exports = {
titles: {
'_': 'Regexper',
'changelog.html': 'Regexper - Changelog',
'documentation.html': 'Regexper - Documentation',
'404.html': 'Regexper - Page Not Found'
},
buildRoot: buildRoot,
buildPath: buildPath,
templateFile: './template.html',
globs: {
other: './src/**/*.!(html|scss|js|peg)',
html: './src/**/*.html',
sass: './src/**/*.scss',
js: ['./src/**/*.js', './src/**/*.peg'],
spec: './spec/**/*_spec.js'
},
compass: {
sass: './src/sass',
css: buildPath('css'),
javascript: buildPath('js'),
font: buildPath('font'),
sourcemap: true
},
browserify: {
basedir: './src/js',
debug: true,
fullPaths: false,
entries: [es6ify.runtime],
prebundle: function(bundle) {
bundle.transform(require('./lib/canopy-transform'));
bundle.transform(es6ify.configure(/^(?!.*node_modules)+.+\.js$/));
}
}
};