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

gulp-css-nbd

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-css-nbd

CSS nesting by directory gulp plugin

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-css-nbd

CSS nesting by directory gulp plugin

Description

Plugin for building very specific selectors by directory structure like:

src/

  • 010_reset/
  • 100_globals/
    • mixins/
    • animations.less
    • colors.less
    • constants.less
    • fonts.less
    • levels.less
    • media.less
    • variables.less
  • 200_text/
    • a.less
  • 300_html/
    • body/
      • footer/
        • &.less
        • p.copyright.less
      • header/
        • !_variables.less
        • &.less
        • a.logo.less
        • nav.main.less
      • main/
        • form/
          • ul.fields/
            • &.less
            • li.less
            • li.controls.less
            • li.text.less
            • li.textarea.less
        • !table.less
        • &.less
        • h1.less
        • h2.less
        • ol,ul.less
        • p.less
      • &.less
      • nav.breadcrumbs.less

With 300_html as entry point for building selectors like:

html > body > main table {

or

html > body > form > ul.fields > li.text {

Usage

Install with npm:

npm install --save gulp-css-nbd

And use:

var gulp = require( 'gulp' );
var cssNdb = require( 'gulp-css-nbd' );
var concat = require( 'gulp-concat' );
var less = require( 'gulp-less' );

gulp.task(
	'default',
	function ()
	{
		gulp.src( './styles/src/**/*.less' )
			.pipe( cssNdb() )
			.pipe( concat( 'common.less' ) )
			.pipe( less() )
			.pipe( gulp.dest( './styles/' ) );
	}
);

Keywords

FAQs

Package last updated on 21 Aug 2015

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