npm install dart2jsaas
|20||downloads in the last day|
|565||downloads in the last week|
|1 345||downloads in the last month|
|Version||0.0.12 last updated 2 months ago|
|Dependencies||mkdirp, q, q-io|
It is designed to seamlessly port Dartium-centric workflows to production (JS-only) browsers.
How It Works
Don't Repeat Yourself. One Configuration
dart2jsaas allow you to use the same deployment configuration for both Dartium and dart2js. Since dart2jsaas does not depend on the filesystem, it works with on-the-fly generated Dart code and configurations where code is served from multiple locations.
The basic use-case is to listen for
main.dart.js HTTP requests, compile
main.dart and return the response.
This setup works well with dart.js' fallback scheme where if it can't find a Dart VM, it simply requests
x.dart.js in place of the
x.dart script tag.
Middleware for connect / express is included.
Simple, command-line integration is also possible. See cmdline.js.
To see dart2jsaas in action, check out karma and the karma-dart project.
We are using jasmine-node.
npm install jasmine-node -g jasmine-node spec/