-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.js
30 lines (22 loc) · 834 Bytes
/
index.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
/* jshint node: true */
'use strict';
var path = require('path');
module.exports = {
name: 'ember-cli-chartist',
included: function included(app) {
this.app = app;
var options = app.options['ember-cli-chartist'] || {},
chartistPath = path.join(app.bowerDirectory, 'chartist', 'dist');
if (options.useCustomCSS) {
app.options.sassOptions = app.options.sassOptions || {};
app.options.sassOptions.includePaths = app.options.sassOptions.includePaths || [];
app.options.sassOptions.includePaths.push(path.join(
chartistPath, 'scss'));
app.options.sassOptions.includePaths.push(path.join(
chartistPath, 'scss', 'settings'));
} else {
app.import(path.join(chartistPath, 'chartist.min.css'));
}
app.import(path.join(chartistPath, 'chartist.js'));
}
};