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
[WIP] fable-core.js generation from TypeScript #240
[WIP] fable-core.js generation from TypeScript #240
Conversation
…pt). Initial proof of concept: List and (partial) Seq class only.
Nice 👍 |
- Renames es2015-mini.ts to fable-core.tsc.ts
// TEMP: Builds fable-core.tsc.js from TypeScript sources. | ||
// Requires 'npm install babel-preset-es2015' in src/fable/Fable.Core | ||
"es2015-mini.ts --target ES2015 --outDir . --declaration" |> runWrapped "tsc" | ||
"es2015-mini.js -o fable-core.tsc.js" |> runWrapped "babel" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh oh... lines 274-278 shouldn't be here 😭
…fable-core - Fix conflicts with fable-compiler#241
…fable-core - Fix conflicts with fable-compiler#241 (again :) )
…ed) to fable-core.tsc.ts.
🎉 |
ys.[0] + ys.[1] | ||
|> equal 3 | ||
ys.[0] + ys.[1] + ys.[2] + ys.[3] + ys.[4] | ||
|> equal 15. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add this as a different assertion instead of replacing the old one?
Done! Sorry, again. It's really better this way. |
Sorry, I tried to merge this but there're conflicts and when trying to rebase the branch with master I got some weird conflicts in the |
Looking at it now... |
Alea iacta est, I'm merging this 😉 |
Initial proof-of-concept to port
es2015.js
to TypeScript.Far from complete.
List
and (partial)Seq
classes only.To build: From project root folder, run:
tsc src/fable/Fable.Core/es2015-mini.ts --target ES2015 --outDir src/fable/Fable.Core --declaration
This will create
Discussion at #232