Socket
Socket
Sign inDemoInstall

cli-components-build

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cli-components-build

Small set of tools for Makefiles/Gulpfiles/etc.


Version published
Maintainers
1
Created

Readme

Source

cli-components / build

Small set of tools for Makefiles/Gulpfiles/etc.

installing

$ npm install cli-components-build --save

using

In lieu of a README, here's the .d.ts file, verbatim:

declare module 'cli-components-build' {
    export = CliComponentsBuildModule;
}

declare module CliComponentsBuildModule
{
    export interface ExecOutputReturnValue {
        code: number;
        output: string;
    }
    export interface TSConfigDictionary {
        [name: string]: any;
    }
    export interface GroupFiletypesResult {
        grouped: {
            [name: string]: string[];
        };
        rest: string[];
    }
    /**
        Returns the last-modified timestamp for the given file.
     */
    export function mtime(filepath: string): number;
    /**
        Applies some simple, default ANSI formatting to the output of a call to
        `exec` based on the success or failure indicated by its return code.
     */
    export function prettyExecResult(result: ExecOutputReturnValue): string;
    /**
        Parses the `tsconfig.json` at the specified path, assigns the keys/values in `assign` to the unserialized config
        object, and returns the result.
     */
    export var tsconfig: (assign?: {}, filepath?: string) => TSConfigDictionary;
    /**
        Groups the given files by the given extensions.  Any files with other extensions are added to the `rest` array
        on the return value.
     */
    export function groupFiletypes(files: string[], extensions: string[]): GroupFiletypesResult;
    /**
        Returns `false` for ".min.js" files.  Returns `true` if `file` has the extension ".js" but not the extension ".min.js".
     */
    export function isUnminifiedJS(file: string): boolean;
    /**
        Error object returned by the `tsify` (Typescript compiler) plugin for Browserify.
     */
    export interface TSifyCompileError {
        /** For example, 'src/user/index.ts(39,33): Error TS2304: Cannot find name \'PopupController\'.' */
        message: string;
        fileName: string;
        line: number;
        column: number;
        /** For example, 'TypeScript error'. */
        name: string;
    }
    /**
        Makes a halfhearted attempt to pretty print Typescript compile error objects generated by Browserify's `tsify` plugin.
     */
    export function prettyTSifyCompileError(err: TSifyCompileError): string;
    /**
        Colorizes and formats a simple "header" kind of thing.  You can surround text in asterisks to apply a highlight.  For example: "Installing *someprogram* version *1.0*"
     */
    export function header(text: any): string;
}

authors/contributors

  • Bryn Austin Bellomy (bryn.bellomy@gmail.com)

FAQs

Last updated on 12 Jul 2015

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