
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@coldfrontlabs/gulp-templates
Advanced tools
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.
# latest stable
npm install -D gulp
npm install -D @coldfrontlabs/gulp-templates
Check out the upgrade guide!
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;
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.
This project uses Semantic Versioning 2.0.0 to keep track of releases.
For more detailed information about SemVer, please see the official documentation.
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.
FAQs
Templates for quick gulp task set-up.
The npm package @coldfrontlabs/gulp-templates receives a total of 65 weekly downloads. As such, @coldfrontlabs/gulp-templates popularity was classified as not popular.
We found that @coldfrontlabs/gulp-templates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.