# strt-gulptasks

> Collection of gulp tasks.

Latest version **4.4.3** (published 2017-06-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install strt-gulptasks
pnpm add strt-gulptasks
yarn add strt-gulptasks
bun add strt-gulptasks
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.4.3 |
| Published | 2017-06-01 |
| First published | 2016-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 27 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Strateg Marknadsföring AB |
| Maintainers | alexandernanberg |

## Links

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

## Dependencies (27)

- [del](https://npm.io/package/del.md) ^2.2.2
- [gulp](https://npm.io/package/gulp.md) github:gulpjs/gulp#4.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [gulp-if](https://npm.io/package/gulp-if.md) ^2.0.2
- [webpack](https://npm.io/package/webpack.md) ^2.6.1
- [deepmerge](https://npm.io/package/deepmerge.md) ^1.3.2
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.0
- [gulp-sass](https://npm.io/package/gulp-sass.md) ^3.1.0
- [babel-core](https://npm.io/package/babel-core.md) ^6.24.1
- [time-stamp](https://npm.io/package/time-stamp.md) ^2.0.0
- [gulp-eslint](https://npm.io/package/gulp-eslint.md) ^3.0.1
- [html-loader](https://npm.io/package/html-loader.md) ^0.4.5
- [require-dir](https://npm.io/package/require-dir.md) ^0.3.2
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.0.0
- [browser-sync](https://npm.io/package/browser-sync.md) ^2.18.12
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.1.0
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) ^3.3.0
- [node-notifier](https://npm.io/package/node-notifier.md) ^5.1.2
- [gulp-sourcemaps](https://npm.io/package/gulp-sourcemaps.md) ^2.6.0
- [gulp-svg-sprite](https://npm.io/package/gulp-svg-sprite.md) ^1.3.6
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.5.1
- [babel-preset-flow](https://npm.io/package/babel-preset-flow.md) ^6.23.0
- [gulp-autoprefixer](https://npm.io/package/gulp-autoprefixer.md) ^4.0.0
- [webpack-dev-middleware](https://npm.io/package/webpack-dev-middleware.md) ^1.10.2
- [webpack-hot-middleware](https://npm.io/package/webpack-hot-middleware.md) ^2.18.0
- [babel-plugin-transform-class-properties](https://npm.io/package/babel-plugin-transform-class-properties.md) ^6.24.1
- [babel-plugin-transform-object-rest-spread](https://npm.io/package/babel-plugin-transform-object-rest-spread.md) ^6.23.0

## Recent versions

- 4.4.3 (latest) — 2017-06-01
- 4.4.0 — 2017-05-22
- 4.3.1 — 2017-05-22
- 4.3.0 — 2017-05-22
- 4.2.2 — 2017-05-17
- 4.2.1 — 2017-05-12
- 4.2.0 — 2017-05-12
- 4.1.1 — 2017-05-11
- 4.1.0 — 2017-05-08
- 4.0.11 — 2017-04-26
- 4.0.10 — 2017-04-26
- 4.0.9 — 2017-04-26
- 4.0.8 — 2017-04-25
- 4.0.7 — 2017-04-24
- 4.0.6 — 2017-04-18
- … 32 more at https://npm.io/package/strt-gulptasks/versions

## README

<p align="center">
  <a href="http://www.strateg.se" target="_blank">
    <img src="http://www.strateg.se/images/18.a1e6bf01578783b6c19d43/1475494040088/strateg-logo.png" alt="Strateg Marknadsföring" width="250">
  </a>
  <br><br>
</p>

## Features ✌️
+ ES6 with Babel
+ BrowserSync and Webpack dev middleware
+ Sass 
+ Image compression
+ SVG icon sprites

## Available tasks 🔥
+ Clean
+ Files
+ Icons
+ Images
+ Scripts
+ Serve
+ Styles
+ Watch

## Options 🔧
``` javascript
{
  source: 'src', // Source folder
  output: 'dist', // Output folder
  browsers: ['ie 11', 'last 2 versions'], // Supported browsers, used by autoprefixer and babel
  images: {
    path: 'images', // Images path
  },
  icons: {
    path: 'icons', // Icons path
  },
  styles: {
    path: 'styles', // Styles path
    entries: ['./main.scss'], // Styles entries
  },
  scripts: {
    path: 'scripts', // Scripts path
    publicPath: '', // PublicPath of scripts, e.g. /dist/scripts or /webdav/files/dist/scripts
    entries: ['./main.js'], // Scripts entries, use and object if you need to name the javascript file, e.g. { named: './named.js' } will output named.js
  }, 
  serve: {} // Sends config object directly to BrowserSync, see their docs for available options

  /* BrowserSync proxy example
  serve: {
    proxy: 'strateg.se',
    serveStatic: [
      {
        route: '/webdav/files/resources',
        dir: 'dist'
      }
    ]
  }
  */
}
```

## Getting started 🚀
`yarn add strt-gulptasks`

#### Example
``` javascript
// gulpfile.js

const gulp = require('gulp');
const tasks = require('strt-gulptasks')({
  // Options
});

gulp.task('default', gulp.series(
  tasks.clean,
  gulp.parallel(
    tasks.styles,
    tasks.images,
    tasks.icons,
    tasks.files,
    tasks.scripts
  ),
  tasks.serve
));

```

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