2014-11-30 19:39:56 +00:00
|
|
|
var path = require('path'),
|
|
|
|
_ = require('lodash'),
|
2014-12-04 23:34:35 +00:00
|
|
|
es6ify = require('es6ify'),
|
2014-11-30 19:39:56 +00:00
|
|
|
buildRoot = process.env.BUILD_PATH || './build',
|
|
|
|
buildPath = _.bind(path.join, path, buildRoot);
|
|
|
|
|
|
|
|
module.exports = {
|
2014-12-21 06:42:48 +00:00
|
|
|
titles: {
|
|
|
|
'_': 'Regexper',
|
|
|
|
'changelog.html': 'Regexper - Changelog',
|
2014-12-22 00:59:07 +00:00
|
|
|
'documentation.html': 'Regexper - Documentation',
|
|
|
|
'404.html': 'Regexper - Page Not Found'
|
2014-12-21 06:42:48 +00:00
|
|
|
},
|
2014-11-30 19:39:56 +00:00
|
|
|
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,
|
2014-12-04 23:34:35 +00:00
|
|
|
entries: [es6ify.runtime],
|
2014-11-30 19:39:56 +00:00
|
|
|
prebundle: function(bundle) {
|
|
|
|
bundle.transform(require('./lib/canopy-transform'));
|
|
|
|
bundle.transform(es6ify.configure(/^(?!.*node_modules)+.+\.js$/));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|