js-build-tools 1.2.3 → 2.1.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 (140) hide show
  1. package/README.md +573 -250
  2. package/dist/build.js +22 -15
  3. package/dist/build.min.js +1 -1
  4. package/dist/bundle.js +11 -8
  5. package/dist/bundle.min.js +1 -1
  6. package/dist/bundleLint.js +17 -13
  7. package/dist/bundleLint.min.js +1 -1
  8. package/dist/bundleMinify.js +8 -12
  9. package/dist/bundleMinify.min.js +1 -1
  10. package/dist/compileReadme.js +8 -6
  11. package/dist/compileReadme.min.js +1 -1
  12. package/dist/default.js +12 -7
  13. package/dist/default.min.js +1 -1
  14. package/dist/dist.js +6 -2
  15. package/dist/dist.min.js +1 -1
  16. package/dist/distLint.js +15 -12
  17. package/dist/distLint.min.js +1 -1
  18. package/dist/distMinify.js +7 -12
  19. package/dist/distMinify.min.js +1 -1
  20. package/dist/partials/addToReadme.js +25 -0
  21. package/dist/partials/beginWatcher.js +16 -0
  22. package/dist/partials/clean.js +21 -0
  23. package/dist/partials/distFor.js +23 -0
  24. package/dist/partials/distForSrc.js +16 -0
  25. package/dist/partials/distSeries.js +31 -0
  26. package/dist/partials/minifyFor.js +21 -0
  27. package/dist/partials/readmeTemplate.js +18 -0
  28. package/dist/partials/runOnChange.js +63 -0
  29. package/dist/partials/tsFor.js +24 -0
  30. package/dist/partials.js +33 -0
  31. package/dist/partials.min.js +1 -0
  32. package/dist/test-helpers/circularObject.js +50 -0
  33. package/dist/test-helpers/countMatches.js +16 -0
  34. package/dist/test-helpers/deepReferenceObject.js +20 -0
  35. package/dist/test-helpers/domItem.js +33 -0
  36. package/dist/test-helpers/jsonDom.js +20 -0
  37. package/dist/test-helpers/linkedList.js +23 -0
  38. package/dist/test-helpers/logObject.js +24 -0
  39. package/dist/test-helpers/multiReferenceObject.js +20 -0
  40. package/dist/test-helpers/nodeTree.js +28 -0
  41. package/dist/test-helpers/setUp.js +127 -0
  42. package/dist/testFull.js +16 -5
  43. package/dist/testFull.min.js +1 -1
  44. package/dist/testHelpers.js +29 -194
  45. package/dist/testHelpers.min.js +1 -1
  46. package/dist/testQuick.js +18 -7
  47. package/dist/testQuick.min.js +1 -1
  48. package/dist/typeScript.js +14 -0
  49. package/dist/typeScript.min.js +1 -0
  50. package/dist/watchFull.js +9 -16
  51. package/dist/watchFull.min.js +1 -1
  52. package/dist/watchTest.js +11 -9
  53. package/dist/watchTest.min.js +1 -1
  54. package/functions/build.js +8 -5
  55. package/functions/build.test.js +59 -0
  56. package/functions/bundle.js +6 -4
  57. package/functions/bundle.test.js +68 -0
  58. package/functions/bundleLint.js +5 -3
  59. package/functions/bundleLint.test.js +61 -0
  60. package/functions/bundleMinify.js +4 -7
  61. package/functions/bundleMinify.test.js +14 -0
  62. package/functions/compileReadme.js +3 -2
  63. package/functions/compileReadme.test.js +18 -0
  64. package/functions/default.js +5 -2
  65. package/functions/default.test.js +32 -0
  66. package/functions/dist.js +3 -1
  67. package/functions/dist.test.js +43 -0
  68. package/functions/distLint.js +4 -2
  69. package/functions/distLint.test.js +58 -0
  70. package/functions/distMinify.js +4 -7
  71. package/functions/distMinify.test.js +14 -0
  72. package/functions/partials/addToReadme.js +20 -0
  73. package/functions/partials/addToReadme.test.js +28 -0
  74. package/functions/partials/beginWatcher.js +12 -0
  75. package/functions/partials/beginWatcher.test.js +18 -0
  76. package/functions/partials/clean.js +14 -0
  77. package/functions/partials/clean.test.js +20 -0
  78. package/functions/partials/distFor.js +18 -0
  79. package/functions/partials/distFor.test.js +125 -0
  80. package/functions/partials/distForSrc.js +14 -0
  81. package/functions/partials/distForSrc.test.js +17 -0
  82. package/functions/partials/distSeries.js +21 -0
  83. package/functions/partials/distSeries.test.js +33 -0
  84. package/functions/partials/minifyFor.js +16 -0
  85. package/functions/partials/minifyFor.test.js +48 -0
  86. package/functions/partials/readmeTemplate.js +15 -0
  87. package/functions/partials/readmeTemplate.test.js +33 -0
  88. package/functions/partials/runOnChange.js +57 -0
  89. package/functions/partials/runOnChange.test.js +93 -0
  90. package/functions/partials/tsFor.js +21 -0
  91. package/functions/partials/tsFor.test.js +44 -0
  92. package/functions/partials.js +32 -0
  93. package/functions/partials.test.js +7 -0
  94. package/functions/test-helpers/circularObject.js +28 -0
  95. package/functions/test-helpers/circularObject.test.js +14 -0
  96. package/functions/test-helpers/countMatches.js +11 -0
  97. package/functions/test-helpers/countMatches.test.js +9 -0
  98. package/functions/test-helpers/deepReferenceObject.js +25 -0
  99. package/functions/test-helpers/deepReferenceObject.test.js +7 -0
  100. package/functions/test-helpers/domItem.js +31 -0
  101. package/functions/test-helpers/domItem.test.js +12 -0
  102. package/functions/test-helpers/jsonDom.js +16 -0
  103. package/functions/test-helpers/jsonDom.test.js +12 -0
  104. package/functions/test-helpers/linkedList.js +10 -0
  105. package/functions/test-helpers/linkedList.test.js +22 -0
  106. package/functions/test-helpers/logObject.js +18 -0
  107. package/functions/test-helpers/logObject.test.js +20 -0
  108. package/functions/test-helpers/multiReferenceObject.js +25 -0
  109. package/functions/test-helpers/multiReferenceObject.test.js +14 -0
  110. package/functions/test-helpers/nodeTree.js +11 -0
  111. package/functions/test-helpers/nodeTree.test.js +18 -0
  112. package/functions/test-helpers/setUp.js +67 -0
  113. package/functions/test-helpers/setUp.test.js +18 -0
  114. package/functions/testFull.js +13 -3
  115. package/functions/testFull.test.js +16 -0
  116. package/functions/testHelpers.js +27 -137
  117. package/functions/testHelpers.test.js +3 -96
  118. package/functions/testQuick.js +12 -2
  119. package/functions/testQuick.test.js +16 -0
  120. package/functions/typeScript.js +11 -0
  121. package/functions/typeScript.test.js +10 -0
  122. package/functions/watchFull.js +6 -12
  123. package/functions/watchFull.test.js +40 -0
  124. package/functions/watchTest.js +4 -2
  125. package/functions/watchTest.test.js +48 -0
  126. package/gulp.config.js +161 -16
  127. package/gulpfile.base.js +9 -0
  128. package/package.json +1 -1
  129. package/dist/addToReadme.js +0 -22
  130. package/dist/addToReadme.min.js +0 -1
  131. package/dist/clean.js +0 -11
  132. package/dist/clean.min.js +0 -1
  133. package/dist/distFor.js +0 -21
  134. package/dist/distFor.min.js +0 -1
  135. package/dist/readmeTemplate.js +0 -15
  136. package/dist/readmeTemplate.min.js +0 -1
  137. package/functions/addToReadme.js +0 -17
  138. package/functions/clean.js +0 -10
  139. package/functions/distFor.js +0 -15
  140. package/functions/readmeTemplate.js +0 -13
