@itee/tasks 1.4.3 → 1.4.5

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 (62) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +3 -3
  3. package/sources/utils/builds.mjs +74 -37
  4. package/sources/utils/testing.js +1 -1
  5. package/docs/-_utils.mjs.html +0 -898
  6. package/docs/cleans_clean.task.mjs.html +0 -238
  7. package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  8. package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
  9. package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  10. package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  11. package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  12. package/docs/global.html +0 -2200
  13. package/docs/helps_help.task.mjs.html +0 -326
  14. package/docs/img/glyphicons-halflings-white.png +0 -0
  15. package/docs/img/glyphicons-halflings.png +0 -0
  16. package/docs/index.html +0 -228
  17. package/docs/lints_lint.task.mjs.html +0 -255
  18. package/docs/patches_patch.task.mjs.html +0 -252
  19. package/docs/quicksearch.html +0 -31
  20. package/docs/releases_release.task.mjs.html +0 -238
  21. package/docs/scripts/docstrap.lib.js +0 -11
  22. package/docs/scripts/fulltext-search-ui.js +0 -89
  23. package/docs/scripts/fulltext-search.js +0 -36
  24. package/docs/scripts/lunr.min.js +0 -6
  25. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  26. package/docs/scripts/prettify/jquery.min.js +0 -6
  27. package/docs/scripts/prettify/lang-css.js +0 -21
  28. package/docs/scripts/prettify/prettify.js +0 -496
  29. package/docs/scripts/sunlight.js +0 -1157
  30. package/docs/scripts/toc.js +0 -203
  31. package/docs/styles/darkstrap.css +0 -960
  32. package/docs/styles/prettify-tomorrow.css +0 -132
  33. package/docs/styles/site.cerulean.css +0 -7008
  34. package/docs/styles/site.cosmo.css +0 -7061
  35. package/docs/styles/site.cyborg.css +0 -7048
  36. package/docs/styles/site.darkly.css +0 -7171
  37. package/docs/styles/site.darkstrap.css +0 -5638
  38. package/docs/styles/site.dibs-bootstrap.css +0 -5899
  39. package/docs/styles/site.flatly.css +0 -7147
  40. package/docs/styles/site.journal.css +0 -6973
  41. package/docs/styles/site.lumen.css +0 -7298
  42. package/docs/styles/site.paper.css +0 -7623
  43. package/docs/styles/site.readable.css +0 -6997
  44. package/docs/styles/site.sandstone.css +0 -7035
  45. package/docs/styles/site.simplex.css +0 -7023
  46. package/docs/styles/site.slate.css +0 -7343
  47. package/docs/styles/site.spacelab.css +0 -7055
  48. package/docs/styles/site.superhero.css +0 -7131
  49. package/docs/styles/site.united.css +0 -6895
  50. package/docs/styles/site.yeti.css +0 -7195
  51. package/docs/styles/sunlight.dark.css +0 -345
  52. package/docs/styles/sunlight.default.css +0 -344
  53. package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +0 -438
  54. package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +0 -251
  55. package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +0 -252
  56. package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +0 -288
  57. package/docs/tests_bundlings_check-bundling.task.mjs.html +0 -231
  58. package/docs/tests_run-tests.task.mjs.html +0 -228
  59. package/docs/tests_units_compute-unit-tests.task.mjs.html +0 -758
  60. package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +0 -256
  61. package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +0 -252
  62. package/docs/utils_texts.mjs.html +0 -328
