Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

Alorel / personal-build-tools / 801

20 Mar 2019 - 7:52 coverage increased (+2.9%) to 83.558%
801

Pull #76

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
chore(package): update lockfile yarn.lock
Pull Request #76: Update rollup to the latest version 🚀

304 of 452 branches covered (67.26%)

Branch coverage included in aggregate %.

936 of 1032 relevant lines covered (90.7%)

44.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/src/lib/init/00_releaserc.ts
1
import * as fs from 'fs';
2
import {Fixture} from '../Fixture';
12×
3
import {Git} from '../Git';
12×
4
import {Log} from '../Log';
12×
5

12×
6
const enum Conf {
12×
7
  FILE = '.releaserc.yml'
8
}
9

84×
10
export function handle(): void {
11
  const hasReleaseRc: boolean = (() => {
12
    const rds = fs.readdirSync(process.cwd(), 'utf8');
25×
13

14
    for (const f of rds) {
15
      if (f.startsWith('.releaserc')) {
16
        return true;
17
      }
18
    }
UNCOV
19

!
20
    return false;
21
  })();
22

23
  if (hasReleaseRc) {
24
    Log.info('Skipping .releaserc');
25

26
    return;
27
  }
28

29
  new Fixture('init').copy(Conf.FILE, Conf.FILE);
30
  Git.add(Conf.FILE);
31

32
  Log.success('Generated .releaserc');
33
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc