Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agudulin/gulp-dart
Gulp plugin for Dart
https://github.com/agudulin/gulp-dart
Last synced: about 2 months ago
JSON representation
Gulp plugin for Dart
- Host: GitHub
- URL: https://github.com/agudulin/gulp-dart
- Owner: agudulin
- License: mit
- Archived: true
- Created: 2015-08-12T11:51:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T12:09:21.000Z (over 2 years ago)
- Last Synced: 2024-09-14T17:46:16.667Z (3 months ago)
- Language: JavaScript
- Size: 85.9 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-dart - gulp-dart - A gulp plugin for compiling Dart code to JavaScript using dart2js.[<img src="https://travis-ci.org/agudulin/gulp-dart.svg?branch=master">](https://travis-ci.org/agudulin/gulp-dart) (Development-Tools)
- awesome-dart - gulp-dart - A gulp plugin for compiling Dart code to JavaScript using dart2js. (Tools)
README
# gulp-dart
[![NPM version][npm-image]][npm-url]
[![Dependency Status][depstat-image]][depstat-url]> Compile Dart to JavaScript using [dart2js](https://www.dartlang.org/tools/dart2js/)
## Preinstall
You need install `dartsdk` at first. Go to [https://www.dartlang.org/downloads/](https://www.dartlang.org/downloads/) for more information.
If you already have it installed and got ENOENT error then read [this thread](https://github.com/agudulin/gulp-dart/issues/6).
## Install
```sh
$ npm install --save gulp-dart
```## Usage
```js
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
```js
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](http://gudulin.com)
[npm-url]: https://npmjs.org/package/gulp-dart
[npm-image]: https://img.shields.io/npm/v/gulp-dart.svg?style=flat-square[depstat-url]: https://david-dm.org/agudulin/gulp-dart
[depstat-image]: https://david-dm.org/agudulin/gulp-dart.svg?style=flat-square