-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBrocfile.js
35 lines (32 loc) · 927 Bytes
/
Brocfile.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
var Jshint = require('broccoli-jshint');
var Babel = require('broccoli-babel-transpiler');
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var Rollup = require('broccoli-rollup');
var nodeResolveRollup = require('rollup-plugin-node-resolve');
var commonjsRollup = require('rollup-plugin-commonjs');
var hintedColossus = new Jshint('src', {disableTestGenerator: true});
var colossus = new Babel('src', {
presets: ['es2015-native-modules']
});
var faye = new Funnel('node_modules/faye', {
destDir: 'node_modules/faye'
});
var src = mergeTrees([faye, hintedColossus, colossus]);
module.exports = new Rollup(src, {
rollup: {
entry: 'colossus',
plugins: [
nodeResolveRollup({
browser: true,
main: true
}),
commonjsRollup()
],
targets: [{
dest: 'colossus.js',
moduleName: 'Colossus',
format: 'umd'
}]
}
});