package/README.md CHANGED
@@ -31,21 +31,45 @@ module.exports = {
31
31
  distPath: 'dist',
32
32
 
33
33
  // The search pattern used for retrieving compiled distribution files.
34
- distSearch: 'dist/**/*.js',
34
+ distSearch: 'dist/**/*.js',]\
35
+
36
+ // 'true' to only generate node environment files.
37
+ nodeOnly: false,
38
+
39
+ // The name of the output documentation markdown file.
40
+ readmeFile: 'README.md',
41
+
42
+ // The directory to output the readme file in.
43
+ readmePath: './',
44
+
45
+ // Options for formatting the output readme.
46
+ readmeOptions: 'utf8',
35
47
 
36
48
  // The file which will be pre-fixed to your README.md output.
37
49
  readmeTemplate: 'MAIN.md',
50
+
51
+ // Location of files to use for compiling documentation into the readme.
52
+ readmeSearch: ['gulpfile.base.js', 'gulp.config.js', 'functions/**/!(*.test).js'],
38
53
 
54
+ // Base directory of the project.
55
+ rootPath: './',
56
+
39
57
  // The directory where your source files are stored (the files you manually created).
40
58
  srcPath: 'src',
41
59
 
42
60
  // The search pattern used for gathering source files for distribution.
43
61
  srcSearch: 'src/**/!(*.test).js',
62
+
63
+ // Additional flags for programatically running Jest Cli.
64
+ testOptions: null,
44
65
 
45
66
  // The directory where Jest test files are stored.
46
67
  // By default stored as *.test.js adjacent with the files they are testing).
47
68
  testPath: 'src',
48
69
 
70
+ // The path the tsconfig file for running typescript or false if no ts file given.
71
+ useTsConfig: 'tsconfig.json',
72
+
49
73
  // The search pattern for watching files for changes.
50
74
  watchSearch: 'src/**/*.js',
51
75
  }
@@ -102,252 +126,551 @@ Run any of the above commands with `gulp` or `npm run`.
102
126
 
103
127
  # Available functions documentation
104
128
 
