This package has been deprecated

Author message:

Not maintained anymore

@electerious/basictasks

5.0.3 • Public • Published

basicTasks

A collection of gulp tasks used in personal projects.

Contents

Setup

Install basicTasks using npm

npm install @electerious/basictasks

… and require it in your gulpfile.

const gulp = require('gulp')
const tasks = require('@electerious/basictasks')(gulp, 'yourModuleName')

Usage

Scripts-Task

The scripts-task will bundle a JS file as a standalone UMD module, transform it using Babel and uglify the output.

const scripts = tasks.scripts({
	from: './src/scripts/main.js',
	to: './dist'
})

gulp.task('scripts', scripts)

Styles-Task

The styles-task accepts SCSS and SASS files. It will autoprefix and minify them.

const styles = tasks.styles({
	from: './src/styles/main.scss',
	to: './dist'
})

gulp.task('styles', styles)

Specify a custom filename using the name property.

const styles = tasks.styles({
	from: './src/styles/main.scss',
	name: (path) => path.basename += '.min',
	to: './dist'
})

gulp.task('styles', styles)

Dependents (0)

Package Sidebar

Install

npm i @electerious/basictasks

Weekly Downloads

0

Version

5.0.3

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • electerious