@cardstack/base-card
Version:
Base Card for Cardstack platform
30 lines • 1.11 kB
JavaScript
;
const path_1 = require("path");
const fs_1 = require("fs");
const embeddedCss = fs_1.readFileSync(path_1.join(__dirname, 'css', 'embedded.css'), 'utf-8');
const isolatedCss = fs_1.readFileSync(path_1.join(__dirname, 'css', 'isolated.css'), 'utf-8');
let card = {
data: {
id: 'local-hub::@cardstack/base-card',
type: 'cards',
// TODO after we have the ability to perform ember-cli builds on browser assets emitted from cards
// make sure to move the default card component js and template into the base card.
attributes: {
'isolated-css': isolatedCss,
'embedded-css': embeddedCss
},
relationships: {
'adopted-from': { data: null },
fields: { data: [] },
model: { data: { type: 'local-hub::@cardstack/base-card', id: 'local-hub::@cardstack/base-card' } }
}
},
included: [
{
id: 'local-hub::@cardstack/base-card',
type: 'local-hub::@cardstack/base-card'
}
]
};
module.exports = card;
//# sourceMappingURL=index.js.map