itee-validators 5.6.0 → 6.0.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 (131) hide show
  1. package/.github/workflows/node.js.yml +2 -2
  2. package/.releaserc.mjs +94 -0
  3. package/.tasks/.builds/build-benchmarks.task.mjs +16 -0
  4. package/.tasks/.builds/build-tests.task.mjs +18 -0
  5. package/.tasks/.builds/build-unit-tests.task.mjs +16 -0
  6. package/.tasks/.builds/build.task.mjs +46 -0
  7. package/.tasks/.cleans/clean.task.mjs +23 -0
  8. package/.tasks/.docs/doc.task.mjs +35 -0
  9. package/.tasks/.helps/help.task.mjs +151 -0
  10. package/.tasks/.lints/lint.task.mjs +37 -0
  11. package/.tasks/.patches/patch.task.mjs +13 -0
  12. package/.tasks/.releases/release.task.mjs +26 -0
  13. package/.tasks/.tests/benchmarks/build-benchmarks-backend.task.mjs +42 -0
  14. package/.tasks/{tests/benchmarks/compute-benchmarks.mjs → .tests/benchmarks/compute-benchmarks.task.mjs} +46 -51
  15. package/.tasks/.tests/benchmarks/run-benchmarks-for-backend.task.mjs +39 -0
  16. package/.tasks/.tests/benchmarks/run-benchmarks-for-frontend.task.mjs +41 -0
  17. package/.tasks/.tests/benchmarks/run-benchmarks.task.mjs +18 -0
  18. package/.tasks/{tests/bundling/check-bundling-from-esm-build-import.mjs → .tests/bundling/check-bundling-from-esm-build-import.task.mjs} +31 -75
  19. package/.tasks/.tests/bundling/check-bundling-from-esm-files-direct.task.mjs +77 -0
  20. package/.tasks/.tests/bundling/check-bundling-from-esm-files-import.task.mjs +95 -0
  21. package/.tasks/.tests/bundling/check-bundling.task.mjs +20 -0
  22. package/.tasks/.tests/run-tests.task.mjs +18 -0
  23. package/.tasks/.tests/unit-tests/build-unit-tests-backend.task.mjs +42 -0
  24. package/.tasks/{tests/unit-tests/compute-unit-tests.mjs → .tests/unit-tests/compute-unit-tests.task.mjs} +152 -193
  25. package/.tasks/.tests/unit-tests/run-unit-tests-for-backend.task.mjs +44 -0
  26. package/.tasks/.tests/unit-tests/run-unit-tests-for-frontend.task.mjs +41 -0
  27. package/.tasks/.tests/unit-tests/run-unit-tests.task.mjs +18 -0
  28. package/.tasks/_refresh-gulpfile.task.mjs +65 -0
  29. package/.tasks/_utils.mjs +159 -33
  30. package/.tasks/configs/benchmarks.conf.mjs +57 -0
  31. package/.tasks/configs/build-benchmarks-backend.conf.mjs +51 -0
  32. package/.tasks/configs/build-unit-tests-backend.conf.mjs +46 -0
  33. package/.tasks/configs/build.conf.mjs +354 -0
  34. package/.tasks/configs/check-bundling.conf.mjs +26 -0
  35. package/.tasks/configs/clean.conf.mjs +9 -0
  36. package/.tasks/configs/compute-benchmarks.conf.mjs +28 -0
  37. package/.tasks/configs/compute-unit-tests.conf.mjs +27 -0
  38. package/.tasks/configs/doc.conf.json +50 -0
  39. package/.tasks/configs/eslint.conf.mjs +121 -0
  40. package/.tasks/configs/units.conf.mjs +27 -0
  41. package/.tasks/itee-benchmarks-framework.js +186 -0
  42. package/.tasks/itee-reporter.mjs +217 -0
  43. package/CHANGELOG.md +12 -0
  44. package/builds/itee-validators.cjs.js +53 -15
  45. package/builds/itee-validators.cjs.js.map +1 -1
  46. package/builds/itee-validators.cjs.min.js +36 -35
  47. package/builds/itee-validators.esm.js +25 -2
  48. package/builds/itee-validators.esm.js.map +1 -1
  49. package/builds/itee-validators.esm.min.js +3 -3
  50. package/builds/itee-validators.iife.js +25 -4
  51. package/builds/itee-validators.iife.js.map +1 -1
  52. package/builds/itee-validators.iife.min.js +10 -10
  53. package/package.json +49 -41
  54. package/sources/cores/_cores.js +10 -10
  55. package/sources/cores/arrays/_arrays.js +12 -12
  56. package/sources/cores/arrays/isArrayOfArray.js +2 -2
  57. package/sources/cores/arrays/isArrayOfBoolean.js +3 -3
  58. package/sources/cores/arrays/isArrayOfFunction.js +3 -3
  59. package/sources/cores/arrays/isArrayOfMultiElement.js +1 -1
  60. package/sources/cores/arrays/isArrayOfNull.js +3 -3
  61. package/sources/cores/arrays/isArrayOfNumber.js +3 -3
  62. package/sources/cores/arrays/isArrayOfObject.js +3 -3
  63. package/sources/cores/arrays/isArrayOfSingleElement.js +1 -1
  64. package/sources/cores/arrays/isArrayOfString.js +3 -3
  65. package/sources/cores/arrays/isArrayOfUndefined.js +3 -3
  66. package/sources/cores/arrays/isEmptyArray.js +1 -1
  67. package/sources/cores/booleans/_booleans.js +2 -2
  68. package/sources/cores/booleans/isTrue.js +1 -1
  69. package/sources/cores/cores.js +8 -8
  70. package/sources/cores/functions/_functions.js +1 -1
  71. package/sources/cores/numbers/_numbers.js +6 -6
  72. package/sources/cores/numbers/isNumber.js +3 -3
  73. package/sources/cores/objects/_objects.js +2 -2
  74. package/sources/cores/objects/isEmptyObject.js +1 -1
  75. package/sources/cores/objects/isObject.js +1 -1
  76. package/sources/cores/strings/_strings.js +3 -3
  77. package/sources/cores/strings/isBlankString.js +2 -2
  78. package/sources/cores/strings/isEmptyString.js +1 -1
  79. package/sources/cores/symbols/_symbols.js +1 -1
  80. package/sources/cores/tests/isTestUnitGenerator.js +5 -6
  81. package/sources/cores/typed-arrays/_typedArrays.js +12 -12
  82. package/sources/cores/voids/_voids.js +4 -4
  83. package/sources/cores/voids/isEmpty.js +4 -4
  84. package/sources/file-system/_file-system.js +9 -9
  85. package/sources/file-system/block-devices/_blockDevices.js +3 -3
  86. package/sources/file-system/block-devices/isBlockDevicePath.js +3 -3
  87. package/sources/file-system/block-devices/isValidBlockDevicePath.js +2 -2
  88. package/sources/file-system/character-devices/_characterDevices.js +3 -3
  89. package/sources/file-system/character-devices/isCharacterDevicePath.js +3 -3
  90. package/sources/file-system/character-devices/isValidCharacterDevicePath.js +2 -2
  91. package/sources/file-system/directories/_directories.js +4 -4
  92. package/sources/file-system/directories/isDirectoryPath.js +3 -3
  93. package/sources/file-system/directories/isEmptyDirectory.js +2 -2
  94. package/sources/file-system/directories/isValidDirectoryPath.js +2 -2
  95. package/sources/file-system/fifo-pipes/_fifoPipes.js +3 -3
  96. package/sources/file-system/fifo-pipes/isFIFOPath.js +3 -3
  97. package/sources/file-system/fifo-pipes/isValidFIFOPath.js +2 -2
  98. package/sources/file-system/files/_files.js +4 -4
  99. package/sources/file-system/files/isEmptyFile.js +3 -3
  100. package/sources/file-system/files/isFilePath.js +3 -3
  101. package/sources/file-system/files/isValidFilePath.js +2 -2
  102. package/sources/file-system/paths/_paths.js +2 -2
  103. package/sources/file-system/paths/isValidPath.js +1 -1
  104. package/sources/file-system/sockets/_sockets.js +3 -3
  105. package/sources/file-system/sockets/isSocketPath.js +3 -3
  106. package/sources/file-system/sockets/isValidSocketPath.js +2 -2
  107. package/sources/file-system/symbolic-links/_symbolicLinks.js +3 -3
  108. package/sources/file-system/symbolic-links/isSymbolicLinkPath.js +3 -3
  109. package/sources/file-system/symbolic-links/isValidSymbolicLinkPath.js +2 -2
  110. package/sources/itee-validators.js +4 -4
  111. package/sources/maths/_maths.js +1 -1
  112. package/sources/physics/_physics.js +2 -2
  113. package/sources/physics/temperatures/_temperatures.js +5 -5
  114. package/sources/physics/temperatures/isCelsius.js +2 -2
  115. package/sources/physics/temperatures/isFahrenheit.js +2 -2
  116. package/sources/physics/temperatures/isKelvin.js +2 -2
  117. package/sources/physics/temperatures/isTemperature.js +3 -3
  118. package/.tasks/builds/build.mjs +0 -65
  119. package/.tasks/cleans/clean.mjs +0 -20
  120. package/.tasks/docs/doc.mjs +0 -37
  121. package/.tasks/helps/help.mjs +0 -195
  122. package/.tasks/lints/lint.mjs +0 -33
  123. package/.tasks/patches/patch.mjs +0 -9
  124. package/.tasks/tests/benchmarks/bundle-benchmarks.mjs +0 -33
  125. package/.tasks/tests/benchmarks/run-benchmarks-for-backend.mjs +0 -24
  126. package/.tasks/tests/benchmarks/run-benchmarks-for-frontend.mjs +0 -38
  127. package/.tasks/tests/bundling/check-bundling-from-esm-files-direct.mjs +0 -129
  128. package/.tasks/tests/bundling/check-bundling-from-esm-files-import.mjs +0 -149
  129. package/.tasks/tests/unit-tests/bundle-unit-tests.mjs +0 -33
  130. package/.tasks/tests/unit-tests/run-unit-tests-for-backend.mjs +0 -25
  131. package/.tasks/tests/unit-tests/run-unit-tests-for-frontend.mjs +0 -41
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a block device path
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isBlockDevicePath } from './isBlockDevicePath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isBlockDevicePath } from './isBlockDevicePath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid block device path
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module sources/file-system/character-devices
6
6
  * @description This is the character devices main export entry point.
