Socket
Book a DemoInstallSign in
Socket

component-api

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

component-api

API for creating, building, and installing components

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

component-api

API for creating, building, and installing components. If you're looking for a command line interface, see component(1)

Installation

$ npm install component-api

API

var api = require('component-api');

api.build(directory, options, callback)

Build a component in the given directory.

  • directory:string - The directory containing the component you wish to build
  • options
    • dev:bool - Build development dependencies
    • standalone:string - Triggers a standalone build with the given name as the global created
    • out:string - The output directory for built files, defaults to ./build. You can alternatively pass an object {js: Stream, css: Stream}
    • name:string - Base name for build files defaulting to build
    • prefix:string - prefix css asset urls with prefix
  • callback(err, duration) - Callback called when complete with the time taken to build the components or an error if something went wrong.

FAQs

Package last updated on 07 Dec 2012

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