Discussion:
[dart-misc] Dart Dev Compiler, pub serve, Hello World...
Danny Tuppeny
2016-08-13 10:46:24 UTC
Permalink
I'm starting to think about how to add support for web apps to Dart Code
<https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code>. I
have little experience with Dart web apps nor DDC (I'm aware DDC is still
in dev) so I have a lot of questions!

I can't find much info on DDC but I figured maybe there are people on this
list using it so maybe I can get some answers!

- What does a Hello World app look like if you're using DDC? (What's in
pubspec? What does the script tag in the HTML file point at?)
- Will pub serve work nicely with DDC?
- Can DDC (or pub, or whatever) automatically recompile on changes?

(and there are more questions here
<https://github.com/Dart-Code/Dart-Code/issues/80>)
--
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.
Danny Tuppeny
2016-08-13 10:48:39 UTC
Permalink
Hmmm, found this (added 15 days ago):

https://github.com/dart-lang/dev_compiler/blob/15f19aab3674915942b02f120f111c9c5c32815c/web/main.dart#L11

/// Additionally, these commands are being considered
/// * link: combines several JS modules into a single JS file
/// * build: compiles & links a set of code, automatically determining
/// appropriate groupings of libraries to combine into JS modules
/// * watch: watch a directory and recompile build units automatically
/// * serve: uses `watch` to recompile and exposes a simple static file
server
/// for local development
Post by Danny Tuppeny
I'm starting to think about how to add support for web apps to Dart Code
<https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code>. I
have little experience with Dart web apps nor DDC (I'm aware DDC is still
in dev) so I have a lot of questions!
I can't find much info on DDC but I figured maybe there are people on this
list using it so maybe I can get some answers!
- What does a Hello World app look like if you're using DDC? (What's
in pubspec? What does the script tag in the HTML file point at?)
- Will pub serve work nicely with DDC?
- Can DDC (or pub, or whatever) automatically recompile on changes?
(and there are more questions here
<https://github.com/Dart-Code/Dart-Code/issues/80>)
--
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-08-14 03:25:06 UTC
Permalink
I think the easiest way to start might be the traditional Dartium/dart2js
route while the DDC story ramps up. Will that work?
Post by Danny Tuppeny
https://github.com/dart-lang/dev_compiler/blob/15f19aab3674915942b02f120f111c9c5c32815c/web/main.dart#L11
/// Additionally, these commands are being considered
/// * link: combines several JS modules into a single JS file
/// * build: compiles & links a set of code, automatically determining
/// appropriate groupings of libraries to combine into JS modules
/// * watch: watch a directory and recompile build units automatically
/// * serve: uses `watch` to recompile and exposes a simple static file
server
/// for local development
Post by Danny Tuppeny
I'm starting to think about how to add support for web apps to Dart Code
<https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code>.
I have little experience with Dart web apps nor DDC (I'm aware DDC is still
in dev) so I have a lot of questions!
I can't find much info on DDC but I figured maybe there are people on
this list using it so maybe I can get some answers!
- What does a Hello World app look like if you're using DDC? (What's
in pubspec? What does the script tag in the HTML file point at?)
- Will pub serve work nicely with DDC?
- Can DDC (or pub, or whatever) automatically recompile on changes?
(and there are more questions here
<https://github.com/Dart-Code/Dart-Code/issues/80>)
--
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.
Danny Tuppeny
2016-08-14 07:02:45 UTC
Permalink
It would probably work, but it seems like wasted effort if DDC is useable.
Dartium also adds complications; we have to make sure the user has it, make
sure it's launched with --user-data-dir to avoid trashing their Chrome
profile. Dart2js doesn't output very debuggable JS (does it even do
incremental compiles?)

