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

broccoli-node-api

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-node-api

Broccoli Plugin API Types

  • 1.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
326K
increased by7.24%
Maintainers
4
Weekly downloads
 
Created
Source

broccoli-node-api

TypeScript types for the Broccoli Node Api

Exports

Node

type Node = TransformNode | SourceNode;

Node Documentation


InputNode

type InputNode = Node | string;

NodeCommon

interface NodeCommon<T extends NodeInfo> {
  __broccoliFeatures__: FeatureSet;
  __broccoliGetInfo__: (builderFeatures: FeatureSet) => T;
}

NodeMap

interface NodeMap = {
  transform: TransformNode;
  source: SourceNode;
};

TransformNode

interface TransformNode extends NodeCommon<TransformNodeInfo> {}

SourceNode

interface SourceNode extends NodeCommon<SourceNodeInfo> {}

FeatureSet

interface FeatureSet {
  [feature: string]: boolean;
}

NodeInfo

type NodeInfo = TransformNodeInfo | SourceNodeInfo;

NodeInfo Documentation


NodeType

type NodeType = "transform" | "source";

NodeInfoMap

interface NodeInfoMap = {
  transform: TransformNodeInfo;
  source: SourceNodeInfo;
};

NodeInfoCommon

interface NodeInfoCommon<T extends NodeType> {
  nodeType: T;
  name: string;
  annotation: string | null | undefined;
  instantiationStack: string;
}

TransformNodeInfo

interface TransformNodeInfo extends NodeInfoCommon<"transform"> {
  inputNodes: Node[];
  setup(
    features: FeatureSet,
    options: { inputPaths: string[]; outputPath: string; cachePath: string }
  ): void;
  getCallbackObject(): CallbackObject;
  persistentOutput: boolean;
  needsCache: boolean;
  volatile: boolean;
}

TransformNodeInfo Documentation


CallbackObject

interface CallbackObject {
  build(): Promise<void> | void;
}

SourceNodeInfo

interface SourceNodeInfo extends NodeInfoCommon<"source"> {
  sourceDirectory: string;
  watched: boolean;
}

SourceNodeInfo Documentation

FAQs

Package last updated on 16 Jul 2019

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