js-build-tools 6.6.0 → 6.7.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.
Files changed (169) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +762 -701
  3. package/babel.config.js +28 -28
  4. package/dist/build.js +75 -75
  5. package/dist/bundle.js +19 -19
  6. package/dist/bundleMinify.js +7 -7
  7. package/dist/compileReadme.js +4 -4
  8. package/dist/copyFiles.js +17 -17
  9. package/dist/copyFonts.js +4 -4
  10. package/dist/default.js +5 -5
  11. package/dist/dist.js +4 -4
  12. package/dist/distMinify.js +4 -4
  13. package/dist/docs.js +7 -7
  14. package/dist/images.js +4 -4
  15. package/dist/jsdocDocs.js +6 -6
  16. package/dist/lint.js +16 -16
  17. package/dist/partials/addToReadme.js +9 -9
  18. package/dist/partials/beginWatcher.js +4 -4
  19. package/dist/partials/clean.js +5 -5
  20. package/dist/partials/copyFor.js +9 -9
  21. package/dist/partials/distFor.js +6 -6
  22. package/dist/partials/distForSrc.js +5 -5
  23. package/dist/partials/distSeries.js +7 -7
  24. package/dist/partials/imagesFor.js +93 -93
  25. package/dist/partials/jsdocDocsFor.js +46 -46
  26. package/dist/partials/lintSource.js +51 -51
  27. package/dist/partials/loadPeer.js +99 -99
  28. package/dist/partials/loadPlaywright.js +14 -14
  29. package/dist/partials/minifyFor.js +20 -20
  30. package/dist/partials/neostandardLint.js +175 -175
  31. package/dist/partials/readmeTemplate.js +4 -4
  32. package/dist/partials/removeDirectory.js +11 -11
  33. package/dist/partials/resolveDocsMethod.js +6 -6
  34. package/dist/partials/runOnChange.js +31 -31
  35. package/dist/partials/sassFor.js +6 -6
  36. package/dist/partials/serveStatic.js +9 -9
  37. package/dist/partials/tsFor.js +32 -32
  38. package/dist/partials/typeDocsFor.js +264 -264
  39. package/dist/partials.js +176 -176
  40. package/dist/sourceLint.js +18 -18
  41. package/dist/test-helpers/isolateGulpCache.js +24 -24
  42. package/dist/test-helpers/setUp.js +4 -4
  43. package/dist/testFull.js +5 -5
  44. package/dist/testQuick.js +5 -5
  45. package/dist/typeDocs.js +5 -5
  46. package/dist/typeScript.js +4 -4
  47. package/dist/utilities/convertMjsFilesForDocs.js +12 -12
  48. package/dist/utilities/dotGet.js +54 -54
  49. package/dist/utilities/dotNotate.js +79 -79
  50. package/dist/utilities/dotSet.js +45 -45
  51. package/dist/utilities/esmNamedExportsToCjs.js +15 -15
  52. package/dist/utilities/getBundleConfigs.js +9 -9
  53. package/dist/utilities/isObject.js +6 -6
  54. package/dist/utilities/strAfter.js +7 -7
  55. package/dist/utilities/strBefore.js +7 -7
  56. package/dist/watchFull.js +4 -4
  57. package/dist/watchTest.js +4 -4
  58. package/functions/build.mjs +72 -72
  59. package/functions/build.test.mjs +763 -759
  60. package/functions/bundle.mjs +44 -44
  61. package/functions/bundle.test.mjs +219 -219
  62. package/functions/bundleMinify.mjs +16 -16
  63. package/functions/bundleMinify.test.mjs +37 -37
  64. package/functions/compileReadme.mjs +9 -9
  65. package/functions/compileReadme.test.mjs +18 -18
  66. package/functions/copyFiles.mjs +32 -32
  67. package/functions/copyFiles.test.mjs +78 -78
  68. package/functions/copyFonts.mjs +9 -9
  69. package/functions/copyFonts.test.mjs +32 -32
  70. package/functions/default.mjs +12 -12
  71. package/functions/default.test.mjs +33 -33
  72. package/functions/dist.mjs +8 -8
  73. package/functions/dist.test.mjs +44 -44
  74. package/functions/distMinify.mjs +9 -9
  75. package/functions/distMinify.test.mjs +15 -15
  76. package/functions/docs.mjs +13 -13
  77. package/functions/docs.test.mjs +45 -45
  78. package/functions/gulpConfigEntries.test.mjs +23 -23
  79. package/functions/images.mjs +8 -8
  80. package/functions/images.test.mjs +142 -142
  81. package/functions/jsdocDocs.mjs +10 -10
  82. package/functions/jsdocEsmExports.test.mjs +24 -24
  83. package/functions/lint.mjs +9 -9
  84. package/functions/partials/addToReadme.mjs +25 -25
  85. package/functions/partials/addToReadme.test.mjs +34 -34
  86. package/functions/partials/beginWatcher.mjs +9 -9
  87. package/functions/partials/beginWatcher.test.mjs +19 -19
  88. package/functions/partials/clean.mjs +13 -13
  89. package/functions/partials/clean.test.mjs +22 -22
  90. package/functions/partials/copyFor.mjs +15 -15
  91. package/functions/partials/copyFor.test.mjs +53 -53
  92. package/functions/partials/distFor.mjs +22 -22
  93. package/functions/partials/distFor.test.mjs +195 -195
  94. package/functions/partials/distForSrc.mjs +11 -11
  95. package/functions/partials/distForSrc.test.mjs +18 -18
  96. package/functions/partials/distSeries.mjs +21 -21
  97. package/functions/partials/distSeries.test.mjs +34 -34
  98. package/functions/partials/imagesFor.mjs +83 -83
  99. package/functions/partials/imagesFor.test.mjs +287 -287
  100. package/functions/partials/jsdocDocsFor.mjs +163 -152
  101. package/functions/partials/jsdocDocsFor.test.mjs +182 -152
  102. package/functions/partials/lintSource.mjs +41 -41
  103. package/functions/partials/loadPeer.mjs +76 -76
  104. package/functions/partials/loadPeer.test.mjs +58 -58
  105. package/functions/partials/loadPlaywright.mjs +23 -23
  106. package/functions/partials/loadPlaywright.test.mjs +70 -70
  107. package/functions/partials/minifyFor.mjs +15 -15
  108. package/functions/partials/minifyFor.test.mjs +49 -49
  109. package/functions/partials/neostandardLint.mjs +142 -142
  110. package/functions/partials/neostandardLint.test.mjs +131 -131
  111. package/functions/partials/readmeTemplate.mjs +12 -12
  112. package/functions/partials/readmeTemplate.test.mjs +34 -34
  113. package/functions/partials/removeDirectory.mjs +34 -34
  114. package/functions/partials/removeDirectory.test.mjs +72 -72
  115. package/functions/partials/resolveDocsMethod.mjs +10 -10
  116. package/functions/partials/resolveDocsMethod.test.mjs +33 -33
  117. package/functions/partials/runOnChange.mjs +54 -54
  118. package/functions/partials/runOnChange.test.mjs +95 -95
  119. package/functions/partials/sassFor.mjs +25 -25
  120. package/functions/partials/sassFor.test.mjs +81 -81
  121. package/functions/partials/serveStatic.mjs +47 -47
  122. package/functions/partials/serveStatic.test.mjs +71 -71
  123. package/functions/partials/tsFor.mjs +92 -92
  124. package/functions/partials/tsFor.test.mjs +88 -88
  125. package/functions/partials/typeDocsFor.mjs +231 -231
  126. package/functions/partials/typeDocsFor.test.mjs +263 -263
  127. package/functions/partials.mjs +31 -31
  128. package/functions/partials.test.mjs +7 -7
  129. package/functions/sass.mjs +4 -4
  130. package/functions/sass.test.mjs +31 -31
  131. package/functions/sourceLint.mjs +13 -13
  132. package/functions/sourceLint.test.mjs +166 -166
  133. package/functions/test-helpers/isolateGulpCache.mjs +16 -16
  134. package/functions/test-helpers/neostandardLintWithRealNeostandard.mjs +40 -40
  135. package/functions/test-helpers/setUp.mjs +100 -100
  136. package/functions/test-helpers/setUp.test.mjs +19 -19
  137. package/functions/testFull.mjs +17 -17
  138. package/functions/testFull.test.mjs +17 -17
  139. package/functions/testHelpers.mjs +10 -10
  140. package/functions/testHelpers.test.mjs +7 -7
  141. package/functions/testQuick.mjs +17 -17
  142. package/functions/testQuick.test.mjs +17 -17
  143. package/functions/typeDocs.mjs +9 -9
  144. package/functions/typeDocs.test.mjs +11 -11
  145. package/functions/typeScript.mjs +8 -8
  146. package/functions/typeScript.test.mjs +11 -11
  147. package/functions/utilities/convertMjsFilesForDocs.mjs +34 -34
  148. package/functions/utilities/convertMjsFilesForDocs.test.mjs +58 -58
  149. package/functions/utilities/dotGet.mjs +49 -49
  150. package/functions/utilities/dotNotate.mjs +73 -73
  151. package/functions/utilities/dotNotate.test.mjs +41 -41
  152. package/functions/utilities/dotSet.mjs +40 -40
  153. package/functions/utilities/esmNamedExportsToCjs.mjs +30 -30
  154. package/functions/utilities/esmNamedExportsToCjs.test.mjs +47 -47
  155. package/functions/utilities/getBundleConfigs.mjs +30 -30
  156. package/functions/utilities/isObject.mjs +8 -8
  157. package/functions/utilities/strAfter.mjs +12 -12
  158. package/functions/utilities/strBefore.mjs +12 -12
  159. package/functions/watchFull.mjs +9 -9
  160. package/functions/watchFull.test.mjs +41 -41
  161. package/functions/watchTest.mjs +10 -10
  162. package/functions/watchTest.test.mjs +49 -49
  163. package/gulp.config.js +4 -4
  164. package/gulp.config.mjs +344 -340
  165. package/gulpfile.base.js +51 -51
  166. package/gulpfile.base.mjs +29 -29
  167. package/jsdoc.base.js +16 -16
  168. package/jsdoc.esmExports.js +17 -17
  169. package/package.json +146 -145
