jssm 5.74.0 → 5.75.0

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.
@@ -15,13 +15,19 @@ module.exports = {
15
15
 
16
16
  coverageThreshold : {
17
17
  global : {
18
- branches : 1,
19
- functions : 1,
20
- lines : 1,
21
- statements : 1,
18
+ branches : 0,
19
+ functions : 0,
20
+ lines : 0,
21
+ statements : 0,
22
22
  },
23
23
  },
24
24
 
25
- collectCoverageFrom: ["src/ts/**/{!(jssm-dot),}.{js,ts}"]
25
+ collectCoverageFrom: ["src/ts/**/{!(jssm-dot),}.{js,ts}"],
26
+
27
+ reporters: [
28
+ ['default', {}],
29
+ ['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'metrics.json', fullOutput: false }],
30
+ // ['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'extended-metrics.json', fullOutput: true }],
31
+ ]
26
32
 
27
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.74.0",
3
+ "version": "5.75.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },
@@ -28,15 +28,9 @@
28
28
  "browser": "dist/jssm.es5.iife.js",
29
29
  "types": "./jssm.d.ts",
30
30
  "scripts": {
31
- "jest-spec": "jest -c jest-spec.config.js --color --verbose",
32
- "jest-stoch": "jest -c jest-stoch.config.js --color --verbose",
33
- "jest": "npm run jest-spec",
34
- "jjest": "npm run jest-spec && npm run jest-stoch",
31
+ "jest": "jest -c jest-stoch.config.js --color --verbose && jest -c jest-spec.config.js --color --verbose",
35
32
  "test": "npm run make && npm run jest",
36
- "rmgenerated": "rm -f src/ts/jssm-dot.ts && rm -f src/ts/version.ts && rm -f *.d.ts",
37
- "removedir": "rm -rf dist && rm -rf docs",
38
- "createdir": "mkdir dist && mkdir docs",
39
- "clean": "npm run removedir && npm run rmgenerated && npm run createdir",
33
+ "clean": "rm -rf dist && rm -rf docs && cd coverage && rm -rf cloc && cd .. && rm -f src/ts/jssm-dot.ts && rm -f src/ts/version.ts && rm -f *.d.ts && mkdir dist && mkdir docs && cd coverage && mkdir cloc && cd ..",
40
34
  "peg": "rm -f src/ts/jssm-dot.js && pegjs src/ts/jssm-dot.peg && node src/buildjs/fixparser.js && rm src/ts/jssm-dot.js",
41
35
  "make_cjs": "rollup -c",
42
36
  "make_iife": "rollup -c rollup.config.iife.js",
@@ -47,7 +41,7 @@
47
41
  "audit": "text_audit -r -t major MAJOR wasteful WASTEFUL any mixed fixme FIXME checkme CHECKME testme TESTME stochable STOCHABLE todo TODO comeback COMEBACK whargarbl WHARGARBL -g ./src/ts/**/*.{js,ts}",
48
42
  "vet": "npm run eslint && npm run audit",
49
43
  "benny": "node ./src/buildjs/benchmark.js",
50
- "build": "npm run vet && npm run test && npm run site && npm run changelog && npm run docs && npm run readme",
44
+ "build": "npm run vet && npm run test && npm run site && npm run changelog && npm run docs && npm run cloc && npm run readme",
51
45
  "clean_bench": "npm run test && npm run benny",
52
46
  "qbuild": "npm run test",
53
47
  "ci_build": "npm run vet && npm run test",
@@ -56,7 +50,8 @@
56
50
  "min_cjs": "mv dist/jssm.es5.cjs.js dist/jssm.es5.cjs.nonmin.js && terser dist/jssm.es5.cjs.nonmin.js > dist/jssm.es5.cjs.js",
57
51
  "site": "cp src/site/* docs/ && cp -r src/assets docs/assets/",
58
52
  "docs": "typedoc src/ts/jssm.ts --options typedoc-options.js",
59
- "readme": "rm ./README.md && node ./src/buildjs/make_readme.js",
53
+ "cloc": "cloc --quiet ./src/** --exclude-list-file=./.clocignore --3 --json --out=./coverage/cloc/report_wt.json && cloc --quiet ./src/** --exclude-list-file=./.clocignore --exclude-dir=tests --3 --json --out=./coverage/cloc/report_nt.json && node ./src/buildjs/cloc_report.js",
54
+ "readme": "rm -f ./README.md && node ./src/buildjs/make_readme.js",
60
55
  "changelog": "rm -f CHANGELOG.md && rm -f ./src/doc_md/CHANGELOG.md && better_git_changelog -b && cp CHANGELOG.* ./src/doc_md/"
61
56
  },
62
57
  "repository": {
@@ -110,6 +105,7 @@
110
105
  "@typescript-eslint/eslint-plugin": "^4.13.0",
111
106
  "@typescript-eslint/parser": "^4.13.0",
112
107
  "benny": "^3.7.1",
108
+ "cloc": "^2.9.0",
113
109
  "coveralls": "^3.0.11",
114
110
  "eslint": "^7.32.0",
115
111
  "eslint-plugin-fp": "^2.3.0",
@@ -128,11 +124,12 @@
128
124
  "text_audit": "^0.9.3",
129
125
  "ts-jest": "^27.0.7",
130
126
  "typedoc": "^0.22.15",
131
- "typescript": "^4.6.4"
127
+ "typescript": "^4.6.4",
128
+ "xml2js": "^0.4.23"
132
129
  },
133
130
  "dependencies": {
134
- "circular_buffer_js": "^1.10.0",
135
131
  "better_git_changelog": "^1.6.1",
132
+ "circular_buffer_js": "^1.10.0",
136
133
  "reduce-to-639-1": "^1.0.4"
137
134
  }
138
135
  }