virmator 4.2.11 → 4.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,30 @@
1
1
  'use strict';
2
2
 
3
- const baseConfig = {
4
- extends: '@istanbuljs/nyc-config-typescript',
5
- all: true,
6
- branches: 100,
7
- cache: false,
8
- instrument: true,
9
- checkCoverage: true,
10
- exclude: '**/*.test.ts',
11
- functions: 100,
12
- include: 'src/*',
13
- lines: 100,
14
- perFile: 100,
15
- reporter: [
16
- 'html',
17
- 'istanbul-smart-text-reporter',
18
- ],
19
- skipEmpty: true,
20
- skipFull: true,
21
- statements: 100,
22
- tempDir: './node_modules/.nyc-output/',
23
- };
3
+ function getBaseConfigWithCoveragePercent(percent) {
4
+ return {
5
+ extends: '@istanbuljs/nyc-config-typescript',
6
+ all: true,
7
+ branches: percent,
8
+ cache: false,
9
+ instrument: true,
10
+ checkCoverage: true,
11
+ exclude: [
12
+ '**/*.test.ts',
13
+ 'src/readme-examples',
14
+ ],
15
+ functions: percent,
16
+ include: 'src/*',
17
+ lines: percent,
18
+ perFile: true,
19
+ reporter: [
20
+ 'html',
21
+ 'istanbul-smart-text-reporter',
22
+ ],
23
+ skipEmpty: true,
24
+ skipFull: true,
25
+ statements: percent,
26
+ tempDir: './node_modules/.nyc-output/',
27
+ };
28
+ }
24
29
 
25
- module.exports = baseConfig;
30
+ module.exports = {getBaseConfigWithCoveragePercent};
@@ -42,12 +42,13 @@ const plugins = [
42
42
  */
43
43
  const prettierConfig = {
44
44
  arrowParens: 'always',
45
+ bracketSameLine: false,
45
46
  bracketSpacing: false,
46
47
  endOfLine: 'lf',
47
48
  htmlWhitespaceSensitivity: 'ignore',
48
49
  jsonRecursiveSort: true,
49
- bracketSameLine: false,
50
50
  plugins,
51
+ pluginSearchDirs: false,
51
52
  printWidth: 100,
52
53
  singleQuote: true,
53
54
  tabWidth: 4,
@@ -1,7 +1,7 @@
1
- const baseOptions = require('virmator/base-configs/base-nyc.js');
1
+ const {getBaseConfigWithCoveragePercent} = require('virmator/base-configs/base-nyc.js');
2
2
 
3
3
  const nycConfig = {
4
- ...baseOptions,
4
+ ...getBaseConfigWithCoveragePercent(100),
5
5
  };
6
6
 
7
7
  module.exports = nycConfig;
@@ -7,7 +7,6 @@
7
7
  "compile": "rm -rf dist && virmator compile",
8
8
  "docs:update": "virmator code-in-markdown",
9
9
  "format": "virmator format",
10
- "prepack": "npm run compile",
11
10
  "prepublishOnly": "npm run compile && npm run test:all",
12
11
  "preview": "virmator frontend preview",
13
12
  "spellcheck": "virmator spellcheck",
@@ -75,6 +75,8 @@ exports.testCommandDefinition = (0, define_command_1.defineCommand)({
75
75
  '--colors',
76
76
  nycConfigFlag,
77
77
  await (0, package_paths_1.getNpmBinPath)(inputs.repoDir, 'mocha'),
78
+ // force colors in mocha
79
+ '--colors',
78
80
  configString,
79
81
  ...inputs.filteredInputArgs,
80
82
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "4.2.11",
3
+ "version": "4.2.13",
4
4
  "description": "Handle all the stuffs in one package.",
5
5
  "keywords": [
6
6
  "automation",