Socket
Socket
Sign inDemoInstall

@coldfrontlabs/gulp-templates

Package Overview
Dependencies
515
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coldfrontlabs/gulp-templates

Templates for quick gulp task set-up.


Version published
Weekly downloads
228
decreased by-4.2%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

6.0.0 (2022-03-15)

⚠ BREAKING CHANGES

  • lib: lib.fetch will run a default rename function to change all @ symbols to _ in the directory path

Features

  • lib: add rename, default rename function, and rename customization to fetch (dfc682a)

Documentation

Build System

  • add proper jsdoc config (d580459)
  • bump eslint-plugin-jsdoc from 37.9.7 to 38.0.3 (a8b3398)
  • github: add CodeQL workflow (f019b1e)
  • github: add dependabot (00bfaba)

Readme

Source

@coldfrontlabs/gulp-templates

Latest release License Conventional Commits

Templates for quick gulp task set-up.

This project assumes users have a basic understanding of how Gulp works. If you require more information on the basics of Gulp, please read the official documentation.

Installation

# latest stable
npm install -D gulp
npm install -D @coldfrontlabs/gulp-templates

Features

CSS

JavaScript

Libraries/Dependencies

Sass/SCSS

Upgrading from version 1.x?

Check out the upgrade guide!

Sample gulpfile.js

This file will give you a basic example of how to use the templates.

const { series } = require("gulp");
const { js } = require("@coldfrontlabs/gulp-templates");

/**
 * Compiles all JS files using Babel.
 *
 * @returns {object} - Gulp stream.
 */
const compile = () =>
  js.compile({
    source: "src/js/**/*.js",
    destination: "dist/js",
  });

/**
 * Minifies all JS files.
 *
 * @returns {object} - Gulp stream.
 */
const minify = () =>
  js.minify({
    source: ["dist/js/*.js", `!dist/js/*.min.js`],
    destination: "dist/js",
  });

const build = series(compile, minify);
build.description = "Compiles, and minifies all JS files.";

exports.default = build;

Using the latest JavaScript version

If you want to use the latest greatest JavaScript, follow the setup instructions for Gulp on the official package.

Here is the example from above written in ES2015.

import { series } from "gulp";
import { js } from "@coldfrontlabs/gulp-templates";

/**
 * Compiles all JS files using Babel.
 *
 * @returns {object} - Gulp stream.
 */
const compile = () =>
  js.compile({
    source: "src/js/**/*.js",
    destination: "dist/js",
  });

/**
 * Minifies all JS files.
 *
 * @returns {object} - Gulp stream.
 */
const minify = () =>
  js.minify({
    source: ["dist/js/*.js", `!dist/js/*.min.js`],
    destination: "dist/js",
  });

const build = series(compile, minify);
build.description = "Compiles, and minifies all JS files.";

export default build;

More examples can be found here.

Versioning

This project uses Semantic Versioning 2.0.0 to keep track of releases.

For more detailed information about SemVer, please see the official documentation.

Contributing

If you're interested in contributing to the project, please read the Contribution Guidelines. Any and all contributions must follow these guidelines or they will not be accepted.

Keywords

FAQs

Last updated on 15 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc