Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OC-140] Declarative templates initialisation on a registry level #617

Merged
merged 2 commits into from
Aug 30, 2017

Conversation

nickbalestra
Copy link
Contributor

Templates declaration is now more explicit when configuring the registry (same API as per the node client):

conf = {
...
templates: [require('oc-template-react')]
...
}

@matteofigus matteofigus changed the title [OC-140] [OC-140] Declarative templates initialisation on a registry level Aug 30, 2017
Copy link
Member

@matteofigus matteofigus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of changes to get started

});

return {
templates,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove templates as we don't need it anymore

const S3 = require('./s3');
const settings = require('../../resources/settings');
const strings = require('../../resources');
const validator = require('./validators');
const versionHandler = require('./version-handler');
const registerTemplates = require('./register-templates');

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alphabetic lol 💩

describe('registry : domain : register-templates', () => {
const registerTemplates = require('../../src/registry/domain/register-templates.js');

describe('when templates get registerd without additional templates', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@matteofigus matteofigus merged commit 6651c60 into master Aug 30, 2017
@matteofigus matteofigus deleted the OC-140 branch August 30, 2017 16:55
@matteofigus
Copy link
Member

Merged. @nickbalestra can you publish and update the wiki? Cheers.

@nickbalestra
Copy link
Contributor Author

@matteofigus done (0.41.0 out and wiki updated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants