2017-09-19 14:47:10 +00:00
|
|
|
/* eslint-env node */
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var path = require('path');
|
|
|
|
var Funnel = require('broccoli-funnel');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'bulma',
|
|
|
|
|
2021-12-28 14:45:20 +00:00
|
|
|
isDevelopingAddon: function () {
|
2017-09-19 14:47:10 +00:00
|
|
|
return true;
|
|
|
|
},
|
|
|
|
|
2021-12-28 14:45:20 +00:00
|
|
|
included: function (app) {
|
2017-09-19 14:47:10 +00:00
|
|
|
this._super.included.apply(this, arguments);
|
|
|
|
|
|
|
|
// see: https://github.com/ember-cli/ember-cli/issues/3718
|
|
|
|
while (typeof app.import !== 'function' && app.app) {
|
|
|
|
app = app.app;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.bulmaPath = path.dirname(require.resolve('bulma'));
|
|
|
|
return app;
|
|
|
|
},
|
|
|
|
|
2021-12-28 14:45:20 +00:00
|
|
|
treeForStyles: function () {
|
2017-09-19 14:47:10 +00:00
|
|
|
return new Funnel(this.bulmaPath, {
|
|
|
|
srcDir: '/',
|
|
|
|
destDir: 'app/styles/bulma',
|
|
|
|
annotation: 'Funnel (bulma)',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|