7
- * It expose all exports of the character devices validators.
7
+ * It exposes all exports of the character devices validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isCharacterDevicePath'
12
- export * from './isValidCharacterDevicePath'
11
+ export * from './isCharacterDevicePath.js'
12
+ export * from './isValidCharacterDevicePath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a character device path
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isCharacterDevicePath } from './isCharacterDevicePath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isCharacterDevicePath } from './isCharacterDevicePath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid character device path
@@ -4,10 +4,10 @@
4
4
  *
5
5
  * @module sources/file-system/directories
6
6
  * @description This is the directories main export entry point.
7
- * It expose all exports of the directories validators.
7
+ * It exposes all exports of the directories validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isDirectoryPath'
12
- export * from './isEmptyDirectory'
13
- export * from './isValidDirectoryPath'
11
+ export * from './isDirectoryPath.js'
12
+ export * from './isEmptyDirectory.js'
13
+ export * from './isValidDirectoryPath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a directory path
@@ -19,8 +19,8 @@
19
19
  *
20
20
  */
21
21
 
22
- import { readdirSync } from 'fs'
23
- import { isDirectoryPath } from './isDirectoryPath'
22
+ import { readdirSync } from 'node:fs'
23
+ import { isDirectoryPath } from './isDirectoryPath.js'
24
24
 
