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_tsc_build.ts
1
import * as fs from 'fs-extra';
2
import {Git} from '../Git';
12×
3
import {Log} from '../Log';
12×
4

12×
5
export const options = {};
12×
6

12×
7
export function handle(): void {
8
  //tslint:disable:object-literal-sort-keys no-magic-numbers
9
  const tsc = {
10
    default: {
11
      compilerOptions: {
12
        module: 'commonjs',
13
        strictBindCallApply: true,
14
        target: 'es5',
15
        experimentalDecorators: true,
16
        emitDecoratorMetadata: true,
17
        noUnusedLocals: true,
18
        noUnusedParameters: true,
19
        newLine: 'lf',
20
        noFallthroughCasesInSwitch: true,
21
        suppressImplicitAnyIndexErrors: true,
22
        importHelpers: true,
23
        allowUnreachableCode: false,
24
        allowUnusedLabels: false,
25
        strict: true,
26
        stripInternal: true,
27
        declaration: false,
28
        noImplicitAny: true,
29
        strictNullChecks: true,
30
        strictPropertyInitialization: false,
31
        removeComments: false,
32
        moduleResolution: 'node',
33
        sourceMap: true,
34
        outDir: 'dist'
35
      },
36
      include: [
37
        'src'
38
      ],
39
      exclude: [
40
        'node_modules'
41
      ]
42
    },
43
    test: {
44
      extends: './tsconfig.json',
45
      compilerOptions: {
46
        target: 'es6'
47
      },
48
      include: [
49
        'src',
50
        'test'
51
      ]
52
    }
53
  };
54

55
  //tslint:enable:object-literal-sort-keys
56

57
  function write(file: string, key: keyof typeof tsc): void {
150×
58
    if (!fs.pathExistsSync(file)) {
150×
59
      fs.writeFileSync(file, JSON.stringify(tsc[key], null, 2) + '\n');
150×
60
      Git.add(file);
61
      Log.success(`Wrote ${file}`);
UNCOV
62
    } else {
!
63
      Log.info(`Skipped ${file}`);
64
    }
65
  }
75×
66

75×
67
  write('tsconfig.json', 'default');
68
  write('tsconfig.test.json', 'test');
12×
69
}
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