Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

NPM publish example missing? #8

Open
rookboom opened this issue Sep 26, 2017 · 3 comments
Open

NPM publish example missing? #8

rookboom opened this issue Sep 26, 2017 · 3 comments

Comments

@rookboom
Copy link

I am looking for the example the npm helper example that is mentioned here:

https://www.npmjs.com/package/fable-helpers-sample

I would like to introduce Fable at work by moving some F# code currently running on the server to the browser. Our team uses Typescript and is unlikely to start using F# for frontend development. However, if I can package the code as an npm module that we can use from typescript, that could probably be a foot in the door to demonstrate the benefits of running F# code on the client.

@alfonsogarciacaro
Copy link
Member

You're right, I removed it because the instructions had to be updated. I'll publish it again so you can convince your team to use F# libraries in the frontend ;) Thanks for the reminder!

@rookboom
Copy link
Author

Thanks. And thank you for Fable. It is such a gift to the F# community. :-)

When I package my Fable module, would I need to create the typescript bindings for the interface or is this generated?

@alfonsogarciacaro
Copy link
Member

Unfortunately, this is not possible at the moment, you need to write the TS declarations manually. A similar topic is discussed in slogsdon/Fable.Template.JavaScriptLibrary#3 (comment).

BTW, that repo, though it still requires some work probably, is also an example of writing a Fable project that's also exposed as a JS library.

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

No branches or pull requests

2 participants