25
25
  /**
26
26
  * Check if given directory path is an empty directory
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isDirectoryPath } from './isDirectoryPath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isDirectoryPath } from './isDirectoryPath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid directory path
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module sources/file-system/fifo-pipes
6
6
  * @description This is the fifo-pipes main export entry point.
7
- * It expose all exports of the fifo-pipes validators.
7
+ * It exposes all exports of the fifo-pipes validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isFIFOPath'
12
- export * from './isValidFIFOPath'
11
+ export * from './isFIFOPath.js'
12
+ export * from './isValidFIFOPath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a fifo path
@@ -19,8 +19,8 @@
19
19
  *
20
20
  */
21
21
 
22
- import { isValidPath } from '../paths/isValidPath'
23
- import { isFIFOPath } from './isFIFOPath'
22
+ import { isValidPath } from '../paths/isValidPath.js'
23
+ import { isFIFOPath } from './isFIFOPath.js'
24
24
 
25
25
  /**
26
26
  * Check if given data is a valid fifo path
@@ -4,10 +4,10 @@
4
4
  *
5
5
  * @module sources/file-system/files
6
6
  * @description This is the files main export entry point.
7
- * It expose all exports of the files validators.
7
+ * It exposes all exports of the files validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isEmptyFile'
12
- export * from './isFilePath'
13
- export * from './isValidFilePath'
11
+ export * from './isEmptyFile.js'
12
+ export * from './isFilePath.js'
13
+ export * from './isValidFilePath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isFilePath } from './isFilePath'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isFilePath } from './isFilePath.js'
25
25
 
26
26
  /**
27
27
  * Check if given file path is an empty file more or less a threshold in bytes.
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a file path
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isFilePath } from './isFilePath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isFilePath } from './isFilePath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid file path
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * @module sources/file-system/paths
6
6
  * @description This is the files paths main export entry point.
7
- * It expose all exports of the files paths validators.
7
+ * It exposes all exports of the files paths validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isValidPath'
11
+ export * from './isValidPath.js'
@@ -19,7 +19,7 @@
19
19
  *
20
20
  */
