forked from oliverbarnes/old-participate-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Brocfile.js
94 lines (77 loc) · 2.02 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
// Mocha support
var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
var app = new EmberApp({
name: require('./package.json').name,
minifyCSS: {
enabled: true,
options: {}
},
sassOptions: {
includePaths: require('node-neat').with('app/styles/bitters')
},
getEnvJSON: require('./config/environment')
});
// Mocha support: JSHint tests are current QUnit and fail to run
app.hinting = false;
//
// Use this to add additional libraries to the generated output files.
app.import('vendor/ember-data/ember-data.js');
app.import('vendor/ember-validations/index.js');
// If the library that you are including contains AMD or ES6 modules that
// you would like to import into your application please specify an
// object with the list of modules as keys along with the exports of each
// module as its value.
app.import('vendor/ic-ajax/dist/named-amd/main.js', {
'ic-ajax': [
'default',
'defineFixture',
'lookupFixture',
'raw',
'request',
]
});
// more Mocha support
var mochaFiles = pickFiles('vendor', {
srcDir: '/mocha',
files: [
'mocha.css', 'mocha.js'
],
destDir: '/assets/'
});
var chaiFiles = pickFiles('vendor', {
srcDir: '/chai',
files: [
'chai.js'
],
destDir: '/assets/'
});
var sinonFiles = pickFiles('vendor', {
srcDir: '/sinonjs-built/pkg',
files: [
'sinon.js'
],
destDir: '/assets/'
});
var sinonChaiFiles = pickFiles('vendor', {
srcDir: '/sinon-chai/lib',
files: [
'sinon-chai.js'
],
destDir: '/assets/'
});
var mochaAdapter = pickFiles('vendor', {
srcDir: '/ember-mocha-adapter',
files: [
'adapter-qunit.js'
],
destDir: '/assets/'
});
var testTrees = mergeTrees([mochaFiles, mochaAdapter, chaiFiles, sinonFiles, sinonChaiFiles], {
overwrite: true
});
var fullTree = mergeTrees([app.toTree(), testTrees]);
module.exports = fullTree;
//