Socket
Socket
Sign inDemoInstall

babushka

Package Overview
Dependencies
129
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babushka

Recursive style hoisting from nested babushka components.


Version published
Weekly downloads
8
Maintainers
1
Install size
9.00 MB
Created
Weekly downloads
 

Readme

Source

Babushka travis npm

Recursive style hoisting from nested babushka components.

This package enables a nested component architecture, where component dependencies are automatically detected and their styles included when the main less file is processed.

Quickstart

  1. Add babushka as a dependency via npm install --save babushka.
  2. Add prepublish, pretest and prestart hooks into your package.json which execute the babushka script:
    "scripts": {
      ...
      "prepublish": babushka",
      "pretest": babushka",
      "prestart": babushka"
      ...
    }
    
  3. Make sure your main styles file is at ./src/styles/index.less and imports all other required styles via @import directives.

Now you can install additional packages that are also babushka components and their styles will automatically be included when babushka processes the styles of this component. The resulting css file combines the styles of this component and all other babushka style dependencies and is written to ./lib/styles/index.css.

License

Apache 2.0

FAQs

Last updated on 04 Nov 2016

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