21
21
 
22
- import { existsSync } from 'fs'
22
+ import { existsSync } from 'node:fs'
23
23
 
24
24
  /**
25
25
  * Check if given data is a valid file path
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module sources/file-system/sockets
6
6
  * @description This is the sockets main export entry point.
7
- * It expose all exports of the sockets validators.
7
+ * It exposes all exports of the sockets validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isSocketPath'
12
- export * from './isValidSocketPath'
11
+ export * from './isSocketPath.js'
12
+ export * from './isValidSocketPath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a socket path
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isSocketPath } from './isSocketPath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isSocketPath } from './isSocketPath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid socket path
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module sources/file-system/symbolic-links
6
6
  * @description This is the symbolic-links main export entry point.
7
- * It expose all exports of the symbolic-links validators.
7
+ * It exposes all exports of the symbolic-links validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isSymbolicLinkPath'
12
- export * from './isValidSymbolicLinkPath'
11
+ export * from './isSymbolicLinkPath.js'
12
+ export * from './isValidSymbolicLinkPath.js'
@@ -19,9 +19,9 @@
19
19
  *
20
20
  */
21
21
 
22
- import { statSync } from 'fs'
23
- import { isDefined } from '../../cores/voids/isDefined'
24
- import { isNotString } from '../../cores/strings/isString'
22
+ import { statSync } from 'node:fs'
23
+ import { isNotString } from '../../cores/strings/isString.js'
24
+ import { isDefined } from '../../cores/voids/isDefined.js'
25
25
 
