Discussion:
[dart-misc] Dart JS Stub repo
MicroTransactionsMatterToo
2016-11-15 22:51:08 UTC
Permalink
Hey, I've noticed that it's possible to generate JS stubs for Dart, and was
wondering if there was a repo like DefinitelyTyped
[https://github.com/DefinitelyTyped/DefinitelyTyped] for Dart stubs. If
not, would it be alright to make one. I feel that having JS stubs might
encourage more developers over if they can use their normal JS libs from
inside Dart easily

Many Thanks,
Ennis Massey
(***@gmail.com)
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Matan Lurey
2016-11-15 23:37:02 UTC
Permalink
Not a terrible idea, though I think mostly we've relied on individual pub
packages.

Do you mean a repository that would have lots of common JS stubs? That is
an interesting idea.

On Tue, Nov 15, 2016 at 3:33 PM MicroTransactionsMatterToo <
Post by MicroTransactionsMatterToo
Hey, I've noticed that it's possible to generate JS stubs for Dart, and
was wondering if there was a repo like DefinitelyTyped [
https://github.com/DefinitelyTyped/DefinitelyTyped] for Dart stubs. If
not, would it be alright to make one. I feel that having JS stubs might
encourage more developers over if they can use their normal JS libs from
inside Dart easily
Many Thanks,
Ennis Massey
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Ennis Massey
2016-11-15 23:39:49 UTC
Permalink
Yeah. I’ve just talked it over in Slack, and it looks like it should be doable for HTML included JS. Apparently the require in ES6 is not very clearly defined yet, so they aren’t sure how to compile it to JS
I’m going to be using individual Pub packages, but they’ll all be named like this : ${js_lib}_stub

Many Thanks,
Ennis Massey
***@gmail.com
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Jacob Richman' via Dart Misc
2016-11-17 01:16:18 UTC
Permalink
I think publishing more Dart stubs for JS libraries is a good idea.
Perhaps use
${js_lib}_js
or
${Js_lib}_facade
so it is clear from the library name that the library contains js facades.

-Jacob
Post by Ennis Massey
Yeah. I’ve just talked it over in Slack, and it looks like it should be
doable for HTML included JS. Apparently the require in ES6 is not very
clearly defined yet, so they aren’t sure how to compile it to JS
I’m going to be using individual Pub packages, but they’ll all be named
like this : ${js_lib}_stub
Many Thanks,
Ennis Massey
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Joe Blue
2016-11-17 10:41:27 UTC
Permalink
I was just thinking about this yesterday too - great idea.

Also i think these 2 repos below have a relationship to this discussion:
https://github.com/yjbanov/butterfly
https://github.com/Workiva/over_react

Both allow you to reuse a GUI architectural pattern.





On Thu, Nov 17, 2016 at 2:16 AM 'Jacob Richman' via Dart Misc <
Post by 'Jacob Richman' via Dart Misc
I think publishing more Dart stubs for JS libraries is a good idea.
Perhaps use
${js_lib}_js
or
${Js_lib}_facade
so it is clear from the library name that the library contains js facades.
-Jacob
Yeah. I’ve just talked it over in Slack, and it looks like it should be
doable for HTML included JS. Apparently the require in ES6 is not very
clearly defined yet, so they aren’t sure how to compile it to JS
I’m going to be using individual Pub packages, but they’ll all be named
like this : ${js_lib}_stub
Many Thanks,
Ennis Massey
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...