bd19966cab
Currently getting an error about $traceurRuntime being undefined while running Karma tests. This will need to be investigated.
36 lines
932 B
JavaScript
36 lines
932 B
JavaScript
var path = require('path'),
|
|
_ = require('lodash'),
|
|
es6ify = require('es6ify'),
|
|
buildRoot = process.env.BUILD_PATH || './build',
|
|
buildPath = _.bind(path.join, path, buildRoot);
|
|
|
|
module.exports = {
|
|
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$/));
|
|
}
|
|
}
|
|
};
|