New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

garden

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

garden

A styleguide based on Leroy Merlin needs

  • 0.27.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

Getting Started

Macro tasks

  • watch: Watches files and runs specific task to compile or move the file modified;

Individual tasks

  • docs:metalsmith: Creates static documentation with metalsmith;
  • docs:css: Builds the postcss for the documentation;
  • server: Runs watch and creates a server with livereload for the documentation;

Creating tasks

All tasks are located on the ./tasks folder, and follow the file/naming convention of: namespace-action.js / namespace:action, for example build-scripts.js build:scripts.

Requiring tasks

On the gulpfile, we only define the tasks, except for the macro ones, such as watch which is just a stack of individual tasks. In order to require a task, you must use the import keyword:

const taskName = require('./gulp/task-name')

gulp.task('task:name', taskName) // Referring to task-name.js

Task boilerplate

This is pretty much straight forward:

const gulp = require('gulp')
const gulpPlugin = require('gulp-plugin') // Demo

const paths = require('./paths') // In case you need to handle paths

// done is the callback provided by gulp is case you need to finish a task manually
module.exports = (done) => () {
  return gulp.src(CUSTOM_GLOB)
    .pipe(gulpPlugin())
    .pipe(gulp.dest(CUSTOM_GLOB))
}

FAQs

Package last updated on 28 Sep 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc