# one-gulp

> a ready to use set of gulp tasks

Latest version **0.3.3** (published 2016-01-30) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2016-01-30 |
| First published | 2015-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 41 |
| Known vulnerabilities | 0 (+13 in 5 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 7 |
| Author | Fabrice CLAEYS & Hubert SABLONNIÈRE |
| Maintainers | hsablonniere, fclaeys |

## Links

- npm: https://www.npmjs.com/package/one-gulp
- Repository: https://github.com/one-gulp/one-gulp
- Issues: https://github.com/one-gulp/one-gulp/issues
- npm.io page: https://npm.io/package/one-gulp

## Dependencies (41)

- [gulp](https://npm.io/package/gulp.md) 3.8.11
- [sha1](https://npm.io/package/sha1.md) 1.1.0
- [uuid](https://npm.io/package/uuid.md) 2.0.1
- [babel](https://npm.io/package/babel.md) 5.2.13
- [chalk](https://npm.io/package/chalk.md) 1.0.0
- [mkdirp](https://npm.io/package/mkdirp.md) 0.5.0
- [moment](https://npm.io/package/moment.md) 2.10.2
- [rimraf](https://npm.io/package/rimraf.md) 2.3.3
- [connect](https://npm.io/package/connect.md) 3.3.5
- [chokidar](https://npm.io/package/chokidar.md) 1.0.1
- [graphviz](https://npm.io/package/graphviz.md) 0.0.8
- [through2](https://npm.io/package/through2.md) 0.6.5
- [gulp-jade](https://npm.io/package/gulp-jade.md) 1.0.0
- [gulp-less](https://npm.io/package/gulp-less.md) 3.0.3
- [gulp-sass](https://npm.io/package/gulp-sass.md) 2.1.0
- [gulp-sort](https://npm.io/package/gulp-sort.md) 1.0.1
- [minimatch](https://npm.io/package/minimatch.md) 2.0.7
- [gulp-babel](https://npm.io/package/gulp-babel.md) 5.1.0
- [gulp-clone](https://npm.io/package/gulp-clone.md) 1.0.0
- [multimatch](https://npm.io/package/multimatch.md) 2.0.0
- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [gulp-cached](https://npm.io/package/gulp-cached.md) 1.0.2
- [gulp-coffee](https://npm.io/package/gulp-coffee.md) 2.3.1
- [gulp-concat](https://npm.io/package/gulp-concat.md) 2.5.2
- [gulp-filter](https://npm.io/package/gulp-filter.md) 2.0.2
- [gulp-inject](https://npm.io/package/gulp-inject.md) 1.2.0
- [gulp-stylus](https://npm.io/package/gulp-stylus.md) 2.0.1
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) 1.2.0
- [browser-sync](https://npm.io/package/browser-sync.md) 2.7.1
- [gulp-htmlmin](https://npm.io/package/gulp-htmlmin.md) 1.1.1
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) 1.0.0
- [serve-static](https://npm.io/package/serve-static.md) 1.9.2
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) 2.2.1
- [gulp-markdown](https://npm.io/package/gulp-markdown.md) 1.0.0
- [gulp-concat-css](https://npm.io/package/gulp-concat-css.md) 2.2.0
- [gulp-minify-css](https://npm.io/package/gulp-minify-css.md) 1.1.1
- [gulp-sourcemaps](https://npm.io/package/gulp-sourcemaps.md) 1.5.2
- [gulp-typescript](https://npm.io/package/gulp-typescript.md) 2.6.0
- [main-bower-files](https://npm.io/package/main-bower-files.md) 2.7.0
- [gulp-autoprefixer](https://npm.io/package/gulp-autoprefixer.md) 2.2.0
- [gulp-load-plugins](https://npm.io/package/gulp-load-plugins.md) 0.10.0

## Recent versions

- 0.3.3 (latest) — 2016-01-30
- 0.3.2 — 2015-11-04
- 0.3.0 — 2015-11-04
- 0.2.0 — 2015-05-05
- 0.1.1 — 2015-04-06
- 0.1.0 — 2015-03-17

## README

# one-gulp


[WIP] a ready to use set of gulp tasks


## install

If your're starting a new project, you just need to run this :

`npm install gulp one-gulp --save`

This will install `gulp` and the `one-gulp` node module. If you don't have a `gulpfile.js` in your project, it will generate one with the minimum configuration.

## init

If you're already using gulp, you need to install the `one-gulp` node module by running this :

`npm install one-gulp --save`

and then you'll be able to init `one-gulp` with this code :

```javascript

var gulp = require('gulp'),
    one = require('one-gulp');

one.init(gulp, {
    // look at options documentation for details
});
```

The `one.init()` function adds several tasks to your gulp :

* serve
* watch
* writeToDev
* writeToProd
* browserSync
* graph

## config options

### src
### tmp
### dest
### connectPort
### browserSyncPort
### bindHost
### sortDeps // relative to src

## Remote debugging

### Using browser's tools

Chrome, Firefox, Opera and Safari provide remote debugging for their latest desktop and mobile browsers :

* [Remote Debugging on Android with Chrome][chrome-remote-debug]
* [Debugging Firefox for Android with WebIDE][firefox-remote-debug]
* [Remote Debugging with Opera Dragonfly][opera-remote-debug]
* [Enable Remote Debugging with Safari Web Inspector in iOS 6][safari-remote-debug]

### Using weinre

If you need to remote debug older versions of the above browsers, Internet Explorer or a WebView, you'll have to use [weinre].

**one-gulp** uses BrowserSync, so weinre is already installed. You just need to add a target script in your pages and enable the debug interface.

#### Manual target script injection

If you want weinre to work, you can manually add a target script like this in your pages :

```html
<script src="//[your-local-IP]:[options.weinrePort]/target/target-script-min.js#browsersync"></script>
```

#### Automatic target script injection

You can also set `options.injectWeinreSnippet` to `true` to automatically inject the weinre target script in your pages. This will only work on the BrowserSync port.

#### Enable the debugger

By default, after starting the servers, weinre is disabled. To enable it, just follow these two steps :

1. Open *http://[your-local-ip]:[browser-sync-conf-port]/remote-debug* and enable **Remote Debugger (weinre)**.
1. Click on the **Access remote debugger (opens in a new tab)**.

[weinre]: http://people.apache.org/~pmuellr/weinre/docs/latest/  "Weinre documentation website"
[chrome-remote-debug]: https://developer.chrome.com/devtools/docs/remote-debugging "Remote Debugging on Android with Chrome"
[firefox-remote-debug]: https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_for_Android_with_WebIDE "Debugging Firefox for Android with WebIDE"
[opera-remote-debug]: http://www.opera.com/dragonfly/documentation/remote/ "Opera Dragonfly documentation / Remote Debugging"
[safari-remote-debug]: http://moduscreate.com/enable-remote-web-inspector-in-ios-6/ "Enable Remote Debugging with Safari Web Inspector in iOS 6"

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