-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
40 lines (40 loc) · 1.46 KB
/
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
31
32
33
34
35
36
37
38
39
40
/* jshint node: true */
'use strict';
var nodeSass = require('node-sass');
module.exports = {
name: 'ember-notif-hub',
included: function (app) {
this._super.included.apply(this, arguments);
if (!app.sassOptions) {
app.sassOptions = {};
console.log('NO INCLUDE PATH');
app.sassOptions.includePaths = [];
}
app.sassOptions.nodeSass = nodeSass;
console.log('adding to INCLUDE!');
app.sassOptions.includePaths.push('app/styles');
this.ui.writeLine('Including Ember Notification Hub PNG Icons...');
// these come from the material-icons bower package
// but including the icon font woul dhadd up to 400-500kb to the app
app.import('vendor/icons/ic_done_white_24dp_2x.png', {
destDir: 'icons'
});
app.import('vendor/icons/ic_error_outline_white_24dp_2x.png', {
destDir: 'icons'
});
app.import('vendor/icons/ic_more_vert_white_24dp_2x.png', {
destDir: 'icons'
});
},
afterInstall: function () {
// Add addons to package.json and run defaultBlueprint
return this.addAddonsToProject({
// a packages array defines the addons to install
packages: [
// name is the addon name, and target (optional) is the version
{name: 'ember-localstorage-adapter'},
{name: 'ember-cli-sass'}
]
});
}
};