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

[WIP] fable-core.js generation from TypeScript #240

Merged
merged 13 commits into from Jul 11, 2016

Conversation

fdcastel
Copy link
Contributor

@fdcastel fdcastel commented Jul 8, 2016

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

src/fable/Fable.Core/es2015-mini.js
src/fable/Fable.Core/es2015-mini.d.ts 

Discussion at #232

…pt). Initial proof of concept: List and (partial) Seq class only.
@alfonsogarciacaro
Copy link
Member

Nice 👍

@fdcastel fdcastel changed the title [WIP: DO NOT MERGE] Adds es2015-mini.ts [WIP: DO NOT MERGE] fable-core.js generation from TypeScript Jul 9, 2016
@fdcastel fdcastel mentioned this pull request Jul 9, 2016
// 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"

Copy link
Contributor Author

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 😭

@fdcastel
Copy link
Contributor Author

(...)

  761 passing (3s)

Finished Target: MochaTest
Starting Target: All (==> MochaTest)
Finished Target: All

🎉

@fdcastel fdcastel changed the title [WIP: DO NOT MERGE] fable-core.js generation from TypeScript [WIP] fable-core.js generation from TypeScript Jul 10, 2016
ys.[0] + ys.[1]
|> equal 3
ys.[0] + ys.[1] + ys.[2] + ys.[3] + ys.[4]
|> equal 15.
Copy link
Member

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?

@fdcastel
Copy link
Contributor Author

Done! Sorry, again. It's really better this way.

@alfonsogarciacaro
Copy link
Member

alfonsogarciacaro commented Jul 11, 2016

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 fable-core.tsc.ts file. Could you please fix them? Cheers!

@fdcastel
Copy link
Contributor Author

Looking at it now...

@alfonsogarciacaro
Copy link
Member

Alea iacta est, I'm merging this 😉

@alfonsogarciacaro alfonsogarciacaro merged commit 42399f8 into fable-compiler:master Jul 11, 2016
@fdcastel fdcastel deleted the ts-fable-core branch July 12, 2016 07:03
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.

None yet

2 participants