open-nomad/ui/lib/bulma/index.js

34 lines
687 B
JavaScript
Raw Normal View History

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',
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)',
});
},
};