gulp-dart

0.2.5 • Public • Published

gulp-dart

NPM version Dependency Status

Compile Dart to JavaScript using dart2js

Preinstall

You need install dartsdk at first. Go to https://www.dartlang.org/downloads/ for more information.

If you already have it installed and got ENOENT error then read this thread.

Install

$ npm install --save gulp-dart

Usage

var gulp = require("gulp");
var dart = require("gulp-dart");

gulp.task("default", function() {
  return gulp
    .src('web/*.dart')
    .pipe(dart({
      "dest": "./dist",
      "minify": "true"
    }))
    .pipe(gulp.dest('./'))
});

Supported dart2js options

checked                  // Insert runtime type checks and enable assertions (checked mode)
minify                   // Generate minified output
verbose                  // Display verbose information
analyze-all              // Analyze all code
analyze-only             // Analyze but do not generate code
analyze-signatures-only  // Skip analysis of method bodies and field initializers
suppress-warnings        // Do not display any warnings
fatal-warnings           // Treat warnings as compilation errors
suppress-hints           // Do not display any hints
enable-diagnostic-colors // Add colors to diagnostic messages
no-source-maps           // Do not generate a source map file
terse                    // Emit diagnostics without suggestions for how to get rid of the diagnosed problems
csp                      // Disables dynamic generation of code in the generated output
preserve-uris            // Preserve the source URIs in the reflection data
show-package-warnings    // Show warnings and hints generated from packages

License

MIT © Alexander Gudulin

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.5
    39
    • latest

Version History

Package Sidebar

Install

npm i gulp-dart

Weekly Downloads

39

Version

0.2.5

License

MIT

Unpacked Size

6.47 kB

Total Files

7

Last publish

Collaborators

  • agudulin