Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-query

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-query

Your workflow will be easier

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

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

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

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 for gulp-query

Keywords

FAQs

Package last updated on 30 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc