# anp-gulp

> A collection of gulp tasks only relevant to my exact project setup.

Latest version **3.3.8** (published 2015-08-19) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.3.8 |
| Published | 2015-08-19 |
| First published | 2015-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 39 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hampus Persson |
| Maintainers | hmps, apsis-international, keiv |
| Keywords | private |

## Links

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

## Dependencies (39)

- [del](https://npm.io/package/del.md) ^1.2.1
- [nib](https://npm.io/package/nib.md) ^1.1.0
- [glob](https://npm.io/package/glob.md) ^5.0.14
- [gulp](https://npm.io/package/gulp.md) ^3.9.0
- [lost](https://npm.io/package/lost.md) ^6.5.0
- [babel](https://npm.io/package/babel.md) ^5.8.21
- [chalk](https://npm.io/package/chalk.md) ^1.1.0
- [karma](https://npm.io/package/karma.md) ^0.13.9
- [gulp-git](https://npm.io/package/gulp-git.md) ^1.2.4
- [gulp-bump](https://npm.io/package/gulp-bump.md) ^0.3.1
- [gulp-size](https://npm.io/package/gulp-size.md) ^2.0.0
- [karma-jspm](https://npm.io/package/karma-jspm.md) ^2.0.1
- [gulp-concat](https://npm.io/package/gulp-concat.md) ^2.6.0
- [gulp-eslint](https://npm.io/package/gulp-eslint.md) ^1.0.0
- [gulp-header](https://npm.io/package/gulp-header.md) ^1.2.2
- [gulp-notify](https://npm.io/package/gulp-notify.md) ^2.2.0
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-stylus](https://npm.io/package/gulp-stylus.md) ^2.0.6
- [gulp-svgmin](https://npm.io/package/gulp-svgmin.md) ^1.2.0
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.2.0
- [require-dir](https://npm.io/package/require-dir.md) ^0.3.0
- [browser-sync](https://npm.io/package/browser-sync.md) ^2.8.2
- [gulp-postcss](https://npm.io/package/gulp-postcss.md) ^5.1.10
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^5.8.20
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) ^2.3.0
- [gulp-svgstore](https://npm.io/package/gulp-svgstore.md) ^5.0.4
- [karma-jasmine](https://npm.io/package/karma-jasmine.md) ^0.3.6
- [jshint-stylish](https://npm.io/package/jshint-stylish.md) ^2.0.1
- [karma-coverage](https://npm.io/package/karma-coverage.md) ^0.5.0
- [gulp-complexity](https://npm.io/package/gulp-complexity.md) ^0.3.0
- [gulp-sourcemaps](https://npm.io/package/gulp-sourcemaps.md) ^1.5.2
- [gulp-autoprefixer](https://npm.io/package/gulp-autoprefixer.md) ^2.3.1
- [imagemin-pngquant](https://npm.io/package/imagemin-pngquant.md) ^4.1.2
- [karma-chrome-launcher](https://npm.io/package/karma-chrome-launcher.md) ^0.2.0
- [karma-jasmine-matchers](https://npm.io/package/karma-jasmine-matchers.md) ^2.0.0-beta1
- [karma-verbose-reporter](https://npm.io/package/karma-verbose-reporter.md) 0.0.3
- [karma-babel-preprocessor](https://npm.io/package/karma-babel-preprocessor.md) ^5.2.1
- [karma-phantomjs-launcher](https://npm.io/package/karma-phantomjs-launcher.md) ^0.2.1
- [karma-jasmine-html-reporter](https://npm.io/package/karma-jasmine-html-reporter.md) ^0.1.8

## Recent versions

- 3.3.8 (latest) — 2015-08-19
- 3.3.7 — 2015-08-19
- 3.3.6 — 2015-08-19
- 3.3.4 — 2015-06-17
- 3.3.3 — 2015-06-01
- 3.3.2 — 2015-05-29
- 3.3.1 — 2015-05-29
- 3.3.0 — 2015-05-20
- 3.2.0 — 2015-05-08
- 3.0.1 — 2015-04-28
- 3.0.0 — 2015-04-15
- 2.2.1 — 2015-04-10
- 2.2.0 — 2015-04-10
- 2.1.2 — 2015-04-10
- 2.1.1 — 2015-04-08
- … 19 more at https://npm.io/package/anp-gulp/versions

## README

ANP-GULP HELPERS
================

A set of Gulp tasks that are very specific in their nature. The individual tasks is probably not very useful to most developers, but the general workflow might be of interest.

# Purpose
We have several packages that require the same kind of gulp tasks, style compression, script linting, bundling etc, but that also need to be independent from each other, much like packages on NPM. To be able to maintain these tasks and keep the independence each package has a dependency on anp-gulp helpers, and the gulpfile in each package simply loads these tasks. When a task has been updated each package can simply update its dependency and have all bugfixes and new pulled in.

# Usage
The individual package only needs gulp to be able to run. Install it locally or keep it globally, whichever you prefer.

Place the snippet below in your gulpfile to make all tasks available to you at your CLI.

```javascript
require('anp-gulp');

global.MODULE_PKG = require('./package.json');

/** IF YOU NEED SPECIFIC GULP TASKS, DEFINE THEM HERE **/
```

# Tasks
These are the tasks available in anp-gulp helpers. The default task is <a href="#bs">bs</a>.

### clean
**Deps: <a href="#cleandist">clean:dist</a>.**

noop

### clean:dist
Delete the dist-folder and all its content.

### watch
**Deps: <a href="#clean">clean</a>, <a href="#styles">styles</a>, <a href="#lintall">lint:all</a>.**

1. Runs a watch on `src/stylesheets/*.styl` and executes <a href="#styles">styles</a> on changes.
2. Runs a watch on `src/javascript/*.js` and executes <a href="#styles">lint:all</a> on changes.

### dist
**Deps: <a href="#cleandist">clean:dist</a>, <a href="#jsdist">js:dist</a>, <a href="#stylesdist">styles:dist</a>, <a href="#images:dist">images:dist</a>, <a href="#htmldist">html:dist</a>**

noop

### html
**Deps: <a href="#htmldist">html:dist</a>**

noop

### html:dist
Copies *.html files from `src/templates/` to `dist/templates/`.

### images
**Deps: <a href="#images:dist">images:dist</a>**.

noop

### images:dist
**Deps: <a href="#imagessvg">images:svg</a>**.

Copies *.png, *.gif, *.jpg, *.jpeg, *.webp from `src/images/` to `dist/images/`.

### images:svg
Minifies and combines all svg files in `src/images/` and copies the resulting file to `dist/images/`.

### test
**Deps: <a href="#karma">karma</a>***.

noop

### karma
Runs karma with config file `test/karma.conf.js`.

### release
Adds a header with package information to `dist/*.module.js` and `dist/stylesheets/*.css`.

### bump (major, minor, patch)
Runs bump:patch

### bump:patch
Performs a patch bump of the version number in package.json.

### bump:minor
Performs a minor bump of the version number in package.json.

### bump:major
Performs a major bump of the version number in package.json.

### lint
**Deps: <a href="#lintall">lint:all</a>**

noop

### lint:all
**Deps: <a href="#lintjshint">lint:jshint</a>, <a href="#lintjscs">lint:jscs</a>**.

noop

### lint:jshint
Runs JSHint on *.js in `src/javascript/`.

### link:jscs
Runs JSCS on *.js in `src/javascript`.

### complexity
Runs [complexity report](https://github.com/philbooth/complexity-report) on *.js in `src/javascript/`.

### js:dist

1. Copies `src/*.module.js` to `dist/`
2. Copies `src/javascript/*.js` to `dist/javascript/`.

### bs
**Deps: watch**

Starts a browser-sync session, loading `demo/` as root.

### styles
Compiles `src/stylesheets/*.styl` to `src/stylesheets/*.css`.

Has a hard dependecy on *stylus-helpers*, which is available through JSPM. It uses *stylus-helpers* to load up helpers and Stylus modules to be available in the path once the stylus files are being compiled.

### styles:dist
**Deps: <a href="#styles">styles</a>**

Copies `src/stylesheets/*.css` to `dist/stylesheets/*.css`.

# ES6 / ES2015
TODO

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