Git Product home page Git Product logo

cli-components-build's Introduction

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

cli-components-build's People

Contributors

brynbellomy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.