package/dist/partials.js CHANGED
@@ -1,177 +1,177 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "addToReadme", {
7
- enumerable: true,
8
- get: function () {
9
- return _addToReadme.addToReadme;
10
- }
11
- });
12
- Object.defineProperty(exports, "beginWatcher", {
13
- enumerable: true,
14
- get: function () {
15
- return _beginWatcher.beginWatcher;
16
- }
17
- });
18
- Object.defineProperty(exports, "clean", {
19
- enumerable: true,
20
- get: function () {
21
- return _clean.clean;
22
- }
23
- });
24
- Object.defineProperty(exports, "copyFor", {
25
- enumerable: true,
26
- get: function () {
27
- return _copyFor.copyFor;
28
- }
29
- });
30
- Object.defineProperty(exports, "distFor", {
31
- enumerable: true,
32
- get: function () {
33
- return _distFor.distFor;
34
- }
35
- });
36
- Object.defineProperty(exports, "distForSrc", {
37
- enumerable: true,
38
- get: function () {
39
- return _distForSrc.distForSrc;
40
- }
41
- });
42
- Object.defineProperty(exports, "distSeries", {
43
- enumerable: true,
44
- get: function () {
45
- return _distSeries.distSeries;
46
- }
47
- });
48
- Object.defineProperty(exports, "imagesFor", {
49
- enumerable: true,
50
- get: function () {
51
- return _imagesFor.imagesFor;
52
- }
53
- });
54
- Object.defineProperty(exports, "importModule", {
55
- enumerable: true,
56
- get: function () {
57
- return _loadPeer.importModule;
58
- }
59
- });
60
- Object.defineProperty(exports, "importPeer", {
61
- enumerable: true,
62
- get: function () {
63
- return _loadPeer.importPeer;
64
- }
65
- });
66
- Object.defineProperty(exports, "jsdocDocsFor", {
67
- enumerable: true,
68
- get: function () {
69
- return _jsdocDocsFor.jsdocDocsFor;
70
- }
71
- });
72
- Object.defineProperty(exports, "launchBrowser", {
73
- enumerable: true,
74
- get: function () {
75
- return _loadPlaywright.launchBrowser;
76
- }
77
- });
78
- Object.defineProperty(exports, "lintSource", {
79
- enumerable: true,
80
- get: function () {
81
- return _lintSource.lintSource;
82
- }
83
- });
84
- Object.defineProperty(exports, "loadPlaywright", {
85
- enumerable: true,
86
- get: function () {
87
- return _loadPlaywright.loadPlaywright;
88
- }
89
- });
90
- Object.defineProperty(exports, "minifyFor", {
91
- enumerable: true,
92
- get: function () {
93
- return _minifyFor.minifyFor;
94
- }
95
- });
96
- Object.defineProperty(exports, "neostandardLint", {
97
- enumerable: true,
98
- get: function () {
99
- return _neostandardLint.neostandardLint;
100
- }
101
- });
102
- Object.defineProperty(exports, "readmeTemplate", {
103
- enumerable: true,
104
- get: function () {
105
- return _readmeTemplate.readmeTemplate;
106
- }
107
- });
108
- Object.defineProperty(exports, "removeDirectory", {
109
- enumerable: true,
110
- get: function () {
111
- return _removeDirectory.removeDirectory;
112
- }
113
- });
114
- Object.defineProperty(exports, "requirePeer", {
115
- enumerable: true,
116
- get: function () {
117
- return _loadPeer.requirePeer;
118
- }
119
- });
120
- Object.defineProperty(exports, "resolveDocsMethod", {
121
- enumerable: true,
122
- get: function () {
123
- return _resolveDocsMethod.resolveDocsMethod;
124
- }
125
- });
126
- Object.defineProperty(exports, "runOnChange", {
127
- enumerable: true,
128
- get: function () {
129
- return _runOnChange.runOnChange;
130
- }
131
- });
132
- Object.defineProperty(exports, "sassFor", {
133
- enumerable: true,
134
- get: function () {
135
- return _sassFor.sassFor;
136
- }
137
- });
138
- Object.defineProperty(exports, "serveStatic", {
139
- enumerable: true,
140
- get: function () {
141
- return _serveStatic.serveStatic;
142
- }
143
- });
144
- Object.defineProperty(exports, "tsFor", {
145
- enumerable: true,
146
- get: function () {
147
- return _tsFor.tsFor;
148
- }
149
- });
150
- Object.defineProperty(exports, "typeDocsFor", {
151
- enumerable: true,
152
- get: function () {
153
- return _typeDocsFor.typeDocsFor;
154
- }
155
- });
156
- var _addToReadme = require("./partials/addToReadme.js");
157
- var _beginWatcher = require("./partials/beginWatcher.js");
158
- var _clean = require("./partials/clean.js");
159
- var _copyFor = require("./partials/copyFor.js");
160
- var _distFor = require("./partials/distFor.js");
161
- var _distForSrc = require("./partials/distForSrc.js");
162
- var _distSeries = require("./partials/distSeries.js");
163
- var _imagesFor = require("./partials/imagesFor.js");
164
- var _loadPeer = require("./partials/loadPeer.js");
165
- var _jsdocDocsFor = require("./partials/jsdocDocsFor.js");
166
- var _loadPlaywright = require("./partials/loadPlaywright.js");
167
- var _lintSource = require("./partials/lintSource.js");
168
- var _minifyFor = require("./partials/minifyFor.js");
169
- var _neostandardLint = require("./partials/neostandardLint.js");
170
- var _readmeTemplate = require("./partials/readmeTemplate.js");
171
- var _removeDirectory = require("./partials/removeDirectory.js");
172
- var _resolveDocsMethod = require("./partials/resolveDocsMethod.js");
173
- var _runOnChange = require("./partials/runOnChange.js");
174
- var _sassFor = require("./partials/sassFor.js");
175
- var _serveStatic = require("./partials/serveStatic.js");
176
- var _tsFor = require("./partials/tsFor.js");
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "addToReadme", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _addToReadme.addToReadme;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "beginWatcher", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _beginWatcher.beginWatcher;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "clean", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _clean.clean;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "copyFor", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _copyFor.copyFor;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "distFor", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _distFor.distFor;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "distForSrc", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _distForSrc.distForSrc;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "distSeries", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _distSeries.distSeries;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "imagesFor", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _imagesFor.imagesFor;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "importModule", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _loadPeer.importModule;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "importPeer", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _loadPeer.importPeer;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "jsdocDocsFor", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _jsdocDocsFor.jsdocDocsFor;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "launchBrowser", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _loadPlaywright.launchBrowser;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "lintSource", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _lintSource.lintSource;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "loadPlaywright", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _loadPlaywright.loadPlaywright;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "minifyFor", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _minifyFor.minifyFor;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "neostandardLint", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _neostandardLint.neostandardLint;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "readmeTemplate", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _readmeTemplate.readmeTemplate;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "removeDirectory", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _removeDirectory.removeDirectory;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "requirePeer", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _loadPeer.requirePeer;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "resolveDocsMethod", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _resolveDocsMethod.resolveDocsMethod;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "runOnChange", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _runOnChange.runOnChange;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "sassFor", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _sassFor.sassFor;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "serveStatic", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _serveStatic.serveStatic;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "tsFor", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _tsFor.tsFor;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "typeDocsFor", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _typeDocsFor.typeDocsFor;
154
+ }
155
+ });
156
+ var _addToReadme = require("./partials/addToReadme.js");
157
+ var _beginWatcher = require("./partials/beginWatcher.js");
158
+ var _clean = require("./partials/clean.js");
159
+ var _copyFor = require("./partials/copyFor.js");
160
+ var _distFor = require("./partials/distFor.js");
161
+ var _distForSrc = require("./partials/distForSrc.js");
162
+ var _distSeries = require("./partials/distSeries.js");
163
+ var _imagesFor = require("./partials/imagesFor.js");
164
+ var _loadPeer = require("./partials/loadPeer.js");
165
+ var _jsdocDocsFor = require("./partials/jsdocDocsFor.js");
166
+ var _loadPlaywright = require("./partials/loadPlaywright.js");
167
+ var _lintSource = require("./partials/lintSource.js");
168
+ var _minifyFor = require("./partials/minifyFor.js");
169
+ var _neostandardLint = require("./partials/neostandardLint.js");
170
+ var _readmeTemplate = require("./partials/readmeTemplate.js");
171
+ var _removeDirectory = require("./partials/removeDirectory.js");
172
+ var _resolveDocsMethod = require("./partials/resolveDocsMethod.js");
173
+ var _runOnChange = require("./partials/runOnChange.js");
174
+ var _sassFor = require("./partials/sassFor.js");
175
+ var _serveStatic = require("./partials/serveStatic.js");
176
+ var _tsFor = require("./partials/tsFor.js");
177
177
  var _typeDocsFor = require("./partials/typeDocsFor.js");