26
26
  /**
27
27
  * Check if given path is a symbolic link path
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isValidPath } from '../paths/isValidPath'
20
- import { isSymbolicLinkPath } from './isSymbolicLinkPath'
19
+ import { isValidPath } from '../paths/isValidPath.js'
20
+ import { isSymbolicLinkPath } from './isSymbolicLinkPath.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is a valid symbolic link path
@@ -8,10 +8,10 @@
8
8
  * In case you're using the commons js build, you will get the file-system validators too.
9
9
  */
10
10
 
11
- export * from './cores/_cores'
12
- export * from './maths/_maths'
13
- export * from './physics/_physics'
11
+ export * from './cores/_cores.js'
12
+ export * from './maths/_maths.js'
13
+ export * from './physics/_physics.js'
14
14
 
15
15
  // #if IS_BACKEND_SPECIFIC
16
- export * from './file-system/_file-system'
16
+ export * from './file-system/_file-system.js'
17
17
  // #endif
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * @module sources/maths
6
6
  * @description This is the maths export entry point.
7
- * It expose all exports of the ... sub-folder.
7
+ * It exposes all exports of the ... sub-folder.
8
8
  *
9
9
  */
10
10
 
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * @module sources/physics
6
6
  * @description This is the physics export entry point.
7
- * It expose all exports of the temperatures sub-folder.
7
+ * It exposes all exports of the temperatures sub-folder.
8
8
  *
9
9
  */
10
10
 
11
- export * from './temperatures/_temperatures'
11
+ export * from './temperatures/_temperatures.js'
@@ -6,8 +6,8 @@
6
6
  * @description Export the validation methods about temperatures
7
7
  */
8
8
 
9
- export * from './constants'
10
- export * from './isCelsius'
11
- export * from './isFahrenheit'
12
- export * from './isKelvin'
13
- export * from './isTemperature'
9
+ export * from './constants.js'
10
+ export * from './isCelsius.js'
11
+ export * from './isFahrenheit.js'
12
+ export * from './isKelvin.js'
13
+ export * from './isTemperature.js'
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNumber } from '../../cores/numbers/isNumber'
20
- import { ABSOLUTE_ZERO_CELSIUS } from './constants'
19
+ import { isNumber } from '../../cores/numbers/isNumber.js'
20
+ import { ABSOLUTE_ZERO_CELSIUS } from './constants.js'
21
21
 
