projectinfo/ts/index.ts

33 lines
642 B
TypeScript
Raw Normal View History

2016-11-26 13:45:56 +00:00
import 'typings-global'
import plugins = require('./projectinfo.plugins')
// direct access to classes
export * from './projectinfo.classes.git'
export * from './projectinfo.classes.npm'
export * from './projectinfo.classes.projectinfo'
// npm
import { ProjectinfoNpm } from './projectinfo.classes.npm'
2016-02-20 04:05:07 +00:00
2016-11-26 13:45:56 +00:00
// quick functions
/**
* gets the name from package.json in a specified directory
*/
export let getNpmNameForDir = function(cwdArg){
let localNpm = new ProjectinfoNpm(cwdArg)
if (localNpm.status === 'ok') {
return localNpm.name
2016-02-20 05:06:43 +00:00
}
2016-11-26 13:45:56 +00:00
}
2016-02-20 05:06:43 +00:00
2016-02-20 04:05:07 +00:00
/* TODO
projectinfo.git = function(){
};
projectinfo.mojo = function(){
};
2016-11-26 13:45:56 +00:00
*/