Socket
Book a DemoInstallSign in
Socket

bemdeps

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemdeps

Converting jsdoc @deps directives to deps.js file

0.0.7
latest
npmnpm
Version published
Maintainers
1
Created
Source

Converting jsdoc @deps directives to deps.js file

install

npm install bemdeps

or

npm install -g bemdeps

options

-l --levels bem levels (default is "blocks-desktop and blocks-common")
-t --tetchs bem tetchs (default is "css js bemhtml")
-f --forse will replace original deps.js file without extending

example

/**
 * @deps b-block1, b-block2 elem1 elem2, !b-block3 mod_val
 */

is equal to

/**
 * @shouldDeps b-block1, b-block2 elem1 elem2
 * @mustDeps b-block3 mod_val
 */

and will convenrts into

({
    "mustDeps": [
        {
            "block": "b-block3",
            "mods": {
                "mod": "val"
            }
        }
    ],
    "shouldDeps": [
        {
            "block": "b-block1"
        },
        {
            "block": "b-block2",
            "elems": [
                "elem1",
                "elem2"
            ]
        }
    ]
})

usage

bemdeps -l blocks-desktop blocks-touch blocks-common -t js css

Keywords

bem

FAQs

Package last updated on 30 Apr 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.