# gulp-aspnet5

> Gulp utility to build/watch/start ASPNET5 DNX

Latest version **1.0.2** (published 2016-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-aspnet5
pnpm add gulp-aspnet5
yarn add gulp-aspnet5
bun add gulp-aspnet5
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-02-18 |
| First published | 2016-02-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Austin McDaniel |
| Maintainers | amcdnl |
| Keywords | gulp, dnx, aspnet5, dnu, dotnetcore, dotnet |

## Links

- npm: https://www.npmjs.com/package/gulp-aspnet5
- Repository: https://github.com/Swimlane/gulp-aspnet5
- Homepage: https://github.com/Swimlane/gulp-aspnet5#readme
- Issues: https://github.com/Swimlane/gulp-aspnet5/issues
- npm.io page: https://npm.io/package/gulp-aspnet5

## Dependencies (2)

- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [node-notifier](https://npm.io/package/node-notifier.md) ^4.5.0

## Recent versions

- 1.0.2 (latest) — 2016-02-18
- 1.0.1 — 2016-02-18
- 1.0.0 — 2016-02-18

## README

# ASPNET5 Gulp Plugin

GulpJS plugin for ASPNET5 / DNX / DNU / Kestrel that is cross-platform. This plugin does the following:

- Build
- Update
- Start DNX

and with Gulp you can setup watchers for recompiling on the fly and restarting the web server. Similar to [gulp-dnx](https://github.com/tugberkugurlu/gulp-dnx) but this one has more logging opts, notifications and is cross platform.

## Usage

__build.js__
```
var gulp = require('gulp');
var DNX = require('gulp-aspnet5');
gulp.task('build:csharp', function(cb) {
  DNX.build({ cwd: './' }, cb);
});
```

__watch.js__
```
var gulp = require('gulp');
var runSequence = require('run-sequence');
var paths = './**/*.cs';

function changed(event) {
  gutil.log(`File ${event.path} was ${event.type}, running tasks...`);
};

gulp.task('watch', ['build'], function() {
  gulp.watch(paths, {interval: 500}, function(){
    runSequence('build:csharp', 'start:api');
  }).on('change', changed);
});
```

__server.js__
```
var gulp = require('gulp');
var DNX = require('gulp-aspnet5');

var server;
gulp.task('start:api', function(cb) {
  if(!server) server = new DNX({ cwd: paths.api  });
  server.start('weblistener', cb);
});
```

## Options

```
{
  // current working directory
  cwd: './',
  
  // how noisy?
  // options: 'debug', 'info', 'error', 'silent'
  logLevel: 'debug',
  
  // notify on errors
  notify: true
}

```

## Credits

`gulp-aspnet5` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.

## License
MIT

---
_Source: https://npm.io/package/gulp-aspnet5 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