@@ -1,19 +1,19 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.sourceLint = void 0;
7
- var _lintSource = require("./partials/lintSource.js");
8
- /**
9
- * Applies neostandard linting (js-build-tools' chosen style) to the real, hand-written source - not the compiled
10
- * dist/browser output, which is generated and so was never going to pass a hand-authored-code style check (every
11
- * compiler/bundler emits its own boilerplate - import aliasing, interop headers - that only looks like a style
12
- * violation). Includes test files: there is no reason to hold tests to a lower style bar than the rest of the
13
- * source. When typescript.enabled, the real TypeScript source is linted too, with type-aware rules. Runs as part of
14
- * `build`, where remaining errors are reported but never fail it.
15
- * @memberOf module:js-build-tools
16
- * @returns {*}
17
- */
18
- const sourceLint = () => (0, _lintSource.lintSource)();
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.sourceLint = void 0;
7
+ var _lintSource = require("./partials/lintSource.js");
8
+ /**
9
+ * Applies neostandard linting (js-build-tools' chosen style) to the real, hand-written source - not the compiled
10
+ * dist/browser output, which is generated and so was never going to pass a hand-authored-code style check (every
11
+ * compiler/bundler emits its own boilerplate - import aliasing, interop headers - that only looks like a style
12
+ * violation). Includes test files: there is no reason to hold tests to a lower style bar than the rest of the
13
+ * source. When typescript.enabled, the real TypeScript source is linted too, with type-aware rules. Runs as part of
14
+ * `build`, where remaining errors are reported but never fail it.
15
+ * @memberOf module:js-build-tools
16
+ * @returns {*}
17
+ */
18
+ const sourceLint = () => (0, _lintSource.lintSource)();
19
19
  exports.sourceLint = sourceLint;
