Skip to content

BSick7/bower-typings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bower-typings

Utility to retrieve typescript definitions from bower dependencies using unify.json. See fayde-unify for more information on unify.json.

Usage

require('bower-typings')([options])

options

  • unifyPath (default ./unify.json) - path to unify file
  • includeSelf (default: true) - include/exclude typings defined in typings in own unify.json.
  • includeDevSelf (default: true) - include/exclude typings defined in devTypings in own unify.json.
// Simple - Finds all typings from unify.json
var typings = require('bower-typings')();

// Exclude my own typings
var typings = require('bower-typings')({includeSelf: false});

// Exclude my dev typings
var typings = require('bower-typings')({includeDevSelf: false});

Scan

require('bower-typings').scan([options])

options

  • self (default: true) - include/exclude typings defined in ./typings/**/*.d.ts.
// Simple - Finds all typings in every bower library (including self) in typings directory.
var typings = require('bower-typings').scan();

// Finds all typings in every bower library (excluding self) in typings directory.
var typings = require('bower-typings').scan({ self: false });

About

Tool to retrieve typescript definitions from bower dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published