22
22
  /**
23
23
  *
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNumber } from '../../cores/numbers/isNumber'
20
- import { ABSOLUTE_ZERO_FAHRENHEIT } from './constants'
19
+ import { isNumber } from '../../cores/numbers/isNumber.js'
20
+ import { ABSOLUTE_ZERO_FAHRENHEIT } from './constants.js'
21
21
 
22
22
  /**
23
23
  *
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNumber } from '../../cores/numbers/isNumber'
20
- import { ABSOLUTE_ZERO_KELVIN } from './constants'
19
+ import { isNumber } from '../../cores/numbers/isNumber.js'
20
+ import { ABSOLUTE_ZERO_KELVIN } from './constants.js'
21
21
 
22
22
  /**
23
23
  *
@@ -19,15 +19,15 @@
19
19
  import {
20
20
  isCelsius,
21
21
  isNotCelsius
22
- } from './isCelsius'
22
+ } from './isCelsius.js'
23
23
  import {
24
24
  isFahrenheit,
25
25
  isNotFahrenheit
26
- } from './isFahrenheit'
26
+ } from './isFahrenheit.js'
27
27
  import {
28
28
  isKelvin,
29
29
  isNotKelvin
30
- } from './isKelvin'
30
+ } from './isKelvin.js'
31
31
 
32
32
  /**
33
33
  *
@@ -1,65 +0,0 @@
1
- import { join } from 'path'
2
- import rollupConfigurator from '../../configs/rollup.conf.js'
3
- import parseArgs from 'minimist'
4
- import { getDirname } from '../_utils.mjs'
5
- import { packageInfos } from '../_utils.mjs'
6
- import { rollup } from 'rollup'
7
- import log from 'fancy-log'
8
-
9
- function build( done ) {
10
-
11
- const __dirname = getDirname()
12
-
13
- const options = parseArgs( process.argv, {
14
- string: [ 'n', 'i', 'f', 'e' ],
15
- boolean: [ 's', 't' ],
16
- default: {
17
- i: join( __dirname, 'sources', `${ packageInfos.name }.js` ),
18
- o: join( __dirname, 'builds' ),
19
- f: [ 'esm', 'cjs', 'iife' ],
20
- e: [ 'dev', 'prod' ],
21
- s: true,
22
- t: true
23
- },
24
- alias: {
25
- i: 'input',
26
- o: 'output',
27
- f: 'formats',
28
- e: 'envs',
29
- s: 'sourcemap',
30
- t: 'treeshake'
31
- }
32
- } )
33
-
34
- const configs = rollupConfigurator( options )
35
-
36
- nextBuild()
37
-
38
- function nextBuild( error ) {
39
- 'use strict'
40
-
41
- if ( error ) {
42
-
43
- done( error )
44
-
45
- } else if ( configs.length === 0 ) {
46
-
47
- done()
48
-
49
- } else {
50
-
51
- const config = configs.pop()
52
- log( `Building ${ config.output.file }` )
53
-
54
- rollup( config )
55
- .then( ( bundle ) => { return bundle.write( config.output ) } )
56
- .then( () => { nextBuild() } )
57
- .catch( nextBuild )
58
-
59
- }
60
-
61
- }
62
-
63
- }
64
-
65
- export { build }
@@ -1,20 +0,0 @@
1
- import { getGulpConfigForTask } from '../../configs/gulp.conf.mjs'
2
- import { deleteAsync } from 'del'
3
- import log from 'fancy-log'
4
- import colors from 'ansi-colors'
5
-
6
- const red = colors.red
7
-
8
- function clean( done ) {
9
-
10
- const filesToClean = getGulpConfigForTask( 'clean' )
11
-
12
- for ( let fileIndex = 0, numberOfFiles = filesToClean.length ; fileIndex < numberOfFiles ; fileIndex++ ) {
13
- log( red( `[${ fileIndex + 1 }/${ numberOfFiles }] Delete ${ filesToClean[ fileIndex ] }` ) )
14
- }
15
-
16
- return deleteAsync( filesToClean )
17
-
18
- }
19
-
20
- export { clean }
@@ -1,37 +0,0 @@
1
- import log from 'fancy-log'
2
- import jsdocConfiguration from '../../configs/jsdoc.conf.js'
3
- import { getGulpConfigForTask } from '../../configs/gulp.conf.mjs'
4
- import gulp from 'gulp'
5
- import jsdoc from 'gulp-jsdoc3'
6
-
7
-
8
- async function doc( done ) {
9
-
10
- const config = jsdocConfiguration
11
- const filesToDoc = getGulpConfigForTask( 'doc' )
12
-
13
- for ( let fileIndex = 0, numberOfFiles = filesToDoc.length ; fileIndex < numberOfFiles ; fileIndex++ ) {
14
- log( `[${ fileIndex + 1 }/${ numberOfFiles }] Documenting ${ filesToDoc[ fileIndex ] }` )
15
- }
16
-
17
- // gulp
18
- // .src( filesToDoc, {
19
- // read: false,
20
- // allowEmpty: true
21
- // } )
22
- // .pipe( jsdoc( config, done ) )
23
- // .on( 'error', done )
24
-
25
- await new Promise( ( ( resolve, reject ) => {
26
- gulp.src( filesToDoc, {
27
- read: false,
28
- allowEmpty: true
29
- } )
30
- .pipe( jsdoc( config, resolve ) )
31
- .on( 'error', reject )
32
- } ) )
33
- done()
34
-
35
- }
36
-
37
- export { doc }