@@ -1,25 +1,25 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isolateGulpCache = void 0;
7
- var _gulpCache = _interopRequireDefault(require("gulp-cache"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- /**
10
- * Give this test file its own gulp-cache folder, and return a function that clears only that folder. gulp-cache
11
- * otherwise keeps one cache in os.tmpdir() for every process, so a cache.clearAll() in one Jest worker could wipe it
12
- * while another worker's images task was still using it, and gulp-cache then silently dropped that worker's
13
- * images. Jest loads gulp-cache separately for each test file, so this only changes the copy that file uses.
14
- * @memberOf module:testHelpers
15
- * @param {string} name - Unique per test file, used in the cache folder name.
16
- * @returns {function(): Promise<void>} Clears this test file's cache.
17
- */
18
- const isolateGulpCache = name => {
19
- const fileCache = new _gulpCache.default.Cache({
20
- cacheDirName: `js-build-tools-test-${name}`
21
- });
22
- _gulpCache.default.defaultOptions.fileCache = fileCache;
23
- return () => new Promise((resolve, reject) => fileCache.clear(null, error => error ? reject(error) : resolve()));
24
- };
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isolateGulpCache = void 0;
7
+ var _gulpCache = _interopRequireDefault(require("gulp-cache"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * Give this test file its own gulp-cache folder, and return a function that clears only that folder. gulp-cache
11
+ * otherwise keeps one cache in os.tmpdir() for every process, so a cache.clearAll() in one Jest worker could wipe it
12
+ * while another worker's images task was still using it, and gulp-cache then silently dropped that worker's
13
+ * images. Jest loads gulp-cache separately for each test file, so this only changes the copy that file uses.
14
+ * @memberOf module:testHelpers
15
+ * @param {string} name - Unique per test file, used in the cache folder name.
16
+ * @returns {function(): Promise<void>} Clears this test file's cache.
17
+ */
18
+ const isolateGulpCache = name => {
19
+ const fileCache = new _gulpCache.default.Cache({
20
+ cacheDirName: `js-build-tools-test-${name}`
21
+ });
22
+ _gulpCache.default.defaultOptions.fileCache = fileCache;
23
+ return () => new Promise((resolve, reject) => fileCache.clear(null, error => error ? reject(error) : resolve()));
24
+ };
25
25
  exports.isolateGulpCache = isolateGulpCache;
@@ -58,10 +58,10 @@ function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e;
58
58
  let tempDir = 'test-temp/';
59
59
  let srcPath = `${tempDir}src`;
60
60
 
61
- /**
62
- * Update the gulp configurations with the test data. Set the test directory where temp files will be created for testing.
63
- * @memberOf module:testHelpers
64
- * @param {string} testDir
61
+ /**
62
+ * Update the gulp configurations with the test data. Set the test directory where temp files will be created for testing.
63
+ * @memberOf module:testHelpers
64
+ * @param {string} testDir
65
65
  */
66
66
  const setDefaults = (testDir = 'test-temp') => {
67
67
  tempDir = `${testDir}/`;
package/dist/testFull.js CHANGED
@@ -9,11 +9,11 @@ var gulpConfig = _interopRequireWildcard(require("../gulp.config.js"));
9
9
  var _jest = require("jest");
10
10
  var cache;
11
11
  function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
12
- /**
13
- * Run all tests with jest.
14
- * Configure where tests are located by using 'testPath'.
15
- * @memberOf module:js-build-tools
16
- * @returns {Promise<*>}
12
+ /**
13
+ * Run all tests with jest.
14
+ * Configure where tests are located by using 'testPath'.
15
+ * @memberOf module:js-build-tools
16
+ * @returns {Promise<*>}
17
17
  */
18
18
  const testFull = () => {
19
19
  let testPath = gulpConfig.get('test.path');
package/dist/testQuick.js CHANGED
@@ -9,11 +9,11 @@ var gulpConfig = _interopRequireWildcard(require("../gulp.config.js"));
9
9
  var _jest = require("jest");
10
10
  var cache;
11
11
  function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
12
- /**
13
- * Run the Jest tests for files which have been modified (based on git status).
14
- * Configure where tests are located by using 'testPath'.
15
- * @memberOf module:js-build-tools
16
- * @returns {Promise<*>}
12
+ /**
13
+ * Run the Jest tests for files which have been modified (based on git status).
14
+ * Configure where tests are located by using 'testPath'.
15
+ * @memberOf module:js-build-tools
16
+ * @returns {Promise<*>}
17
17
  */
18
18
  const testQuick = () => {
19
19
  let testPath = gulpConfig.get('test.path');
package/dist/typeDocs.js CHANGED
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.typeDocs = void 0;
7
7
  var _typeDocsFor = require("./partials/typeDocsFor.js");
8
- /**
9
- * Generate the HTML documentation of a TypeScript project from its source, with the modules mirroring the source
10
- * folders. Turn it on with docs.enabled, see {@link module:partials.typeDocsFor}.
11
- * @memberOf module:js-build-tools
12
- * @returns {Function}
8
+ /**
9
+ * Generate the HTML documentation of a TypeScript project from its source, with the modules mirroring the source
10
+ * folders. Turn it on with docs.enabled, see {@link module:partials.typeDocsFor}.
11
+ * @memberOf module:js-build-tools
12
+ * @returns {Function}
13
13
  */
14
14
  const typeDocs = exports.typeDocs = (0, _typeDocsFor.typeDocsFor)();
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.typeScript = void 0;
7
7
  var _tsFor = require("./partials/tsFor.js");
8
- /**
9
- * Simplified typescript task using tsFor.
10
- * @memberOf module:js-build-tools
11
- * @returns {Function}
8
+ /**
9
+ * Simplified typescript task using tsFor.
10
+ * @memberOf module:js-build-tools
11
+ * @returns {Function}
12
12
  */
13
13
  const typeScript = exports.typeScript = (0, _tsFor.tsFor)();
@@ -11,18 +11,18 @@ var _os = _interopRequireDefault(require("os"));
11
11
  var _path = _interopRequireDefault(require("path"));
12
12
  var _esmNamedExportsToCjs = require("./esmNamedExportsToCjs.js");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- /**
15
- * Writes a rewritten (see {@link esmNamedExportsToCjs}) copy of each given `.mjs` file into a fresh, unique
16
- * directory under the OS temp directory, with a `.js` extension - jsdoc-to-markdown only recognizes `.js` as a
17
- * documentable file, regardless of whether its contents are actually CommonJS or ESM (it parses the real ESM
18
- * syntax of the rest of a file fine; the extension is the only thing it filters on). Writing outside the project
19
- * tree means there is nothing to gitignore and nothing left behind in the project - call the returned `cleanUp`
20
- * once done (for example, right after jsdoc-to-markdown has read the files) to remove the temp directory.
21
- * @memberOf module:utilities
22
- * @param {Array<string>} mjsFilePaths - Real `.mjs` files to convert. An empty array is a safe, cheap no-op.
23
- * @returns {{filePaths: Array<string>, cleanUp: function(): void}} The temp `.js` file paths to pass to
24
- * jsdoc-to-markdown instead of the real `.mjs` ones, and a function to remove the temp directory afterward.
25
- * @private
14
+ /**
15
+ * Writes a rewritten (see {@link esmNamedExportsToCjs}) copy of each given `.mjs` file into a fresh, unique
16
+ * directory under the OS temp directory, with a `.js` extension - jsdoc-to-markdown only recognizes `.js` as a
17
+ * documentable file, regardless of whether its contents are actually CommonJS or ESM (it parses the real ESM
18
+ * syntax of the rest of a file fine; the extension is the only thing it filters on). Writing outside the project
19
+ * tree means there is nothing to gitignore and nothing left behind in the project - call the returned `cleanUp`
20
+ * once done (for example, right after jsdoc-to-markdown has read the files) to remove the temp directory.
21
+ * @memberOf module:utilities
22
+ * @param {Array<string>} mjsFilePaths - Real `.mjs` files to convert. An empty array is a safe, cheap no-op.
23
+ * @returns {{filePaths: Array<string>, cleanUp: function(): void}} The temp `.js` file paths to pass to
24
+ * jsdoc-to-markdown instead of the real `.mjs` ones, and a function to remove the temp directory afterward.
25
+ * @private
26
26
  */
27
27
  const convertMjsFilesForDocs = (mjsFilePaths = []) => {
28
28
  if (mjsFilePaths.length === 0) {