@itee/tasks 1.3.0 → 1.3.2
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.
- package/CHANGELOG.md +14 -0
- package/docs/-_utils.mjs.html +68 -18
- package/docs/cleans_clean.task.mjs.html +10 -11
- package/docs/global.html +17 -173
- package/docs/helps_help.task.mjs.html +23 -59
- package/docs/index.html +4 -4
- package/docs/lints_lint.task.mjs.html +15 -12
- package/docs/patches_patch.task.mjs.html +14 -12
- package/docs/quicksearch.html +1 -1
- package/docs/releases_release.task.mjs.html +5 -5
- package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +35 -38
- package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +20 -18
- package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +21 -23
- package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +22 -34
- package/docs/tests_bundlings_check-bundling.task.mjs.html +5 -5
- package/docs/tests_run-tests.task.mjs.html +5 -5
- package/docs/tests_units_compute-unit-tests.task.mjs.html +40 -42
- package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +21 -19
- package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +21 -23
- package/package.json +4 -4
- package/{sources → scripts}/refresh.mjs +10 -12
- package/sources/builds/build.conf.mjs +3 -0
- package/sources/builds/build.task.mjs +11 -13
- package/{configs → sources}/cleans/clean.conf.mjs +1 -1
- package/sources/cleans/clean.task.mjs +6 -7
- package/{configs → sources}/docs/doc.conf.mjs +8 -7
- package/sources/docs/doc.task.mjs +7 -8
- package/sources/helps/help.task.mjs +18 -54
- package/{configs → sources}/lints/lint.conf.mjs +50 -18
- package/sources/lints/lint.task.mjs +11 -8
- package/sources/patches/patch.task.mjs +9 -7
- package/sources/releases/release.task.mjs +1 -1
- package/sources/tasks.js +26 -0
- package/sources/tests/benchmarks/compute-benchmarks.conf.mjs +5 -0
- package/sources/tests/benchmarks/compute-benchmarks.task.mjs +31 -34
- package/sources/tests/benchmarks/run-benchmarks-for-backend.task.mjs +16 -14
- package/{configs → sources}/tests/benchmarks/run-benchmarks-for-frontend.conf.mjs +6 -6
- package/sources/tests/benchmarks/run-benchmarks-for-frontend.task.mjs +17 -19
- package/{configs → sources}/tests/benchmarks/run-benchmarks.conf.mjs +2 -2
- package/sources/tests/benchmarks/run-benchmarks.task.mjs +3 -3
- package/{configs → sources}/tests/bundlings/check-bundling-from-esm-build-import.conf.mjs +12 -10
- package/sources/tests/bundlings/check-bundling-from-esm-build-import.task.mjs +17 -17
- package/{configs → sources}/tests/bundlings/check-bundling-from-esm-files-direct.conf.mjs +20 -14
- package/sources/tests/bundlings/check-bundling-from-esm-files-direct.task.mjs +17 -29
- package/{configs → sources}/tests/bundlings/check-bundling-from-esm-files-import.conf.mjs +15 -13
- package/sources/tests/bundlings/check-bundling-from-esm-files-import.task.mjs +17 -29
- package/sources/tests/bundlings/check-bundling.task.mjs +1 -1
- package/sources/tests/run-tests.task.mjs +1 -1
- package/sources/tests/units/compute-unit-tests.conf.mjs +5 -0
- package/sources/tests/units/compute-unit-tests.task.mjs +36 -38
- package/sources/tests/units/run-unit-tests-for-backend.task.mjs +17 -15
- package/{configs → sources}/tests/units/run-unit-tests-for-frontend.conf.mjs +1 -1
- package/sources/tests/units/run-unit-tests-for-frontend.task.mjs +17 -19
- package/{configs → sources}/tests/units/run-unit-tests.conf.mjs +2 -2
- package/sources/tests/units/run-unit-tests.task.mjs +3 -3
- package/sources/utils/builds.mjs +238 -0
- package/sources/utils/colors.mjs +19 -0
- package/sources/utils/files.mjs +70 -0
- package/sources/utils/loggings.mjs +33 -0
- package/sources/utils/packages.mjs +172 -0
- package/sources/utils/tasks.mjs +170 -0
- package/sources/utils/texts.mjs +98 -0
- package/configs/builds/build.conf.mjs +0 -3
- package/configs/tests/benchmarks/compute-benchmarks.conf.mjs +0 -5
- package/configs/tests/units/compute-unit-tests.conf.mjs +0 -5
- package/sources/_utils.mjs +0 -642
- package/sources/index.mjs +0 -21
- /package/{configs → scripts}/refresh.conf.mjs +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width">
|
|
7
|
-
<title
|
|
7
|
+
<title>Itee Tasks v1.3.1 Source: helps/help.task.mjs</title>
|
|
8
8
|
|
|
9
9
|
<!--[if lt IE 9]>
|
|
10
10
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="navbar navbar-default navbar-fixed-top ">
|
|
21
21
|
<div class="container">
|
|
22
22
|
<div class="navbar-header">
|
|
23
|
-
<a class="navbar-brand" href="index.html"
|
|
23
|
+
<a class="navbar-brand" href="index.html">Itee Tasks v1.3.1</a>
|
|
24
24
|
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
|
25
25
|
<span class="icon-bar"></span>
|
|
26
26
|
<span class="icon-bar"></span>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<li class="dropdown">
|
|
34
34
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
35
35
|
<ul class="dropdown-menu inline">
|
|
36
|
-
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#
|
|
36
|
+
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li>
|
|
37
37
|
</ul>
|
|
38
38
|
</li>
|
|
39
39
|
|
|
@@ -70,69 +70,33 @@
|
|
|
70
70
|
<section>
|
|
71
71
|
<article>
|
|
72
72
|
<pre
|
|
73
|
-
class="sunlight-highlight-javascript linenums">import
|
|
74
|
-
import
|
|
75
|
-
|
|
73
|
+
class="sunlight-highlight-javascript linenums">import { basename } from 'node:path'
|
|
74
|
+
import {
|
|
75
|
+
blue,
|
|
76
|
+
cyan,
|
|
77
|
+
green,
|
|
78
|
+
magenta,
|
|
79
|
+
red,
|
|
80
|
+
yellow
|
|
81
|
+
} from '../utils/colors.mjs'
|
|
82
|
+
import {
|
|
83
|
+
log,
|
|
84
|
+
logLoadingTask
|
|
85
|
+
} from '../utils/loggings.mjs'
|
|
76
86
|
import {
|
|
77
87
|
getPrettyNodeVersion,
|
|
78
88
|
getPrettyNpmVersion,
|
|
79
89
|
getPrettyPackageName,
|
|
80
|
-
getPrettyPackageVersion
|
|
90
|
+
getPrettyPackageVersion
|
|
91
|
+
} from '../utils/packages.mjs'
|
|
92
|
+
import {
|
|
93
|
+
alignTextCenter,
|
|
94
|
+
alignTextLeft,
|
|
81
95
|
Indenter,
|
|
82
|
-
|
|
83
|
-
} from '../_utils.mjs'
|
|
96
|
+
} from '../utils/texts.mjs'
|
|
84
97
|
|
|
85
98
|
logLoadingTask( import.meta.filename )
|
|
86
99
|
|
|
87
|
-
const {
|
|
88
|
-
red,
|
|
89
|
-
green,
|
|
90
|
-
blue,
|
|
91
|
-
cyan,
|
|
92
|
-
yellow,
|
|
93
|
-
magenta,
|
|
94
|
-
unstyle
|
|
95
|
-
} = colors
|
|
96
|
-
|
|
97
|
-
function alignTextCenter( text, width ) {
|
|
98
|
-
|
|
99
|
-
const unstyledText = unstyle( text.repeat( 1 ) )
|
|
100
|
-
const marginLength = ( width - unstyledText.length ) / 2
|
|
101
|
-
|
|
102
|
-
let leftMargin, rightMargin
|
|
103
|
-
if ( Number.isInteger( marginLength ) ) {
|
|
104
|
-
leftMargin = marginLength
|
|
105
|
-
rightMargin = marginLength
|
|
106
|
-
} else {
|
|
107
|
-
const flooredMargin = Math.floor( marginLength )
|
|
108
|
-
leftMargin = flooredMargin
|
|
109
|
-
rightMargin = flooredMargin + 1
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return ' '.repeat( leftMargin ) + text + ' '.repeat( rightMargin )
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function alignTextLeft( text, width ) {
|
|
117
|
-
|
|
118
|
-
const unstyledText = unstyle( text.repeat( 1 ) )
|
|
119
|
-
let repeatTime = width - unstyledText.length
|
|
120
|
-
repeatTime = ( repeatTime > 0 ) ? repeatTime : 0
|
|
121
|
-
|
|
122
|
-
return text + ' '.repeat( repeatTime )
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function alignTextRight( text, width ) {
|
|
127
|
-
|
|
128
|
-
const unstyledText = unstyle( text.repeat( 1 ) )
|
|
129
|
-
let repeatTime = width - unstyledText.length
|
|
130
|
-
repeatTime = ( repeatTime > 0 ) ? repeatTime : 0
|
|
131
|
-
|
|
132
|
-
return ' '.repeat( repeatTime ) + text
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
100
|
/**
|
|
137
101
|
* @method npm run help ( default )
|
|
138
102
|
* @global
|
|
@@ -264,7 +228,7 @@ export { helpTask }
|
|
|
264
228
|
|
|
265
229
|
|
|
266
230
|
<span class="copyright">
|
|
267
|
-
Copyright 2015-Present <a href="https://github.com/Itee">Itee
|
|
231
|
+
Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
|
|
268
232
|
</span>
|
|
269
233
|
|
|
270
234
|
<span class="jsdoc-message">
|
package/docs/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width">
|
|
7
|
-
<title
|
|
7
|
+
<title>Itee Tasks v1.3.1 Index</title>
|
|
8
8
|
|
|
9
9
|
<!--[if lt IE 9]>
|
|
10
10
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="navbar navbar-default navbar-fixed-top ">
|
|
21
21
|
<div class="container">
|
|
22
22
|
<div class="navbar-header">
|
|
23
|
-
<a class="navbar-brand" href="index.html"
|
|
23
|
+
<a class="navbar-brand" href="index.html">Itee Tasks v1.3.1</a>
|
|
24
24
|
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
|
25
25
|
<span class="icon-bar"></span>
|
|
26
26
|
<span class="icon-bar"></span>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<li class="dropdown">
|
|
34
34
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
35
35
|
<ul class="dropdown-menu inline">
|
|
36
|
-
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#
|
|
36
|
+
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li>
|
|
37
37
|
</ul>
|
|
38
38
|
</li>
|
|
39
39
|
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
<span class="copyright">
|
|
133
|
-
Copyright 2015-Present <a href="https://github.com/Itee">Itee
|
|
133
|
+
Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
|
|
134
134
|
</span>
|
|
135
135
|
|
|
136
136
|
<span class="jsdoc-message">
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width">
|
|
7
|
-
<title
|
|
7
|
+
<title>Itee Tasks v1.3.1 Source: lints/lint.task.mjs</title>
|
|
8
8
|
|
|
9
9
|
<!--[if lt IE 9]>
|
|
10
10
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="navbar navbar-default navbar-fixed-top ">
|
|
21
21
|
<div class="container">
|
|
22
22
|
<div class="navbar-header">
|
|
23
|
-
<a class="navbar-brand" href="index.html"
|
|
23
|
+
<a class="navbar-brand" href="index.html">Itee Tasks v1.3.1</a>
|
|
24
24
|
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
|
25
25
|
<span class="icon-bar"></span>
|
|
26
26
|
<span class="icon-bar"></span>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<li class="dropdown">
|
|
34
34
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
35
35
|
<ul class="dropdown-menu inline">
|
|
36
|
-
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#
|
|
36
|
+
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li>
|
|
37
37
|
</ul>
|
|
38
38
|
</li>
|
|
39
39
|
|
|
@@ -70,20 +70,22 @@
|
|
|
70
70
|
<section>
|
|
71
71
|
<article>
|
|
72
72
|
<pre
|
|
73
|
-
class="sunlight-highlight-javascript linenums">import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import { basename } from 'node:path'
|
|
77
|
-
import { promisify } from 'node:util'
|
|
73
|
+
class="sunlight-highlight-javascript linenums">import child_process from 'node:child_process'
|
|
74
|
+
import { basename } from 'node:path'
|
|
75
|
+
import { promisify } from 'node:util'
|
|
78
76
|
import {
|
|
79
|
-
|
|
77
|
+
cyan,
|
|
78
|
+
red
|
|
79
|
+
} from '../utils/colors.mjs'
|
|
80
|
+
import {
|
|
81
|
+
log,
|
|
80
82
|
logLoadingTask
|
|
81
|
-
}
|
|
83
|
+
} from '../utils/loggings.mjs'
|
|
84
|
+
import { getTaskConfigurationPathFor } from '../utils/tasks.mjs'
|
|
82
85
|
|
|
83
86
|
logLoadingTask( import.meta.filename )
|
|
84
87
|
|
|
85
88
|
const execFile = promisify( child_process.execFile )
|
|
86
|
-
const { red } = colors
|
|
87
89
|
|
|
88
90
|
/**
|
|
89
91
|
* @method npm run lint
|
|
@@ -95,6 +97,7 @@ const lintTask = async ( done ) => {
|
|
|
95
97
|
try {
|
|
96
98
|
|
|
97
99
|
const configurationPath = getTaskConfigurationPathFor( import.meta.filename )
|
|
100
|
+
log( `Loading configuration from ${ cyan( configurationPath ) }` )
|
|
98
101
|
|
|
99
102
|
const { stdout } = await execFile( 'npx', [ 'eslint', '--config', configurationPath, '--fix' ] )
|
|
100
103
|
if ( stdout !== '' ) {
|
|
@@ -154,7 +157,7 @@ export { lintTask }</pre>
|
|
|
154
157
|
|
|
155
158
|
|
|
156
159
|
<span class="copyright">
|
|
157
|
-
Copyright 2015-Present <a href="https://github.com/Itee">Itee
|
|
160
|
+
Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
|
|
158
161
|
</span>
|
|
159
162
|
|
|
160
163
|
<span class="jsdoc-message">
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width">
|
|
7
|
-
<title
|
|
7
|
+
<title>Itee Tasks v1.3.1 Source: patches/patch.task.mjs</title>
|
|
8
8
|
|
|
9
9
|
<!--[if lt IE 9]>
|
|
10
10
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="navbar navbar-default navbar-fixed-top ">
|
|
21
21
|
<div class="container">
|
|
22
22
|
<div class="navbar-header">
|
|
23
|
-
<a class="navbar-brand" href="index.html"
|
|
23
|
+
<a class="navbar-brand" href="index.html">Itee Tasks v1.3.1</a>
|
|
24
24
|
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
|
25
25
|
<span class="icon-bar"></span>
|
|
26
26
|
<span class="icon-bar"></span>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<li class="dropdown">
|
|
34
34
|
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
35
35
|
<ul class="dropdown-menu inline">
|
|
36
|
-
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#
|
|
36
|
+
<li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li>
|
|
37
37
|
</ul>
|
|
38
38
|
</li>
|
|
39
39
|
|
|
@@ -70,21 +70,15 @@
|
|
|
70
70
|
<section>
|
|
71
71
|
<article>
|
|
72
72
|
<pre
|
|
73
|
-
class="sunlight-highlight-javascript linenums">import
|
|
74
|
-
import {
|
|
73
|
+
class="sunlight-highlight-javascript linenums">import {
|
|
75
74
|
readFileSync,
|
|
76
75
|
writeFileSync
|
|
77
76
|
} from 'node:fs'
|
|
78
77
|
import { basename } from 'node:path'
|
|
79
|
-
import { logLoadingTask } from '../
|
|
78
|
+
import { logLoadingTask } from '../utils/loggings.mjs'
|
|
80
79
|
|
|
81
80
|
logLoadingTask( import.meta.filename )
|
|
82
81
|
|
|
83
|
-
const {
|
|
84
|
-
green,
|
|
85
|
-
blue
|
|
86
|
-
} = colors
|
|
87
|
-
|
|
88
82
|
/**
|
|
89
83
|
* @method npm run patch
|
|
90
84
|
* @global
|
|
@@ -106,6 +100,14 @@ const patchTask = ( done ) => {
|
|
|
106
100
|
const patchedFileContent = fileContent.replace( searchValue, replaceValue )
|
|
107
101
|
writeFileSync( jsdocFilePath, patchedFileContent )
|
|
108
102
|
}
|
|
103
|
+
{
|
|
104
|
+
const jsdocFilePath = 'node_modules/jsdoc/conf.json.EXAMPLE'
|
|
105
|
+
const searchValue = '.js(doc|x)?'
|
|
106
|
+
const replaceValue = '.(js|mjs|cjs|jsdoc|jsx)?'
|
|
107
|
+
const fileContent = readFileSync( jsdocFilePath ).toString()
|
|
108
|
+
const patchedFileContent = fileContent.replace( searchValue, replaceValue )
|
|
109
|
+
writeFileSync( jsdocFilePath, patchedFileContent )
|
|
110
|
+
}
|
|
109
111
|
|
|
110
112
|
done()
|
|
111
113
|
}
|
|
@@ -152,7 +154,7 @@ export { patchTask }</pre>
|
|
|
152
154
|
|
|
153
155
|
|
|
154
156
|
<span class="copyright">
|
|
155
|
-
Copyright 2015-Present <a href="https://github.com/Itee">Itee
|
|
157
|
+
Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
|
|
156
158
|
</span>
|
|
157
159
|
|
|
158
160
|
<span class="jsdoc-message">
|