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

Few questions #5

Open
gbougeard opened this issue Feb 20, 2014 · 8 comments
Open

Few questions #5

gbougeard opened this issue Feb 20, 2014 · 8 comments

Comments

@gbougeard
Copy link

hello (bonjour),

  • the dartEntryPoints listed in the build.sbt file are really entry points, I mean there is no need to add all dart files they use (includes) ?
@cheleb
Copy link
Owner

cheleb commented Feb 20, 2014

Yes.

On Thu, Feb 20, 2014 at 12:20 PM, Grégory BOUGEARD <[email protected]

wrote:

hello (bonjour),

  • the dartEntryPoints listed in the build.sbt file are really entry
    points, I mean there is no need to add all dart files they use (includes) ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/5
.

"Computers are useless. They can only give you answers."

  • Pablo Picasso -

@gbougeard
Copy link
Author

I have some trouble :
I made the following tree :
web
|--lib
|--domain.dart
|--component
|--cmp
|--my_cmp.css
|--my_cmp.html
|--my_cmp.dart
|--main.dart
|--opinions.html

I just added the main.dart in the entryPoints and the my_cmp.dart seems to be well compiled.
Unfortunately I'm having 404 on my_cmp.css and my_html.css

[info] application - GET /assets/packages/play_dart/component/opinion/opinion_component.css took 2ms and returned 404
[info] application - GET /assets/packages/play_dart/component/opinion/opinion_component.html took 2ms and returned 404

Do you have any idea of what could be wrong?

@cheleb
Copy link
Owner

cheleb commented Feb 20, 2014

Did you tried https://github.com/cheleb/play2dart ?

On Thu, Feb 20, 2014 at 12:43 PM, Grégory BOUGEARD <[email protected]

wrote:

I have some trouble :
I made the following tree :
web
|--lib
|--domain.dart
|--component
|--cmp
|--my_cmp.css
|--my_cmp.html
|--my_cmp.dart
|--main.dart
|--opinions.html

I just added the main.dart in the entryPoints and the my_cmp.dart seems to
be well compiled.
Unfortunately I'm having 404 on my_cmp.css and my_html.css

[info] application - GET
/assets/packages/play_dart/component/opinion/opinion_component.css took 2ms
and returned 404
[info] application - GET
/assets/packages/play_dart/component/opinion/opinion_component.html took
2ms and returned 404

Do you have any idea of what could be wrong?


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-35611986
.

"Computers are useless. They can only give you answers."

  • Pablo Picasso -

@gbougeard
Copy link
Author

yep. the basic stuff works. I wanted to structure a little bit my code...

@gbougeard
Copy link
Author

gotcha!

the trick :

  • move lib directory at root level
  • import lib content with import 'package:mypkg/myfile.dart' (if myfile.dart is in lib dir)

@cheleb
Copy link
Owner

cheleb commented Feb 20, 2014

That's perfectly right !
Dart layout is quite rigid ...
Please note the:

dartDev := true

in build.sbt this option will also deploy the dart file (to use with
dartium). This option is mandatory to work with polymer (new web_ui) and
dartium. I need to refactor the plugin to support the new "pub build".

Cheers,

Olivier

On Thu, Feb 20, 2014 at 1:47 PM, Grégory BOUGEARD
[email protected]:

gotcha!

the trick :

  • move lib directory at root level
  • import lib content with import 'package:mypkg/myfile.dart' (if
    myfile.dart is in lib dir)


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-35617831
.

"Computers are useless. They can only give you answers."

  • Pablo Picasso -

@gbougeard
Copy link
Author

I'm an absolute noob in dart, so maybe my questions are silly ;)

@cheleb
Copy link
Owner

cheleb commented Feb 20, 2014

:)
No problem

On Thu, Feb 20, 2014 at 2:07 PM, Grégory BOUGEARD
[email protected]:

I'm an absolute noob in dart, so maybe my questions are silly ;)


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-35619227
.

"Computers are useless. They can only give you answers."

  • Pablo Picasso -

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

No branches or pull requests

2 participants