Have ideas to improve npm?Join in the discussion! »

    grunt-fayde-unify

    0.4.1 • Public • Published

    grunt-fayde-unify

    This is a tool for extracting unify metadata for Grunt. For more information about unify, see fayde unify.

    Usage

    To use, grunt variable must be injected.

    var gunify = require('grunt-fayde-unify');
    
    module.exports = function (grunt) {
        var unify = gunify(grunt);
    };
    

    typings

    typings(config)

    • config (optional)
      • basePath - path to resolve resulting typings (default: './')
      • unifyPath - path to resolve current project unify.json (default: './unify.json')
      • includeSelf - if true, will include typings from current library (default: true)
      • includeDevSelf - if true, will include devTypings from current library (default: true)

    If a bower library has a unify.json file with typings defined, unify.typings() will extract these typings and return a path relative to basePath.

    # Gruntfile.js
    var gunify = require('grunt-fayde-unify');
    
    module.exports = function (grunt) {
        var unify = gunify(grunt);
        var typings = unify.typings(); // Returns typings for all client dependencies (unify.json)
        ...
    };
    

    Install

    npm i grunt-fayde-unify

    DownloadsWeekly Downloads

    10

    Version

    0.4.1

    License

    MIT

    Last publish

    Collaborators

    • avatar