105
- ## Constants
106
-
107
- <dl>
108
- <dt><a href="#logObject">logObject</a></dt>
109
- <dd><p>Log out an object in a nicely formatted way.</p>
110
- </dd>
111
- <dt><a href="#circularObject">circularObject</a> : <code>Object.&lt;string, (string|Object|Array)&gt;</code></dt>
112
- <dd><p>Multilayered node tree-like structure with parent references</p>
113
- </dd>
114
- <dt><a href="#deepReferenceObject">deepReferenceObject</a> : <code>Object.&lt;string, (string|number|Object)&gt;</code></dt>
115
- <dd><p>Sample object with deep references.</p>
116
- </dd>
117
- <dt><a href="#linkedList">linkedList</a> : <code>Object.&lt;string, (string|Object)&gt;</code></dt>
118
- <dd><p>Sample LinkedList for testing circular references.</p>
119
- </dd>
120
- <dt><a href="#jsonDom">jsonDom</a></dt>
121
- <dd><p>Sample of jsonDom object containing empty nested array and objects</p>
122
- </dd>
123
- <dt><a href="#domItem">domItem</a></dt>
124
- <dd><p>Sample of domItem child with nested child and optional details</p>
125
- </dd>
126
- <dt><a href="#multiReferenceObject">multiReferenceObject</a> : <code>Object.&lt;string, (string|number|Object)&gt;</code></dt>
127
- <dd><p>Sample of object containing multiple references.</p>
128
- </dd>
129
- <dt><a href="#nodeTree">nodeTree</a> : <code>Object.&lt;string, (string|Object|Array)&gt;</code></dt>
130
- <dd><p>Sample NodeTree for testing circular references and arrays.</p>
131
- </dd>
132
- <dt><a href="#defaultCmd">defaultCmd</a></dt>
133
- <dd><p>Recommended as the default task, runs the simple dist and bundle tasks.</p>
134
- </dd>
135
- <dt><a href="#compileReadme">compileReadme</a></dt>
136
- <dd><p>Generate the README.md file based off of the template, then append the generated documentation.</p>
137
- </dd>
138
- <dt><a href="#build">build</a></dt>
139
- <dd><p>Runs several processes to build and validate the project.
140
- Cleans, distributes (lint and minify), bundles (lint and minify), creates the readme, then runs the tests.</p>
141
- </dd>
142
- </dl>
143
-
144
- ## Functions
145
-
146
- <dl>
147
- <dt><a href="#watchTest">watchTest()</a> ⇒ <code>*</code></dt>
148
- <dd><p>Watch for changes and run the tests.</p>
149
- </dd>
150
- <dt><a href="#watchFull">watchFull()</a> ⇒ <code>*</code></dt>
151
- <dd><p>Watch for changes and run the distribution for the changed files, then bundle and test the changed files.</p>
152
- </dd>
153
- <dt><a href="#testQuick">testQuick()</a> ⇒ <code>Promise.&lt;*&gt;</code></dt>
154
- <dd><p>Run the Jest tests for files which have been modified (based on git status).</p>
155
- </dd>
156
- <dt><a href="#testFull">testFull()</a> ⇒ <code>Promise.&lt;*&gt;</code></dt>
157
- <dd><p>Run all tests with jest.</p>
158
- </dd>
159
- <dt><a href="#readmeTemplate">readmeTemplate()</a> ⇒ <code>*</code></dt>
160
- <dd><p>Copy a readme template into the README.md file.</p>
161
- </dd>
162
- <dt><a href="#distMinify">distMinify()</a> ⇒ <code>*</code></dt>
163
- <dd><p>Creates minified versions of the dist files.</p>
164
- </dd>
165
- <dt><a href="#distLint">distLint()</a> ⇒ <code>*</code></dt>
166
- <dd><p>Applies Standard code style linting to distribution files.</p>
167
- </dd>
168
- <dt><a href="#distFor">distFor(srcPath, destPath)</a> ⇒ <code>*</code></dt>
169
- <dd><p>Build the distribution for a given source pattern.</p>
170
- </dd>
171
- <dt><a href="#dist">dist()</a> ⇒ <code>*</code></dt>
172
- <dd><p>Simplified distribution tasks which will use arguments from distFor.</p>
173
- </dd>
174
- <dt><a href="#clean">clean()</a> ⇒ <code>Promise.&lt;Array.&lt;string&gt;&gt;</code> | <code>*</code></dt>
175
- <dd><p>Deletes all the distribution and browser files (used before create a new build).</p>
176
- </dd>
177
- <dt><a href="#bundleMinify">bundleMinify()</a> ⇒ <code>*</code></dt>
178
- <dd><p>Creates the minified bundle file.</p>
179
- </dd>
180
- <dt><a href="#bundleLint">bundleLint()</a> ⇒ <code>*</code></dt>
181
- <dd><p>Applies Standard code style linting to bundled file.</p>
182
- </dd>
183
- <dt><a href="#bundle">bundle()</a> ⇒ <code>*</code></dt>
184
- <dd><p>Starting at the distribution entry point, bundle all the files into a single file and store them in the specified output directory.</p>
185
- </dd>
186
- <dt><a href="#addToReadme">addToReadme()</a> ⇒ <code>string</code> | <code>Uint8Array</code></dt>
187
- <dd><p>Appends all the jsdoc comments to the readme file. Assumes empty or templated file.</p>
188
- </dd>
189
- </dl>
190
-
191
- <a name="logObject"></a>
192
-
193
- ## logObject
194
- Log out an object in a nicely formatted way.
195
-
196
- **Kind**: global constant
197
-
198
- | Param | Type | Default |
199
- | --- | --- | --- |
200
- | object | <code>Object</code> | |
201
- | [label] | <code>string</code> | <code>&quot;&#x27;logging&#x27;&quot;</code> |
202
-
203
- <a name="circularObject"></a>
204
-
205
- ## circularObject : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
206
- Multilayered node tree-like structure with parent references
207
-
208
- **Kind**: global constant
209
- <a name="deepReferenceObject"></a>
210
-
211
- ## deepReferenceObject : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
212
- Sample object with deep references.
213
-
214
- **Kind**: global constant
215
- <a name="linkedList"></a>
216
-
217
- ## linkedList : <code>Object.&lt;string, (string\|Object)&gt;</code>
218
- Sample LinkedList for testing circular references.
219
-
220
- **Kind**: global constant
221
- <a name="jsonDom"></a>
222
-
223
- ## jsonDom
224
- Sample of jsonDom object containing empty nested array and objects
225
-
226
- **Kind**: global constant
227
- <a name="domItem"></a>
228
-
229
- ## domItem
230
- Sample of domItem child with nested child and optional details
231
-
232
- **Kind**: global constant
233
- <a name="multiReferenceObject"></a>
234
-
235
- ## multiReferenceObject : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
236
- Sample of object containing multiple references.
237
-
238
- **Kind**: global constant
239
- <a name="nodeTree"></a>
240
-
241
- ## nodeTree : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
242
- Sample NodeTree for testing circular references and arrays.
243
-
244
- **Kind**: global constant
245
- <a name="defaultCmd"></a>
246
-
247
- ## defaultCmd
248
- Recommended as the default task, runs the simple dist and bundle tasks.
249
-
250
- **Kind**: global constant
251
- <a name="compileReadme"></a>
252
-
253
- ## compileReadme
254
- Generate the README.md file based off of the template, then append the generated documentation.
255
-
256
- **Kind**: global constant
257
- <a name="build"></a>
258
-
259
- ## build
260
- Runs several processes to build and validate the project.
261
- Cleans, distributes (lint and minify), bundles (lint and minify), creates the readme, then runs the tests.
262
-
263
- **Kind**: global constant
264
- <a name="watchTest"></a>
265
-
266
- ## watchTest() ⇒ <code>\*</code>
267
- Watch for changes and run the tests.
268
-
269
- **Kind**: global function
270
- <a name="watchFull"></a>
271
-
272
- ## watchFull() ⇒ <code>\*</code>
273
- Watch for changes and run the distribution for the changed files, then bundle and test the changed files.
274
-
275
- **Kind**: global function
276
- <a name="testQuick"></a>
277
-
278
- ## testQuick() ⇒ <code>Promise.&lt;\*&gt;</code>
279
- Run the Jest tests for files which have been modified (based on git status).
280
-
281
- **Kind**: global function
282
- <a name="testFull"></a>
283
-
284
- ## testFull() ⇒ <code>Promise.&lt;\*&gt;</code>
285
- Run all tests with jest.
286
-
287
- **Kind**: global function
288
- <a name="readmeTemplate"></a>
289
-
290
- ## readmeTemplate() ⇒ <code>\*</code>
291
- Copy a readme template into the README.md file.
292
-
293
- **Kind**: global function
294
- <a name="distMinify"></a>
295
-
296
- ## distMinify() ⇒ <code>\*</code>
297
- Creates minified versions of the dist files.
298
-
299
- **Kind**: global function
300
- <a name="distLint"></a>
301
-
302
- ## distLint() ⇒ <code>\*</code>
303
- Applies Standard code style linting to distribution files.
304
-
305
- **Kind**: global function
306
- <a name="distFor"></a>
307
-
308
- ## distFor(srcPath, destPath) ⇒ <code>\*</code>
309
- Build the distribution for a given source pattern.
310
-
311
- **Kind**: global function
312
-
313
- | Param | Type |
314
- | --- | --- |
315
- | srcPath | <code>string</code> \| <code>array</code> |
316
- | destPath | <code>string</code> |
317
-
318
- <a name="dist"></a>
319
-
320
- ## dist() ⇒ <code>\*</code>
321
- Simplified distribution tasks which will use arguments from distFor.
322
-
323
- **Kind**: global function
324
- <a name="clean"></a>
325
-
326
- ## clean() ⇒ <code>Promise.&lt;Array.&lt;string&gt;&gt;</code> \| <code>\*</code>
327
- Deletes all the distribution and browser files (used before create a new build).
328
-
329
- **Kind**: global function
330
- <a name="bundleMinify"></a>
331
-
332
- ## bundleMinify() ⇒ <code>\*</code>
333
- Creates the minified bundle file.
334
-
335
- **Kind**: global function
336
- <a name="bundleLint"></a>
337
-
338
- ## bundleLint() ⇒ <code>\*</code>
339
- Applies Standard code style linting to bundled file.
340
-
341
- **Kind**: global function
342
- <a name="bundle"></a>
343
-
344
- ## bundle() ⇒ <code>\*</code>
345
- Starting at the distribution entry point, bundle all the files into a single file and store them in the specified output directory.
346
-
347
- **Kind**: global function
348
- <a name="addToReadme"></a>
349
-
350
- ## addToReadme() ⇒ <code>string</code> \| <code>Uint8Array</code>
351
- Appends all the jsdoc comments to the readme file. Assumes empty or templated file.
352
-
353
- **Kind**: global function
129
+ ## Modules
130
+
131
+ <dl>
132
+ <dt><a href="#module_js-build-tools">js-build-tools</a></dt>
133
+ <dd><p>Export these functions to your own project in order to customize your build pipeline.</p>
134
+ </dd>
135
+ <dt><a href="#module_gulpConfig">gulpConfig</a></dt>
136
+ <dd><p>Modify these configurations to match your project specifications.</p>
137
+ </dd>
138
+ <dt><a href="#module_testHelpers">testHelpers</a></dt>
139
+ <dd><p>An assortment of objects that can be used in tests and some functions to help debug and write tests.</p>
140
+ </dd>
141
+ <dt><a href="#module_partials">partials</a></dt>
142
+ <dd><p>Micro-functions used as components for the main gulp functions.</p>
143
+ </dd>
144
+ </dl>
145
+
146
+ <a name="module_js-build-tools"></a>
147
+
148
+ ## js-build-tools
149
+ Export these functions to your own project in order to customize your build pipeline.
150
+
151
+ **Version**: 2.0.0
152
+ **Author**: Joshua Heagle <joshuaheagle@gmail.com>
153
+
154
+ * [js-build-tools](#module_js-build-tools)
155
+ * [.compileReadme](#module_js-build-tools.compileReadme) ⇒ <code>stream.Stream</code>
156
+ * [.watchTest()](#module_js-build-tools.watchTest) ⇒ <code>\*</code>
157
+ * [.watchFull()](#module_js-build-tools.watchFull) ⇒ <code>FSWatcher</code>
158
+ * [.typeScript()](#module_js-build-tools.typeScript) ⇒ <code>stream.Stream</code>
159
+ * [.testQuick([done], [testPath])](#module_js-build-tools.testQuick) ⇒ <code>Promise.&lt;\*&gt;</code>
160
+ * [.testFull([done], [testPath])](#module_js-build-tools.testFull) ⇒ <code>Promise.&lt;\*&gt;</code>
161
+ * [.distMinify()](#module_js-build-tools.distMinify) ⇒ <code>\*</code>
162
+ * [.distLint()](#module_js-build-tools.distLint) ⇒ <code>\*</code>
163
+ * [.dist()](#module_js-build-tools.dist) ⇒ <code>\*</code>
164
+ * [.defaultCmd([done])](#module_js-build-tools.defaultCmd) ⇒ <code>stream.Stream</code>
165
+ * [.bundleMinify()](#module_js-build-tools.bundleMinify) ⇒ <code>\*</code>
166
+ * [.bundleLint()](#module_js-build-tools.bundleLint) ⇒ <code>stream.Stream</code>
167
+ * [.bundle()](#module_js-build-tools.bundle) ⇒ <code>stream.Stream</code>
168
+ * [.build([done])](#module_js-build-tools.build) ⇒ <code>stream.Stream</code>
169
+
170
+ <a name="module_js-build-tools.compileReadme"></a>
171
+
172
+ ### js-build-tools.compileReadme ⇒ <code>stream.Stream</code>
173
+ Generate the README.md file based off of the template, then append the generated documentation.
174
+
175
+ **Kind**: static constant of [<code>js-build-tools</code>](#module_js-build-tools)
176
+ <a name="module_js-build-tools.watchTest"></a>
177
+
178
+ ### js-build-tools.watchTest() ⇒ <code>\*</code>
179
+ Watch for changes and run the tests.
180
+
181
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
182
+ <a name="module_js-build-tools.watchFull"></a>
183
+
184
+ ### js-build-tools.watchFull() ⇒ <code>FSWatcher</code>
185
+ Watch for changes and run the distribution for the changed files, then bundle and test the changed files.
186
+
187
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
188
+ <a name="module_js-build-tools.typeScript"></a>
189
+
190
+ ### js-build-tools.typeScript() ⇒ <code>stream.Stream</code>
191
+ Simplified typescript task using tsFor.
192
+
193
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
194
+ <a name="module_js-build-tools.testQuick"></a>
195
+
196
+ ### js-build-tools.testQuick([done], [testPath]) ⇒ <code>Promise.&lt;\*&gt;</code>
197
+ Run the Jest tests for files which have been modified (based on git status).
198
+
199
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
200
+
201
+ | Param | Type | Default |
202
+ | --- | --- | --- |
203
+ | [done] | <code>function</code> | <code></code> |
204
+ | [testPath] | <code>Array.&lt;string&gt;</code> \| <code>string</code> | <code>&#x27;path/config/test/files&#x27;</code> |
205
+
206
+ <a name="module_js-build-tools.testFull"></a>
207
+
208
+ ### js-build-tools.testFull([done], [testPath]) ⇒ <code>Promise.&lt;\*&gt;</code>
209
+ Run all tests with jest.
210
+
211
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
212
+
213
+ | Param | Type | Default |
214
+ | --- | --- | --- |
215
+ | [done] | <code>function</code> | <code></code> |
216
+ | [testPath] | <code>Array.&lt;string&gt;</code> \| <code>string</code> | <code>&#x27;path/config/test/files&#x27;</code> |
217
+
218
+ <a name="module_js-build-tools.distMinify"></a>
219
+
220
+ ### js-build-tools.distMinify() ⇒ <code>\*</code>
221
+ Creates minified versions of the dist files.
222
+
223
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
224
+ <a name="module_js-build-tools.distLint"></a>
225
+
226
+ ### js-build-tools.distLint() ⇒ <code>\*</code>
227
+ Applies Standard code style linting to distribution files.
228
+
229
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
230
+ <a name="module_js-build-tools.dist"></a>
231
+
232
+ ### js-build-tools.dist() ⇒ <code>\*</code>
233
+ Simplified distribution tasks which will use arguments from distFor.
234
+
235
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
236
+ <a name="module_js-build-tools.defaultCmd"></a>
237
+
238
+ ### js-build-tools.defaultCmd([done]) ⇒ <code>stream.Stream</code>
239
+ Recommended as the default task, runs the simple dist and bundle tasks.
240
+
241
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
242
+
243
+ | Param | Type | Default |
244
+ | --- | --- | --- |
245
+ | [done] | <code>function</code> | <code></code> |
246
+
247
+ <a name="module_js-build-tools.bundleMinify"></a>
248
+
249
+ ### js-build-tools.bundleMinify() ⇒ <code>\*</code>
250
+ Creates the minified bundle file.
251
+
252
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
253
+ <a name="module_js-build-tools.bundleLint"></a>
254
+
255
+ ### js-build-tools.bundleLint() ⇒ <code>stream.Stream</code>
256
+ Applies Standard code style linting to bundled file.
257
+
258
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
259
+ <a name="module_js-build-tools.bundle"></a>
260
+
261
+ ### js-build-tools.bundle() ⇒ <code>stream.Stream</code>
262
+ Starting at the distribution entry point, bundle all the files into a single file and store them in the specified output directory.
263
+
264
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
265
+ <a name="module_js-build-tools.build"></a>
266
+
267
+ ### js-build-tools.build([done]) ⇒ <code>stream.Stream</code>
268
+ Runs several processes to build and validate the project.
269
+
270
+ **Kind**: static method of [<code>js-build-tools</code>](#module_js-build-tools)
271
+
272
+ | Param | Type | Default |
273
+ | --- | --- | --- |
274
+ | [done] | <code>function</code> | <code></code> |
275
+
276
+ <a name="module_gulpConfig"></a>
277
+
278
+ ## gulpConfig
279
+ Modify these configurations to match your project specifications.
280
+
281
+ **Version**: 2.0.0
282
+ **Author**: Joshua Heagle <joshuaheagle@gmail.com>
283
+
284
+ * [gulpConfig](#module_gulpConfig)
285
+ * _static_
286
+ * [.defaultConfig([config], [path], [defaultValue])](#module_gulpConfig.defaultConfig) ⇒ <code>\*</code> \| <code>null</code>
287
+ * [.get(path, defaultValue)](#module_gulpConfig.get) ⇒ <code>\*</code> \| <code>null</code>
288
+ * [.set(path, value)](#module_gulpConfig.set) ⇒ <code>\*</code>
289
+ * _inner_
290
+ * [~ArrayableSetting](#module_gulpConfig..ArrayableSetting) : <code>Array.&lt;string&gt;</code> \| <code>string</code>
291
+ * [~BooleanSetting](#module_gulpConfig..BooleanSetting) : <code>boolean</code>
292
+ * [~FlagStringSetting](#module_gulpConfig..FlagStringSetting) : <code>false</code> \| <code>StringSetting</code>
293
+ * [~FlagsSetting](#module_gulpConfig..FlagsSetting) : <code>Object.&lt;string, BooleanSetting&gt;</code>
294
+ * [~JestTestFlags](#module_gulpConfig..JestTestFlags) : <code>FlagsSetting</code>
295
+ * [~StringSetting](#module_gulpConfig..StringSetting) : <code>string</code>
296
+ * [~Setting](#module_gulpConfig..Setting) : <code>ArrayableSetting</code> \| <code>BooleanSetting</code> \| <code>FlagsSetting</code> \| <code>StringSetting</code>
297
+ * [~Configurations](#module_gulpConfig..Configurations) : <code>Object.&lt;string, Setting&gt;</code>
298
+
299
+ <a name="module_gulpConfig.defaultConfig"></a>
300
+
301
+ ### gulpConfig.defaultConfig([config], [path], [defaultValue]) ⇒ <code>\*</code> \| <code>null</code>
302
+ Retrieve a value from an object with the path (key), return a given default if the key is not found.
303
+
304
+ **Kind**: static method of [<code>gulpConfig</code>](#module_gulpConfig)
305
+
306
+ | Param | Type | Default |
307
+ | --- | --- | --- |
308
+ | [config] | <code>Object.&lt;string, \*&gt;</code> | <code>[]</code> |
309
+ | [path] | <code>string</code> \| <code>null</code> | <code>null</code> |
310
+ | [defaultValue] | <code>\*</code> | <code></code> |
311
+
312
+ <a name="module_gulpConfig.get"></a>
313
+
314
+ ### gulpConfig.get(path, defaultValue) ⇒ <code>\*</code> \| <code>null</code>
315
+ Retrieve a value from teh configurations, default may be returned.
316
+
317
+ **Kind**: static method of [<code>gulpConfig</code>](#module_gulpConfig)
318
+
319
+ | Param | Type | Default |
320
+ | --- | --- | --- |
321
+ | path | <code>string</code> \| <code>null</code> | <code>null</code> |
322
+ | defaultValue | <code>\*</code> | <code></code> |
323
+
324
+ <a name="module_gulpConfig.set"></a>
325
+
326
+ ### gulpConfig.set(path, value) ⇒ <code>\*</code>
327
+ Specify a value for the configurations to use.
328
+
329
+ **Kind**: static method of [<code>gulpConfig</code>](#module_gulpConfig)
330
+
331
+ | Param |
332
+ | --- |
333
+ | path |
334
+ | value |
335
+
336
+ <a name="module_gulpConfig..ArrayableSetting"></a>
337
+
338
+ ### gulpConfig~ArrayableSetting : <code>Array.&lt;string&gt;</code> \| <code>string</code>
339
+ A setting that may be an array of strings or a string only.
340
+
341
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
342
+ <a name="module_gulpConfig..BooleanSetting"></a>
343
+
344
+ ### gulpConfig~BooleanSetting : <code>boolean</code>
345
+ A setting that may be true or false.
346
+
347
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
348
+ <a name="module_gulpConfig..FlagStringSetting"></a>
349
+
350
+ ### gulpConfig~FlagStringSetting : <code>false</code> \| <code>StringSetting</code>
351
+ A setting that may be flag 'false' or provide a StringSetting
352
+
353
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
354
+ <a name="module_gulpConfig..FlagsSetting"></a>
355
+
356
+ ### gulpConfig~FlagsSetting : <code>Object.&lt;string, BooleanSetting&gt;</code>
357
+ An object of boolean settings used as flags.
358
+
359
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
360
+ <a name="module_gulpConfig..JestTestFlags"></a>
361
+
362
+ ### gulpConfig~JestTestFlags : <code>FlagsSetting</code>
363
+ Configure cli options for running Jest.
364
+
365
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
366
+ **Properties**
367
+
368
+ | Name | Type |
369
+ | --- | --- |
370
+ | clearCache | <code>BooleanSetting</code> |
371
+ | debug | <code>BooleanSetting</code> |
372
+ | ignoreProjects: | <code>BooleanSetting</code> |
373
+ | json | <code>BooleanSetting</code> |
374
+ | selectProjects | <code>BooleanSetting</code> |
375
+ | showConfig | <code>BooleanSetting</code> |
376
+ | useStderr | <code>BooleanSetting</code> |
377
+ | watch | <code>BooleanSetting</code> |
378
+ | watchAll | <code>BooleanSetting</code> |
379
+
380
+ <a name="module_gulpConfig..StringSetting"></a>
381
+
382
+ ### gulpConfig~StringSetting : <code>string</code>
383
+ A setting that may only be a string.
384
+
385
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
386
+ <a name="module_gulpConfig..Setting"></a>
387
+
388
+ ### gulpConfig~Setting : <code>ArrayableSetting</code> \| <code>BooleanSetting</code> \| <code>FlagsSetting</code> \| <code>StringSetting</code>
389
+ Any single configuration option is a Setting.
390
+
391
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
392
+ <a name="module_gulpConfig..Configurations"></a>
393
+
394
+ ### gulpConfig~Configurations : <code>Object.&lt;string, Setting&gt;</code>
395
+ A set of Configurations options defined by Settings.
396
+
397
+ **Kind**: inner typedef of [<code>gulpConfig</code>](#module_gulpConfig)
398
+ **Properties**
399
+
400
+ | Name | Type |
401
+ | --- | --- |
402
+ | browserName | <code>StringSetting</code> |
403
+ | browserPath | <code>StringSetting</code> |
404
+ | distMain | <code>StringSetting</code> |
405
+ | distPath | <code>StringSetting</code> |
406
+ | distSearch | <code>ArrayableSetting</code> |
407
+ | nodeOnly | <code>BooleanSetting</code> |
408
+ | readmeTemplate | <code>StringSetting</code> |
409
+ | readmeOptions | <code>ArrayableSetting</code> |
410
+ | readmeFile | <code>StringSetting</code> |
411
+ | readmePath | <code>StringSetting</code> |
412
+ | readmeSearch | <code>ArrayableSetting</code> |
413
+ | rootPath | <code>StringSetting</code> |
414
+ | srcPath | <code>StringSetting</code> |
415
+ | srcSearch | <code>ArrayableSetting</code> |
416
+ | testOptions | <code>JestTestFlags</code> |
417
+ | testPath | <code>ArrayableSetting</code> |
418
+ | useTsConfig | <code>FlagStringSetting</code> |
419
+ | watchSearch | <code>ArrayableSetting</code> |
420
+
421
+ <a name="module_testHelpers"></a>
422
+
423
+ ## testHelpers
424
+ An assortment of objects that can be used in tests and some functions to help debug and write tests.
425
+
426
+ **Version**: 2.0.0
427
+ **Author**: Joshua Heagle <joshuaheagle@gmail.com>
428
+
429
+ * [testHelpers](#module_testHelpers)
430
+ * [.nodeTree](#module_testHelpers.nodeTree) : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
431
+ * [.multiReferenceObject](#module_testHelpers.multiReferenceObject) : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
432
+ * [.linkedList](#module_testHelpers.linkedList) : <code>Object.&lt;string, (string\|Object)&gt;</code>
433
+ * [.jsonDom](#module_testHelpers.jsonDom) : <code>Object.&lt;string, (string\|number\|Array\|Object)&gt;</code>
434
+ * [.domItem](#module_testHelpers.domItem) : <code>Object.&lt;string, (string\|number\|Array\|Object)&gt;</code>
435
+ * [.deepReferenceObject](#module_testHelpers.deepReferenceObject) : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
436
+ * [.circularObject](#module_testHelpers.circularObject) : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
437
+ * [.setDefaults(testDir)](#module_testHelpers.setDefaults)
438
+ * [.createTempDir([exists])](#module_testHelpers.createTempDir) ⇒ <code>Promise.&lt;(\*\|void)&gt;</code>
439
+ * [.exports.beforeEach()](#module_testHelpers.exports.beforeEach) ⇒ <code>Promise.&lt;(\*\|void)&gt;</code>
440
+ * [.exports.afterEach()](#module_testHelpers.exports.afterEach) ⇒ <code>Promise.&lt;\*&gt;</code>
441
+ * [.logObject(object, [label], [outputType])](#module_testHelpers.logObject) ⇒ <code>string</code> \| <code>undefined</code>
442
+ * [.countMatches(content, search)](#module_testHelpers.countMatches) ⇒ <code>number</code>
443
+
444
+ <a name="module_testHelpers.nodeTree"></a>
445
+
446
+ ### testHelpers.nodeTree : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
447
+ Sample NodeTree for testing circular references and arrays.
448
+
449
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
450
+ <a name="module_testHelpers.multiReferenceObject"></a>
451
+
452
+ ### testHelpers.multiReferenceObject : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
453
+ Sample of object containing multiple references.
454
+
455
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
456
+ <a name="module_testHelpers.linkedList"></a>
457
+
458
+ ### testHelpers.linkedList : <code>Object.&lt;string, (string\|Object)&gt;</code>
459
+ Sample LinkedList for testing circular references.
460
+
461
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
462
+ <a name="module_testHelpers.jsonDom"></a>
463
+
464
+ ### testHelpers.jsonDom : <code>Object.&lt;string, (string\|number\|Array\|Object)&gt;</code>
465
+ Sample of jsonDom object containing empty nested array and objects
466
+
467
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
468
+ <a name="module_testHelpers.domItem"></a>
469
+
470
+ ### testHelpers.domItem : <code>Object.&lt;string, (string\|number\|Array\|Object)&gt;</code>
471
+ Sample of domItem child with nested child and optional details
472
+
473
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
474
+ <a name="module_testHelpers.deepReferenceObject"></a>
475
+
476
+ ### testHelpers.deepReferenceObject : <code>Object.&lt;string, (string\|number\|Object)&gt;</code>
477
+ Sample object with deep references.
478
+
479
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
480
+ <a name="module_testHelpers.circularObject"></a>
481
+
482
+ ### testHelpers.circularObject : <code>Object.&lt;string, (string\|Object\|Array)&gt;</code>
483
+ Multilayered node tree-like structure with parent references
484
+
485
+ **Kind**: static constant of [<code>testHelpers</code>](#module_testHelpers)
486
+ <a name="module_testHelpers.setDefaults"></a>
487
+
488
+ ### testHelpers.setDefaults(testDir)
489
+ Update the gulp configurations with the test data. Set the test directory where temp files will be created for testing.
490
+
491
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
492
+
493
+ | Param | Type | Default |
494
+ | --- | --- | --- |
495
+ | testDir | <code>string</code> | <code>&quot;test-temp&quot;</code> |
496
+
497
+ <a name="module_testHelpers.createTempDir"></a>
498
+
499
+ ### testHelpers.createTempDir([exists]) ⇒ <code>Promise.&lt;(\*\|void)&gt;</code>
500
+ Ensure that the del has completed, recursively attempt to delete and recreate
501
+
502
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
503
+
504
+ | Param | Type | Default |
505
+ | --- | --- | --- |
506
+ | [exists] | <code>boolean</code> | <code>true</code> |
507
+
508
+ <a name="module_testHelpers.exports.beforeEach"></a>
509
+
510
+ ### testHelpers.exports.beforeEach() ⇒ <code>Promise.&lt;(\*\|void)&gt;</code>
511
+ In the Jest.beforeEach function call this one to set up the temp directory.
512
+
513
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
514
+ <a name="module_testHelpers.exports.afterEach"></a>
515
+
516
+ ### testHelpers.exports.afterEach() ⇒ <code>Promise.&lt;\*&gt;</code>
517
+ In the Jest.afterEach function call this one to clean up and remove the temp directory.
518
+
519
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
520
+ <a name="module_testHelpers.logObject"></a>
521
+
522
+ ### testHelpers.logObject(object, [label], [outputType]) ⇒ <code>string</code> \| <code>undefined</code>
523
+ Log out an object in a nicely formatted way.
524
+
525
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
526
+
527
+ | Param | Type | Default |
528
+ | --- | --- | --- |
529
+ | object | <code>Object</code> | |
530
+ | [label] | <code>string</code> | <code>&quot;logging&quot;</code> |
531
+ | [outputType] | <code>string</code> | <code>&quot;log&quot;</code> |
532
+
533
+ <a name="module_testHelpers.countMatches"></a>
534
+
535
+ ### testHelpers.countMatches(content, search) ⇒ <code>number</code>
536
+ Simple way to count string occurrences for testing.
537
+
538
+ **Kind**: static method of [<code>testHelpers</code>](#module_testHelpers)
539
+
540
+ | Param | Type |
541
+ | --- | --- |
542
+ | content | <code>string</code> |
543
+ | search | <code>string</code> |
544
+
545
+ <a name="module_partials"></a>
546
+
547
+ ## partials
548
+ Micro-functions used as components for the main gulp functions.
549
+
550
+ **Version**: 2.0.0
551
+ **Author**: Joshua Heagle <joshuaheagle@gmail.com>
552
+
553
+ * [partials](#module_partials)
554
+ * [.tsFor([srcPath], [distPath])](#module_partials.tsFor) ⇒ <code>stream.Stream</code>
555
+ * [.runOnChange(path)](#module_partials.runOnChange) ⇒ <code>stream.Stream</code>
556
+ * [~pathRegex](#module_partials.runOnChange..pathRegex)
557
+ * [.readmeTemplate()](#module_partials.readmeTemplate) ⇒ <code>\*</code>
558
+ * [.minifyFor()](#module_partials.minifyFor) ⇒ <code>\*</code>
559
+ * [.distSeries([srcPath], [distFinalPath], [tsSearch])](#module_partials.distSeries) ⇒ <code>function</code>
560
+ * [.distForSrc([useTs])](#module_partials.distForSrc) ⇒ <code>string</code>
561
+ * [.distFor([srcPath], [destPath])](#module_partials.distFor) ⇒ <code>\*</code>
562
+ * [.clean([done], [paths])](#module_partials.clean) ⇒ <code>Promise.&lt;Array.&lt;string&gt;&gt;</code> \| <code>\*</code>
563
+ * [.beginWatcher()](#module_partials.beginWatcher) ⇒ <code>FSWatcher</code>
564
+ * [.addToReadme([done])](#module_partials.addToReadme) ⇒ <code>string</code> \| <code>Uint8Array</code>
565
+
566
+ <a name="module_partials.tsFor"></a>
567
+
568
+ ### partials.tsFor([srcPath], [distPath]) ⇒ <code>stream.Stream</code>
569
+ Starting at the source directory, find all the ts files and convert them into the distribution directory.
570
+
571
+ **Kind**: static method of [<code>partials</code>](#module_partials)
572
+ **See**: `https://www.typescriptlang.org/docs/handbook/gulp.html` for more info
573
+
574
+ | Param | Type | Default |
575
+ | --- | --- | --- |
576
+ | [srcPath] | <code>string</code> \| <code>array</code> | <code>&quot;&#x27;&#x27;&quot;</code> |
577
+ | [distPath] | <code>string</code> | <code>&quot;&#x27;&#x27;&quot;</code> |
578
+
579
+ <a name="module_partials.runOnChange"></a>
580
+
581
+ ### partials.runOnChange(path) ⇒ <code>stream.Stream</code>
582
+ Run this function when the watched files are modified.
583
+
584
+ **Kind**: static method of [<code>partials</code>](#module_partials)
585
+
586
+ | Param | Type |
587
+ | --- | --- |
588
+ | path | <code>string</code> |
589
+
590
+ **Example**
591
+ ```js
592
+ // Configured paths
593
+ ```
594
+ <a name="module_partials.runOnChange..pathRegex"></a>
595
+
596
+ #### runOnChange~pathRegex
597
+ 1. The original path comes in from src and is a .ts
598
+
599
+ **Kind**: inner constant of [<code>runOnChange</code>](#module_partials.runOnChange)
600
+ <a name="module_partials.readmeTemplate"></a>
601
+
602
+ ### partials.readmeTemplate() ⇒ <code>\*</code>
603
+ Copy a readme template into the README.md file.
604
+
605
+ **Kind**: static method of [<code>partials</code>](#module_partials)
606
+ <a name="module_partials.minifyFor"></a>
607
+
608
+ ### partials.minifyFor() ⇒ <code>\*</code>
609
+ Minify files and rename the output with '.min' extension.
610
+
611
+ **Kind**: static method of [<code>partials</code>](#module_partials)
612
+ <a name="module_partials.distSeries"></a>
613
+
614
+ ### partials.distSeries([srcPath], [distFinalPath], [tsSearch]) ⇒ <code>function</code>
615
+ When using TypeScript, ensure that we process the ts first then run babel (dist)
616
+
617
+ **Kind**: static method of [<code>partials</code>](#module_partials)
618
+
619
+ | Param | Type | Default |
620
+ | --- | --- | --- |
621
+ | [srcPath] | <code>string</code> | <code>&quot;&#x27;src/config/path/dist/for&#x27;&quot;</code> |
622
+ | [distFinalPath] | <code>string</code> | <code>&quot;&#x27;dist/config/path&#x27;&quot;</code> |
623
+ | [tsSearch] | <code>string</code> | <code>&quot;&#x27;ts/search/config/path&#x27;&quot;</code> |
624
+
625
+ <a name="module_partials.distForSrc"></a>
626
+
627
+ ### partials.distForSrc([useTs]) ⇒ <code>string</code>
628
+ Retrieve the correct distFor search path based on TS Config.
629
+
630
+ **Kind**: static method of [<code>partials</code>](#module_partials)
631
+
632
+ | Param | Type | Default |
633
+ | --- | --- | --- |
634
+ | [useTs] | [<code>FlagStringSetting</code>](#module_gulpConfig..FlagStringSetting) | <code>&#x27;config/for/ts&#x27;</code> |
635
+
636
+ <a name="module_partials.distFor"></a>
637
+
638
+ ### partials.distFor([srcPath], [destPath]) ⇒ <code>\*</code>
639
+ Build the distribution for a given source pattern.
640
+
641
+ **Kind**: static method of [<code>partials</code>](#module_partials)
642
+
643
+ | Param | Type | Default |
644
+ | --- | --- | --- |
645
+ | [srcPath] | <code>string</code> \| <code>array</code> | <code>&quot;&#x27;src/config/path/dist/for&#x27;&quot;</code> |
646
+ | [destPath] | <code>string</code> | <code>&quot;&#x27;dist/config/path&#x27;&quot;</code> |
647
+
648
+ <a name="module_partials.clean"></a>
649
+
650
+ ### partials.clean([done], [paths]) ⇒ <code>Promise.&lt;Array.&lt;string&gt;&gt;</code> \| <code>\*</code>
651
+ Deletes all the distribution and browser files (used before create a new build).
652
+
653
+ **Kind**: static method of [<code>partials</code>](#module_partials)
654
+
655
+ | Param | Type | Default |
656
+ | --- | --- | --- |
657
+ | [done] | <code>function</code> | <code></code> |
658
+ | [paths] | <code>Array.&lt;string&gt;</code> | <code>[&#x27;dist/config/path&#x27;, &#x27;browser/config/path&#x27;]</code> |
659
+
660
+ <a name="module_partials.beginWatcher"></a>
661
+
662
+ ### partials.beginWatcher() ⇒ <code>FSWatcher</code>
663
+ Create a chokidar instance which watches and triggers change when the globed files are modified.
664
+
665
+ **Kind**: static method of [<code>partials</code>](#module_partials)
666
+ <a name="module_partials.addToReadme"></a>
667
+
668
+ ### partials.addToReadme([done]) ⇒ <code>string</code> \| <code>Uint8Array</code>
669
+ Appends all the jsdoc comments to the readme file. Assumes empty or templated file.
670
+
671
+ **Kind**: static method of [<code>partials</code>](#module_partials)
672
+
673
+ | Param | Type | Default |
674
+ | --- | --- | --- |
675
+ | [done] | <code>function</code> \| <code>null</code> | <code></code> |
676
+