Files
parcel/src/config.ts
2020-08-19 16:48:24 +02:00

16 lines
270 B
TypeScript

class Config {
get repo() {
if (!process.env.GITHUB_REPOSITORY) {
return 'morten-olsen/foobar';
}
return process.env.GITHUB_REPOSITORY;
}
get user() {
const [user] = this.repo.split('/');
return user;
}
}
export default new Config();