atrauzzi / grunt-dart2js Goto Github PK
View Code? Open in Web Editor NEWCompile Dart to JavaScript.
License: MIT License
Compile Dart to JavaScript.
License: MIT License
In order for the default location of dart2js to work, it must end in '.bat'. Here is the dart2js grunt task that I created to fix the issue in my build so it would work on both mac and windows.
dart2js: {
//
// options: assumes dart2js executable is in default location
//
options: {
"dart2js_bin": (process.platform == 'win32')
? (process.env['USERPROFILE'] + "/dart/dart-sdk/bin/dart2js.bat")
: (process.env['USER'] + "/dart/dart-sdk/bin/dart2js")
},
compile: {
files: {'src/js/life.dart.js': 'src/dart/main.dart'}
}
}
Here are the dependancies in my package.json file; I'm using grunt-dart2js 0.0.5
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-less": "~0.8.2",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-dart2js": "0.0.5",
"grunt-ts": "^1.11.7"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.