2022-04-18 20:17:10 +00:00
|
|
|
import * as plugins from './projectinfo.plugins.js';
|
2016-11-26 13:45:56 +00:00
|
|
|
|
|
|
|
// direct access to classes
|
2022-04-18 20:16:46 +00:00
|
|
|
export * from './projectinfo.classes.git.js';
|
|
|
|
export * from './projectinfo.classes.npm.js';
|
|
|
|
export * from './projectinfo.classes.projectinfo.js';
|
2016-11-26 13:45:56 +00:00
|
|
|
|
|
|
|
// npm
|
2022-04-18 20:16:46 +00:00
|
|
|
import { ProjectinfoNpm } from './projectinfo.classes.npm.js';
|
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
|
|
|
|
*/
|
2022-04-18 20:17:10 +00:00
|
|
|
export let getNpmNameForDir = function (cwdArg) {
|
2018-09-02 12:21:05 +00:00
|
|
|
let localNpm = new ProjectinfoNpm(cwdArg);
|
|
|
|
if (localNpm.status === 'ok') {
|
|
|
|
return localNpm.name;
|
|
|
|
}
|
|
|
|
};
|