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

@backbase/collection

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

@backbase/collection

Utilities for dealing with a backbase collection of components.

  • 1.0.0-alpha.13
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

Backbase Collection Utils

Warning: This library is still in alpha.

Usage

.listDependencies(sourcesDir)

Returns a full list of dependencies of the collection, ordered by the dependency tree with the top most dependencies first.

Currently only supports bower dependencies. The bower dependencies need to be installed, and are retrievied from bower list.

Returns array in format:

[
    {
        name: <item name>
        srcDir: <path to item>
        version: <version of item>
        dependencies: {
            <item name>: {
                name: <item name>
                srcDir: <path to item>
                version: <version of item>
                dependencies: {
                    ...
                }
            },
            ...
        }
    },
    ...
]
.listSources(sourcesDir)

Returns a full list of CXP sources found in sourcesDir, excluding anything in bower_components or node_modules.

Folders are determined to be CXP sources if they contain a model.xml.

Returns array in format

[
    {
        name: <item name>
        srcDir: <path to item>
        version: <version of item>,
        type: <template|container|feature|widget>
    },
    ...
]

The array is ordered by templates, containers, features, then widgets.

.listItem(sourceDir)

Returns a single item loaded from the sourceDir.

Throws an error if folder desn't have model.xm.

Developing

Because of some weird bug with babel I haven't figured out yet, to run the coverage you need to delete the .babelrc file. You can get the coverage like this:

mv .babelrc .babelrc.bak && make coverage && mv .babelrc.bak .babelrc

FAQs

Package last updated on 27 Jun 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