@@ -1,255 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.4.2 Source: lints/lint.task.mjs</title>
8
-
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/sunlight.dark.css">
13
-
14
- <link type="text/css" rel="stylesheet" href="styles/site.cyborg.css">
15
-
16
- </head>
17
-
18
- <body>
19
-
20
- <div class="navbar navbar-default navbar-fixed-top ">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">Itee Tasks v1.4.2</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
35
- <ul class="dropdown-menu inline">
36
- <li><a href="global.html#alignTextCenter">alignTextCenter</a></li><li><a href="global.html#alignTextLeft">alignTextLeft</a></li><li><a href="global.html#alignTextRight">alignTextRight</a></li><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><li><a href="global.html#toCamelCase">toCamelCase</a></li>
37
- </ul>
38
- </li>
39
-
40
- </ul>
41
-
42
- <div class="col-sm-3 col-md-3">
43
- <form class="navbar-form" role="search">
44
- <div class="input-group">
45
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
46
- <div class="input-group-btn">
47
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
48
- </div>
49
- </div>
50
- </form>
51
- </div>
52
-
53
- </div>
54
-
55
- </div>
56
- </div>
57
-
58
-
59
- <div class="container" id="toc-content">
60
- <div class="row">
61
-
62
-
63
- <div class="col-md-12">
64
-
65
- <div id="main">
66
-
67
-
68
- <h1 class="page-title">Source: lints/lint.task.mjs</h1>
69
-
70
- <section>
71
- <article>
72
- <pre
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'
76
- import {
77
- cyan,
78
- red
79
- } from '../utils/colors.mjs'
80
- import {
81
- log,
82
- logLoadingTask
83
- } from '../utils/loggings.mjs'
84
- import { getTaskConfigurationPathFor } from '../utils/tasks.mjs'
85
-
86
- logLoadingTask( import.meta.filename )
87
-
88
- const execFile = promisify( child_process.execFile )
89
-
90
- /**
91
- * @method npm run lint
92
- * @global
93
- * @description Will lint the sources files and try to fix the style when possible
94
- */
95
- const lintTask = async ( done ) => {
96
-
97
- try {
98
-
99
- const configurationPath = getTaskConfigurationPathFor( import.meta.filename )
100
- log( `Loading configuration from ${ cyan( configurationPath ) }` )
101
-
102
- const { stdout } = await execFile( 'npx', [ 'eslint', '--config', configurationPath, '--fix' ] )
103
- if ( stdout !== '' ) {
104
- log( stdout )
105
- }
106
-
107
- done()
108
-
109
- } catch ( error ) {
110
-
111
- log( error.stdout )
112
- done( red( error.message ) )
113
-
114
- }
115
-
116
- }
117
- lintTask.displayName = basename( import.meta.filename, '.task.mjs' )
118
- lintTask.description = 'Will lint the sources files and try to fix the style when possible.'
119
- lintTask.flags = null
120
-
121
- export { lintTask }</pre>
122
- </article>
123
- </section>
124
-
125
-
126
-
127
-
128
-
129
- </div>
130
- </div>
131
-
132
- <div class="clearfix"></div>
133
-
134
-
135
-
136
- </div>
137
- </div>
138
-
139
-
140
- <div class="modal fade" id="searchResults">
141
- <div class="modal-dialog">
142
- <div class="modal-content">
143
- <div class="modal-header">
144
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
145
- <h4 class="modal-title">Search results</h4>
146
- </div>
147
- <div class="modal-body"></div>
148
- <div class="modal-footer">
149
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
150
- </div>
151
- </div><!-- /.modal-content -->
152
- </div><!-- /.modal-dialog -->
153
- </div>
154
-
155
-
156
- <footer>
157
-
158
-
159
- <span class="copyright">
160
- Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
161
- </span>
162
-
163
- <span class="jsdoc-message">
164
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
165
-
166
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
167
- </span>
168
- </footer>
169
-
170
- <script src="scripts/docstrap.lib.js"></script>
171
- <script src="scripts/toc.js"></script>
172
-
173
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
174
-
175
-
176
- <script>
177
- $( function () {
178
- $( "[id*='$']" ).each( function () {
179
- var $this = $( this );
180
-
181
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
182
- } );
183
-
184
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
185
- var $this = $( this );
186
-
187
- var example = $this.find( "code" );
188
- exampleText = example.html();
189
- var lang = /{@lang (.*?)}/.exec( exampleText );
190
- if ( lang && lang[1] ) {
191
- exampleText = exampleText.replace( lang[0], "" );
192
- example.html( exampleText );
193
- lang = lang[1];
194
- } else {
195
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
196
- lang = langClassMatch ? langClassMatch[1] : "javascript";
197
- }
198
-
199
- if ( lang ) {
200
-
201
- $this
202
- .addClass( "sunlight-highlight-" + lang )
203
- .addClass( "linenums" )
204
- .html( example.html() );
205
-
206
- }
207
- } );
208
-
209
- Sunlight.highlightAll( {
210
- lineNumbers : true,
211
- showMenu : true,
212
- enableDoclinks : true
213
- } );
214
-
215
- $.catchAnchorLinks( {
216
- navbarOffset: 10
217
- } );
218
- $( "#toc" ).toc( {
219
- anchorName : function ( i, heading, prefix ) {
220
- return $( heading ).attr( "id" ) || ( prefix + i );
221
- },
222
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
223
- showAndHide : false,
224
- smoothScrolling: true
225
- } );
226
-
227
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
228
- $( '.dropdown-toggle' ).dropdown();
229
-
230
- $( "table" ).each( function () {
231
- var $this = $( this );
232
- $this.addClass('table');
233
- } );
234
-
235
- } );
236
- </script>
237
-
238
-
239
-
240
- <!--Navigation and Symbol Display-->
241
-
242
-
243
- <!--Google Analytics-->
244
-
245
-
246
-
247
- <script type="text/javascript">
248
- $(document).ready(function() {
249
- SearcherDisplay.init();
250
- });
251
- </script>
252
-
253
-
254
- </body>
255
- </html>
@@ -1,252 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.4.2 Source: patches/patch.task.mjs</title>
8
-
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/sunlight.dark.css">
13
-
14
- <link type="text/css" rel="stylesheet" href="styles/site.cyborg.css">
15
-
16
- </head>
17
-
18
- <body>
19
-
20
- <div class="navbar navbar-default navbar-fixed-top ">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">Itee Tasks v1.4.2</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
35
- <ul class="dropdown-menu inline">
36
- <li><a href="global.html#alignTextCenter">alignTextCenter</a></li><li><a href="global.html#alignTextLeft">alignTextLeft</a></li><li><a href="global.html#alignTextRight">alignTextRight</a></li><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><li><a href="global.html#toCamelCase">toCamelCase</a></li>
37
- </ul>
38
- </li>
39
-
40
- </ul>
41
-
42
- <div class="col-sm-3 col-md-3">
43
- <form class="navbar-form" role="search">
44
- <div class="input-group">
45
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
46
- <div class="input-group-btn">
47
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
48
- </div>
49
- </div>
50
- </form>
51
- </div>
52
-
53
- </div>
54
-
55
- </div>
56
- </div>
57
-
58
-
59
- <div class="container" id="toc-content">
60
- <div class="row">
61
-
62
-
63
- <div class="col-md-12">
64
-
65
- <div id="main">
66
-
67
-
68
- <h1 class="page-title">Source: patches/patch.task.mjs</h1>
69
-
70
- <section>
71
- <article>
72
- <pre
73
- class="sunlight-highlight-javascript linenums">import {
74
- readFileSync,
75
- writeFileSync
76
- } from 'node:fs'
77
- import { basename } from 'node:path'
78
- import { logLoadingTask } from '../utils/loggings.mjs'
79
-
80
- logLoadingTask( import.meta.filename )
81
-
82
- /**
83
- * @method npm run patch
84
- * @global
85
- * @description Will apply some patch/replacements in dependencies
86
- */
87
- const patchTask = ( done ) => {
88
-
89
- // patch jsdoc
90
- {
91
- const jsdocFilePath = 'node_modules/jsdoc/cli.js'
92
- const searchValue = 'case \'.js\':'
93
- const replaceValue = '' +
94
- 'case \'.mjs\':' + '\n' +
95
- '\t\t\t\t\t' + 'config = require( path.resolve(confPath) ).default || {};' + '\n' +
96
- '\t\t\t\t\t' + 'break;' + '\n' +
97
- '\t\t\t\t' + 'case \'.js\':' + '\n' +
98
- '\t\t\t\t' + 'case \'.cjs\':'
99
- const fileContent = readFileSync( jsdocFilePath ).toString()
100
- const patchedFileContent = fileContent.replace( searchValue, replaceValue )
101
- writeFileSync( jsdocFilePath, patchedFileContent )
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
- }
111
-
112
- done()
113
- }
114
- patchTask.displayName = basename( import.meta.filename, '.task.mjs' )
115
- patchTask.description = 'Will apply some patch/replacements in dependencies'
116
- patchTask.flags = null
117
-
118
- export { patchTask }</pre>
119
- </article>
120
- </section>
121
-
122
-
123
-
124
-
125
-
126
- </div>
127
- </div>
128
-
129
- <div class="clearfix"></div>
130
-
131
-
132
-
133
- </div>
134
- </div>
135
-
136
-
137
- <div class="modal fade" id="searchResults">
138
- <div class="modal-dialog">
139
- <div class="modal-content">
140
- <div class="modal-header">
141
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
142
- <h4 class="modal-title">Search results</h4>
143
- </div>
144
- <div class="modal-body"></div>
145
- <div class="modal-footer">
146
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
147
- </div>
148
- </div><!-- /.modal-content -->
149
- </div><!-- /.modal-dialog -->
150
- </div>
151
-
152
-
153
- <footer>
154
-
155
-
156
- <span class="copyright">
157
- Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
158
- </span>
159
-
160
- <span class="jsdoc-message">
161
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
162
-
163
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
164
- </span>
165
- </footer>
166
-
167
- <script src="scripts/docstrap.lib.js"></script>
168
- <script src="scripts/toc.js"></script>
169
-
170
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
171
-
172
-
173
- <script>
174
- $( function () {
175
- $( "[id*='$']" ).each( function () {
176
- var $this = $( this );
177
-
178
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
179
- } );
180
-
181
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
182
- var $this = $( this );
183
-
184
- var example = $this.find( "code" );
185
- exampleText = example.html();
186
- var lang = /{@lang (.*?)}/.exec( exampleText );
187
- if ( lang && lang[1] ) {
188
- exampleText = exampleText.replace( lang[0], "" );
189
- example.html( exampleText );
190
- lang = lang[1];
191
- } else {
192
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
193
- lang = langClassMatch ? langClassMatch[1] : "javascript";
194
- }
195
-
196
- if ( lang ) {
197
-
198
- $this
199
- .addClass( "sunlight-highlight-" + lang )
200
- .addClass( "linenums" )
201
- .html( example.html() );
202
-
203
- }
204
- } );
205
-
206
- Sunlight.highlightAll( {
207
- lineNumbers : true,
208
- showMenu : true,
209
- enableDoclinks : true
210
- } );
211
-
212
- $.catchAnchorLinks( {
213
- navbarOffset: 10
214
- } );
215
- $( "#toc" ).toc( {
216
- anchorName : function ( i, heading, prefix ) {
217
- return $( heading ).attr( "id" ) || ( prefix + i );
218
- },
219
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
220
- showAndHide : false,
221
- smoothScrolling: true
222
- } );
223
-
224
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
225
- $( '.dropdown-toggle' ).dropdown();
226
-
227
- $( "table" ).each( function () {
228
- var $this = $( this );
229
- $this.addClass('table');
230
- } );
231
-
232
- } );
233
- </script>
234
-
235
-
236
-
237
- <!--Navigation and Symbol Display-->
238
-
239
-
240
- <!--Google Analytics-->
241
-
242
-
243
-
244
- <script type="text/javascript">
245
- $(document).ready(function() {
246
- SearcherDisplay.init();
247
- });
248
- </script>
249
-
250
-
251
- </body>
252
- </html>