open-nomad/ui/lib/bulma/index.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

34 lines
687 B
JavaScript

/* eslint-env node */
'use strict';
var path = require('path');
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'bulma',
isDevelopingAddon: function() {
return true;
},
included: function(app) {
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;
},
treeForStyles: function() {
return new Funnel(this.bulmaPath, {
srcDir: '/',
destDir: 'app/styles/bulma',
annotation: 'Funnel (bulma)',
});
},
};