When I add simple dart files anywhere in my existing Eclipse project, what do I have to do and what will be the limitiations and work arounds in order to make it work.
Update:
Some additional information might be helpful. What I use is a custom web server serving dart and js as simple files (dynamically on request). So I can not simply follow the dart way of things. The dart files would be rather sources only being used during development and converted to js files before the actual check in of the new version.
Therefore I would like to add the dart files in exactly the same mannor I add my other source. So i would love to have something like src/main/dart and src/test/dart or something.
I would also like being able to run dart in the stand alone vm (stand alone application) instead of the web / browser to simplify some development steps like the development of the model / business layer and add simplified testing. Also we want to evaluate if there is the possibility to start dart side processes on the server for additional simplification.
So the scenario is:
- Put dart files anywhere (especially in the source tree)
- The web framework is non-standard programmer friendly, we can simply add resources from anywhere under virtual directories (src/main/dart -> localhost/dart/)
- The dart files will be converted to js prior to checkin
- Dart should be able to pickup the right files on debug
- Testing and debugging should be possible in standalone mode and in using Dartium
So how can I do this what should I be able to configure.
Update2:
Dart will be used as a JavaScript replacement here. So in the end this is a mid-size web project where the JS/Dart code provides the glue to make the pages functional. It also will drive the backend application which might be single paged but its not decided yet. Best would be to see the dart application as of two applications at once where the backedn application is distinct from the front end functionality that is dynamically added as needed.
For the compilation process to JS I would not mind to create a simple program copying files, compile and recopy files and done. Wouldnt take that long since it would be only needed once or twice a day.