0.4.1 • Published 9 years ago

grunt-fayde-unify v0.4.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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)
    ...
};
0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago