@itee/tasks 1.1.0 → 1.2.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 (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/configs/docs/doc.conf.mjs +55 -0
  3. package/docs/-_utils.mjs.html +848 -0
  4. package/docs/cleans_clean.task.mjs.html +239 -0
  5. package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  6. package/docs/fonts/glyphicons-halflings-regular.svg +288 -0
  7. package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  8. package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  9. package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  10. package/docs/global.html +1668 -0
  11. package/docs/helps_help.task.mjs.html +362 -0
  12. package/docs/img/glyphicons-halflings-white.png +0 -0
  13. package/docs/img/glyphicons-halflings.png +0 -0
  14. package/docs/index.html +228 -0
  15. package/docs/lints_lint.task.mjs.html +252 -0
  16. package/docs/patches_patch.task.mjs.html +251 -0
  17. package/docs/quicksearch.html +31 -0
  18. package/docs/releases_release.task.mjs.html +238 -0
  19. package/docs/scripts/docstrap.lib.js +11 -0
  20. package/docs/scripts/fulltext-search-ui.js +89 -0
  21. package/docs/scripts/fulltext-search.js +36 -0
  22. package/docs/scripts/lunr.min.js +6 -0
  23. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  24. package/docs/scripts/prettify/jquery.min.js +6 -0
  25. package/docs/scripts/prettify/lang-css.js +21 -0
  26. package/docs/scripts/prettify/prettify.js +496 -0
  27. package/docs/scripts/sunlight.js +1157 -0
  28. package/docs/scripts/toc.js +203 -0
  29. package/docs/styles/darkstrap.css +960 -0
  30. package/docs/styles/prettify-tomorrow.css +132 -0
  31. package/docs/styles/site.cerulean.css +7008 -0
  32. package/docs/styles/site.cosmo.css +7061 -0
  33. package/docs/styles/site.cyborg.css +7048 -0
  34. package/docs/styles/site.darkly.css +7171 -0
  35. package/docs/styles/site.darkstrap.css +5638 -0
  36. package/docs/styles/site.dibs-bootstrap.css +5899 -0
  37. package/docs/styles/site.flatly.css +7147 -0
  38. package/docs/styles/site.journal.css +6973 -0
  39. package/docs/styles/site.lumen.css +7298 -0
  40. package/docs/styles/site.paper.css +7623 -0
  41. package/docs/styles/site.readable.css +6997 -0
  42. package/docs/styles/site.sandstone.css +7035 -0
  43. package/docs/styles/site.simplex.css +7023 -0
  44. package/docs/styles/site.slate.css +7343 -0
  45. package/docs/styles/site.spacelab.css +7055 -0
  46. package/docs/styles/site.superhero.css +7131 -0
  47. package/docs/styles/site.united.css +6895 -0
  48. package/docs/styles/site.yeti.css +7195 -0
  49. package/docs/styles/sunlight.dark.css +345 -0
  50. package/docs/styles/sunlight.default.css +344 -0
  51. package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +442 -0
  52. package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +249 -0
  53. package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +254 -0
  54. package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +300 -0
  55. package/docs/tests_bundlings_check-bundling.task.mjs.html +231 -0
  56. package/docs/tests_run-tests.task.mjs.html +228 -0
  57. package/docs/tests_units_compute-unit-tests.task.mjs.html +753 -0
  58. package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +254 -0
  59. package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +254 -0
  60. package/package.json +5 -2
  61. package/sources/_utils.mjs +29 -3
  62. package/sources/patches/patch.task.mjs +45 -0
  63. package/configs/docs/doc.conf.json +0 -1
@@ -0,0 +1,239 @@
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.1.1 Source: cleans/clean.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.1.1</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#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#createRollupConfigs">createRollupConfigs</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
+ </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: cleans/clean.task.mjs</h1>
69
+
70
+ <section>
71
+ <article>
72
+ <pre
73
+ class="sunlight-highlight-javascript linenums">import colors from 'ansi-colors'
74
+ import { deleteAsync } from 'del'
75
+ import log from 'fancy-log'
76
+ import { basename } from 'node:path'
77
+ import {
78
+ getTaskConfigurationFor,
79
+ logLoadingTask
80
+ } from '../_utils.mjs'
81
+
82
+ logLoadingTask( import.meta.filename )
83
+
84
+ const { red } = colors
85
+ const configuration = await getTaskConfigurationFor( import.meta.filename )
86
+
87
+ /**
88
+ * @method npm run clean
89
+ * @global
90
+ * @description Will delete builds and temporary folders
91
+ */
92
+ const cleanTask = () => deleteAsync( configuration, {
93
+ onProgress: progress => {
94
+ const path = progress.path || 'Nothing to clean...'
95
+ const percent = Math.round( progress.percent * 100 )
96
+ const spacer = percent === 100 ? '' : ' '
97
+ log( `Deleting [${ progress.deletedCount }/${ progress.totalCount }]&lt;${ percent }%>${ spacer }:`, red( path ) )
98
+ }
99
+ } )
100
+ cleanTask.displayName = basename( import.meta.filename, '.task.mjs' )
101
+ cleanTask.description = 'Will delete builds and temporary folders'
102
+ cleanTask.flags = null
103
+
104
+ export { cleanTask }
105
+ </pre>
106
+ </article>
107
+ </section>
108
+
109
+
110
+
111
+
112
+
113
+ </div>
114
+ </div>
115
+
116
+ <div class="clearfix"></div>
117
+
118
+
119
+
120
+ </div>
121
+ </div>
122
+
123
+
124
+ <div class="modal fade" id="searchResults">
125
+ <div class="modal-dialog">
126
+ <div class="modal-content">
127
+ <div class="modal-header">
128
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
129
+ <h4 class="modal-title">Search results</h4>
130
+ </div>
131
+ <div class="modal-body"></div>
132
+ <div class="modal-footer">
133
+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
134
+ </div>
135
+ </div><!-- /.modal-content -->
136
+ </div><!-- /.modal-dialog -->
137
+ </div>
138
+
139
+
140
+ <footer>
141
+
142
+
143
+ <span class="copyright">
144
+ Copyright 2015-Present <a href="https://github.com/Itee">Itee</a> (Tristan Valcke)
145
+ </span>
146
+
147
+ <span class="jsdoc-message">
148
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
149
+
150
+ using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
151
+ </span>
152
+ </footer>
153
+
154
+ <script src="scripts/docstrap.lib.js"></script>
155
+ <script src="scripts/toc.js"></script>
156
+
157
+ <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
158
+
159
+
160
+ <script>
161
+ $( function () {
162
+ $( "[id*='$']" ).each( function () {
163
+ var $this = $( this );
164
+
165
+ $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
166
+ } );
167
+
168
+ $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
169
+ var $this = $( this );
170
+
171
+ var example = $this.find( "code" );
172
+ exampleText = example.html();
173
+ var lang = /{@lang (.*?)}/.exec( exampleText );
174
+ if ( lang && lang[1] ) {
175
+ exampleText = exampleText.replace( lang[0], "" );
176
+ example.html( exampleText );
177
+ lang = lang[1];
178
+ } else {
179
+ var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
180
+ lang = langClassMatch ? langClassMatch[1] : "javascript";
181
+ }
182
+
183
+ if ( lang ) {
184
+
185
+ $this
186
+ .addClass( "sunlight-highlight-" + lang )
187
+ .addClass( "linenums" )
188
+ .html( example.html() );
189
+
190
+ }
191
+ } );
192
+
193
+ Sunlight.highlightAll( {
194
+ lineNumbers : true,
195
+ showMenu : true,
196
+ enableDoclinks : true
197
+ } );
198
+
199
+ $.catchAnchorLinks( {
200
+ navbarOffset: 10
201
+ } );
202
+ $( "#toc" ).toc( {
203
+ anchorName : function ( i, heading, prefix ) {
204
+ return $( heading ).attr( "id" ) || ( prefix + i );
205
+ },
206
+ selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
207
+ showAndHide : false,
208
+ smoothScrolling: true
209
+ } );
210
+
211
+ $( "#main span[id^='toc']" ).addClass( "toc-shim" );
212
+ $( '.dropdown-toggle' ).dropdown();
213
+
214
+ $( "table" ).each( function () {
215
+ var $this = $( this );
216
+ $this.addClass('table');
217
+ } );
218
+
219
+ } );
220
+ </script>
221
+
222
+
223
+
224
+ <!--Navigation and Symbol Display-->
225
+
226
+
227
+ <!--Google Analytics-->
228
+
229
+
230
+
231
+ <script type="text/javascript">
232
+ $(document).ready(function() {
233
+ SearcherDisplay.init();
234
+ });
235
+ </script>
236
+
237
+
238
+ </body>
239
+ </html>