0.2.5 • Published 4 years ago

gulp-dart v0.2.5

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

0.2.5

4 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago