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

Configure typings for external use #289

Merged
merged 4 commits into from
Jul 8, 2016

Conversation

edgarmueller
Copy link
Contributor

@edgarmueller edgarmueller commented Jul 7, 2016

Export typings and put generated source into root folder (also update .gitignore). This enables API consumers to do imports a-la import { ... } from "jsonforms".

I'm not sure whether all required types/values are exported but I'd add those opportunistically.

@edgarmueller
Copy link
Contributor Author

edgarmueller commented Jul 7, 2016

@eneufeld I tested this by compiling locally and consuming the result in another NPM project.

export class JsonFormsDirective implements ng.IDirective {
static $inject = ['$templateCache'];
constructor($templateCache: ng.ITemplateCacheService) {
$templateCache.put('form.html', formTemplate);
Copy link
Member

Choose a reason for hiding this comment

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

why not do this in a run block, just like in all other cases?

@eneufeld
Copy link
Member

eneufeld commented Jul 7, 2016

The jsonforms.ts is now a mixup of two schema definitions (ui-schema and json-schema) and our exports, is this a good way to do it?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 89.042% when pulling 631ee57 on edgarmueller:master into 47bcf56 on eclipsesource:master.

@eneufeld
Copy link
Member

eneufeld commented Jul 8, 2016

Looks good,
did't you have typescript warnings for using " in the imports instead of ' ?

@edgarmueller
Copy link
Contributor Author

I probably do..will update 😅

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 89.042% when pulling 9d694e9 on edgarmueller:master into 47bcf56 on eclipsesource:master.

@eneufeld
Copy link
Member

eneufeld commented Jul 8, 2016

looks good, thank you

@eneufeld eneufeld merged commit f035efd into eclipsesource:master Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants