npmci/ts/npmci.env.ts

19 lines
486 B
TypeScript
Raw Permalink Normal View History

2016-11-24 23:07:20 +00:00
import * as plugins from './npmci.plugins'
import * as paths from './npmci.paths'
2017-03-08 13:50:41 +00:00
import { GitRepo } from 'smartstring'
2017-09-08 12:58:44 +00:00
import { ProjectInfo } from 'projectinfo'
2017-05-18 20:40:09 +00:00
import { Dockerfile } from './mod_docker/index'
/**
* a info instance about the git respoitory at cwd :)
*/
2016-11-24 23:07:20 +00:00
export let repo: GitRepo
2017-05-18 20:40:09 +00:00
if (process.env.CI_REPOSITORY_URL) {
repo = new GitRepo(process.env.CI_REPOSITORY_URL)
2017-07-19 07:40:48 +00:00
}
2017-09-08 12:58:44 +00:00
/**
* Info about the project at cwd
*/
export let cwdProjectInfo = new ProjectInfo(paths.cwd)