# gulp-query

> Your workflow will be easier

Latest version **1.1.4** (published 2019-01-07) · MIT license · 0 weekly downloads

## Install

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

## 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.1.4 |
| Published | 2019-01-07 |
| First published | 2017-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Marat Nuriev |
| Maintainers | nurieff |
| Keywords | gulp, gulpplugin, mix, tasks, task, gulp query, gulp api |

## Links

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

## Dependencies (7)

- [gulp](https://npm.io/package/gulp.md) ^4.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [gulp-notify](https://npm.io/package/gulp-notify.md) ^3.2.0
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.2.1
- [merge-stream](https://npm.io/package/merge-stream.md) ^1.0.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2019-01-07
- 1.1.3 — 2019-01-06
- 1.1.2 — 2019-01-05
- 1.1.1 — 2019-01-05
- 1.1.0 — 2019-01-05
- 1.0.3 — 2017-08-31
- 1.0.2 — 2017-08-30
- 1.0.1 — 2017-08-28
- 1.0.0 — 2017-08-25

## README

## gulp-query
Your workflow will be easier

Use only what you need

Why?
* provides an easy, convenient API for defining basic Gulp tasks for your application
* plugins for SCSS, PostCSS, JS, Webpack, Rollup, combining styles and js, compressing image, cooking sprite and more
* A small number of lines of the gulpfile.js
* Out of the box available ready tasks, watching, separate run tasks, production mode with compression, sourcemap...
* Minimum settings
* Install and immediately use
* [Plugins](plugins.md)

### Example
Install `gulp-query` and plugins
```
npm install gulp-query gulp-query-scss gulp-query-webpack gulp-query-compress
```

`gulp-query-scss` — to compile SCSS
`gulp-query-webpack` — for bundle with CSS, SCSS

Paste the code into your `gulpfile.js` and configure it
```javascript
let build = require('gulp-query')
  , scss = require('gulp-query-scss')
  , compress = require('gulp-query-compress')
  , webpack = require('gulp-query-webpack');

build((query) => {
    // query.plugins([scss, webpack, compress])
    query.plugins(scss, webpack, compress)
      .scss('src/scss/admin.scss','css/undercover.css')
      .scss('src/scss/app.scss','css/','app')
      .webpack('src/js/app.js','js/','app')
      .compress('src/icons/*.png','images/')
      ;
});
```
And feel the freedom
```
gulp
gulp --production // For production (minification)
gulp watch // Watching change
gulp scss // Only for scss
gulp scss:app // Only for app.scss
gulp webpack:app watch // Watching change only for app.js nad app/**/*.js
gulp webpack --production // Production only for webpack
gulp webpack scss
gulp webpack:app compress
...
```
Your results in a clear table

![alt text](console.png "Results")

Easy, right?
* Install the plugins that we use
* Compile the Sass file, `./src/scss/app.sass` to `./css/app.css` and `./src/scss/admin.sass` to `./css/undercover.css`
* Bundle all JavaScript (and any required modules) at `./src/js/app.js` to `./js/app.js`
* Compress images at `./src/icons/*.png` to `images/`
* We can run each task separately

And it's just several lines of code. In contrast to the original... 

## Plugins

[All plugins](plugins.md) for gulp-query

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