Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-order-bemdeps

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-order-bemdeps

Reorder a stream of files using deps.js files contents

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gulp-order-bemdeps

Build Status Dependency Status DevDependency Status

Gulp plugin which reorders a stream of files using deps.js files contents. If you're not familiar with what BEM is or what deps.js files are used for, this link is for you.

Post on Medium.com: https://medium.com/@1999/bem-more-than-methodology-less-than-technology-4b66c42da6ef

Install

npm install gulp-order-bemdeps --save-dev

Basic Usage

'use strict';

let gulp = require('gulp');
let sass = require('gulp-sass');
let bemDepsOrder = require('gulp-order-bemdeps');

gulp.task('css', () => {
    gulp
        .src([
            'app/blocks/**/*.scss',
            'bower_components/bem-core/**/*.css',
            'app/ymodules/**/*.scss'
        ])
        .pipe(bemDepsOrder(gulp.src([
            'app/**/*deps.js'
        ])))
        .pipe(concat("all.css"))
        .pipe(sass().on('error', sass.logError))
        .pipe(gulp.dest("./"));
});

Options

The only argument is stream of vinyl deps.js files. Use gulp.src() for this.

Keywords

FAQs

Package last updated on 25 Jan 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