I guess it depends how far off DDC is being useable; if it's a long way,
maybe it'd worth it, but I was under the impression it was working
reasonably well?
Post by Matan Lurey
I think the easiest way to start might be the traditional Dartium/dart2js
route while the DDC story ramps up. Will that work?
Post by Danny Tuppeny
https://github.com/dart-lang/dev_compiler/blob/15f19aab3674915942b02f120f111c9c5c32815c/web/main.dart#L11
/// Additionally, these commands are being considered
/// * link: combines several JS modules into a single JS file
/// * build: compiles & links a set of code, automatically determining
/// appropriate groupings of libraries to combine into JS modules
/// * watch: watch a directory and recompile build units automatically
/// * serve: uses `watch` to recompile and exposes a simple static file
server
/// for local development
Post by Danny Tuppeny
I'm starting to think about how to add support for web apps to Dart Code
<https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code>.
I have little experience with Dart web apps nor DDC (I'm aware DDC is still
in dev) so I have a lot of questions!
I can't find much info on DDC but I figured maybe there are people on
this list using it so maybe I can get some answers!
- What does a Hello World app look like if you're using DDC? (What's
in pubspec? What does the script tag in the HTML file point at?)
- Will pub serve work nicely with DDC?
- Can DDC (or pub, or whatever) automatically recompile on changes?
(and there are more questions here
<https://github.com/Dart-Code/Dart-Code/issues/80>)
--
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.
Matan Lurey
2016-08-14 17:46:57 UTC
Permalink
IMO I'd support Dartium at minimum, even if it has some small
complications, because of ease of use and most Dart developers use it today.

DDC is definitely usable, but I don't have a good understanding of the
external story yet.
Post by Danny Tuppeny
It would probably work, but it seems like wasted effort if DDC is useable.
Dartium also adds complications; we have to make sure the user has it, make
sure it's launched with --user-data-dir to avoid trashing their Chrome
profile. Dart2js doesn't output very debuggable JS (does it even do
incremental compiles?)
I guess it depends how far off DDC is being useable; if it's a long way,
maybe it'd worth it, but I was under the impression it was working
reasonably well?
Post by Matan Lurey
I think the easiest way to start might be the traditional Dartium/dart2js
route while the DDC story ramps up. Will that work?
Post by Danny Tuppeny
https://github.com/dart-lang/dev_compiler/blob/15f19aab3674915942b02f120f111c9c5c32815c/web/main.dart#L11
/// Additionally, these commands are being considered
/// * link: combines several JS modules into a single JS file
/// * build: compiles & links a set of code, automatically determining
/// appropriate groupings of libraries to combine into JS modules
/// * watch: watch a directory and recompile build units automatically
/// * serve: uses `watch` to recompile and exposes a simple static
file server
/// for local development
Post by Danny Tuppeny
I'm starting to think about how to add support for web apps to Dart Code
<https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code>.
I have little experience with Dart web apps nor DDC (I'm aware DDC is still
in dev) so I have a lot of questions!
I can't find much info on DDC but I figured maybe there are people on
this list using it so maybe I can get some answers!
- What does a Hello World app look like if you're using DDC?
(What's in pubspec? What does the script tag in the HTML file point at?)
- Will pub serve work nicely with DDC?
- Can DDC (or pub, or whatever) automatically recompile on changes?
(and there are more questions here
<https://github.com/Dart-Code/Dart-Code/issues/80>)
--
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
--
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.
Danny Tuppeny
2016-08-14 20:43:14 UTC
Permalink
Post by Matan Lurey
IMO I'd support Dartium at minimum, even if it has some small
complications, because of ease of use and most Dart developers use it today.
Hmmm, I was actually hoping to avoid it because I don't think "ease of use"
is one of its selling points!... User needs to:

- Download Dartium
- Extract it somewhere
- Decide where to put --user-data-dir (if they don't read about this, or
I don't tell them, they can trash their Chrome profile)
- Edit my config to say where Dartium is, where their dartium profile is
- Open web project
- Press F5/the "Run" button

The experience I'm going for is:

- Open web project
- Press F5/the "Run" button

I really don't want to waste effort on Dartium or Dart2js if they're not
the long-term plan. If DDC is usable and I'm building a new tool, it seems
like it'd be good for us both if it was supported :-)


DDC is definitely usable, but I don't have a good understanding of the
Post by Matan Lurey
external story yet.
Is there anyone I can poke for a little info? Just a hello world web
application and the command(s) to run/rebuild it would be a huge start! :)
--
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.
'Vijay Menon' via Dart Misc
2016-08-14 22:40:00 UTC
Permalink
Post by Danny Tuppeny
Post by Matan Lurey
IMO I'd support Dartium at minimum, even if it has some small
complications, because of ease of use and most Dart developers use it today.
Hmmm, I was actually hoping to avoid it because I don't think "ease of
- Download Dartium
- Extract it somewhere
- Decide where to put --user-data-dir (if they don't read about this,
or I don't tell them, they can trash their Chrome profile)
- Edit my config to say where Dartium is, where their dartium profile is
- Open web project
- Press F5/the "Run" button
- Open web project
- Press F5/the "Run" button
I really don't want to waste effort on Dartium or Dart2js if they're not
the long-term plan. If DDC is usable and I'm building a new tool, it seems
like it'd be good for us both if it was supported :-)
DDC is definitely usable, but I don't have a good understanding of the
Post by Matan Lurey
external story yet.
Is there anyone I can poke for a little info? Just a hello world web
application and the command(s) to run/rebuild it would be a huge start! :)
DDC is more a low-level compiler than a full-fledged build tool, so it's a
little complicated to use right now. There is no pub integration. (We've
been focusing on integrating with internal build tools.)

I did update the usage doc though:

https://github.com/dart-lang/dev_compiler/blob/master/USAGE.md
Post by Danny Tuppeny
--
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.
Danny Tuppeny
2016-08-15 05:36:23 UTC
Permalink
Great, I'll have a go and see where I can get. Thanks!
Post by 'Vijay Menon' via Dart Misc
Post by Danny Tuppeny
Post by Matan Lurey
IMO I'd support Dartium at minimum, even if it has some small
complications, because of ease of use and most Dart developers use it today.
Hmmm, I was actually hoping to avoid it because I don't think "ease of
- Download Dartium
- Extract it somewhere
- Decide where to put --user-data-dir (if they don't read about this,
or I don't tell them, they can trash their Chrome profile)
- Edit my config to say where Dartium is, where their dartium profile is
- Open web project
- Press F5/the "Run" button
- Open web project
- Press F5/the "Run" button
I really don't want to waste effort on Dartium or Dart2js if they're not
the long-term plan. If DDC is usable and I'm building a new tool, it seems
like it'd be good for us both if it was supported :-)
DDC is definitely usable, but I don't have a good understanding of the
Post by Matan Lurey
external story yet.
Is there anyone I can poke for a little info? Just a hello world web
application and the command(s) to run/rebuild it would be a huge start! :)
DDC is more a low-level compiler than a full-fledged build tool, so it's a
little complicated to use right now. There is no pub integration. (We've
been focusing on integrating with internal build tools.)
https://github.com/dart-lang/dev_compiler/blob/master/USAGE.md
Post by Danny Tuppeny
--
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...