@itee/tasks 1.4.4 → 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.
- package/CHANGELOG.md +5 -0
- package/package.json +3 -3
- package/sources/utils/testing.js +1 -1
- package/docs/-_utils.mjs.html +0 -898
- package/docs/cleans_clean.task.mjs.html +0 -238
- package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
- package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/global.html +0 -2200
- package/docs/helps_help.task.mjs.html +0 -326
- package/docs/img/glyphicons-halflings-white.png +0 -0
- package/docs/img/glyphicons-halflings.png +0 -0
- package/docs/index.html +0 -228
- package/docs/lints_lint.task.mjs.html +0 -255
- package/docs/patches_patch.task.mjs.html +0 -252
- package/docs/quicksearch.html +0 -31
- package/docs/releases_release.task.mjs.html +0 -238
- package/docs/scripts/docstrap.lib.js +0 -11
- package/docs/scripts/fulltext-search-ui.js +0 -89
- package/docs/scripts/fulltext-search.js +0 -36
- package/docs/scripts/lunr.min.js +0 -6
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/scripts/prettify/jquery.min.js +0 -6
- package/docs/scripts/prettify/lang-css.js +0 -21
- package/docs/scripts/prettify/prettify.js +0 -496
- package/docs/scripts/sunlight.js +0 -1157
- package/docs/scripts/toc.js +0 -203
- package/docs/styles/darkstrap.css +0 -960
- package/docs/styles/prettify-tomorrow.css +0 -132
- package/docs/styles/site.cerulean.css +0 -7008
- package/docs/styles/site.cosmo.css +0 -7061
- package/docs/styles/site.cyborg.css +0 -7048
- package/docs/styles/site.darkly.css +0 -7171
- package/docs/styles/site.darkstrap.css +0 -5638
- package/docs/styles/site.dibs-bootstrap.css +0 -5899
- package/docs/styles/site.flatly.css +0 -7147
- package/docs/styles/site.journal.css +0 -6973
- package/docs/styles/site.lumen.css +0 -7298
- package/docs/styles/site.paper.css +0 -7623
- package/docs/styles/site.readable.css +0 -6997
- package/docs/styles/site.sandstone.css +0 -7035
- package/docs/styles/site.simplex.css +0 -7023
- package/docs/styles/site.slate.css +0 -7343
- package/docs/styles/site.spacelab.css +0 -7055
- package/docs/styles/site.superhero.css +0 -7131
- package/docs/styles/site.united.css +0 -6895
- package/docs/styles/site.yeti.css +0 -7195
- package/docs/styles/sunlight.dark.css +0 -345
- package/docs/styles/sunlight.default.css +0 -344
- package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +0 -438
- package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +0 -251
- package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +0 -252
- package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +0 -288
- package/docs/tests_bundlings_check-bundling.task.mjs.html +0 -231
- package/docs/tests_run-tests.task.mjs.html +0 -228
- package/docs/tests_units_compute-unit-tests.task.mjs.html +0 -758
- package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +0 -256
- package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +0 -252
- package/docs/utils_texts.mjs.html +0 -328
|
@@ -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.3 Source: tests/benchmarks/run-benchmarks-for-frontend.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.3</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: tests/benchmarks/run-benchmarks-for-frontend.task.mjs</h1>
|
|
69
|
-
|
|
70
|
-
<section>
|
|
71
|
-
<article>
|
|
72
|
-
<pre
|
|
73
|
-
class="sunlight-highlight-javascript linenums">import { startTestRunner } from '@web/test-runner'
|
|
74
|
-
import { basename } from 'node:path'
|
|
75
|
-
import { red } from '../../utils/colors.mjs'
|
|
76
|
-
import { logLoadingTask } from '../../utils/loggings.mjs'
|
|
77
|
-
import { getTaskConfigurationFor } from '../../utils/tasks.mjs'
|
|
78
|
-
|
|
79
|
-
logLoadingTask( import.meta.filename )
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @description Will run benchmarks with web-test-runner
|
|
83
|
-
*/
|
|
84
|
-
const runBenchmarksForFrontendTask = async () => {
|
|
85
|
-
|
|
86
|
-
const configuration = await getTaskConfigurationFor( import.meta.filename )
|
|
87
|
-
const testRunner = await startTestRunner( {
|
|
88
|
-
config: configuration,
|
|
89
|
-
readCliArgs: false,
|
|
90
|
-
readFileConfig: false,
|
|
91
|
-
autoExitProcess: false,
|
|
92
|
-
} )
|
|
93
|
-
|
|
94
|
-
return new Promise( ( resolve, reject ) => {
|
|
95
|
-
|
|
96
|
-
if ( !testRunner ) {
|
|
97
|
-
reject( red( 'Internal test runner error.' ) )
|
|
98
|
-
return
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// To ensure that testRunner exit event won't be used by other instance of test runner,
|
|
102
|
-
// we need to be sure that current test runner is ended
|
|
103
|
-
testRunner.on( 'finished', () => {
|
|
104
|
-
testRunner.stop()
|
|
105
|
-
} )
|
|
106
|
-
|
|
107
|
-
testRunner.on( 'stopped', () => {
|
|
108
|
-
resolve()
|
|
109
|
-
} )
|
|
110
|
-
|
|
111
|
-
} )
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
runBenchmarksForFrontendTask.displayName = basename( import.meta.filename, '.task.mjs' )
|
|
115
|
-
runBenchmarksForFrontendTask.description = 'Will run benchmarks with web-test-runner.'
|
|
116
|
-
runBenchmarksForFrontendTask.flags = null
|
|
117
|
-
|
|
118
|
-
export { runBenchmarksForFrontendTask }</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">×</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>
|
|
@@ -1,288 +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.3 Source: tests/bundlings/check-bundling-from-esm-files-direct.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.3</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: tests/bundlings/check-bundling-from-esm-files-direct.task.mjs</h1>
|
|
69
|
-
|
|
70
|
-
<section>
|
|
71
|
-
<article>
|
|
72
|
-
<pre
|
|
73
|
-
class="sunlight-highlight-javascript linenums">import {
|
|
74
|
-
existsSync,
|
|
75
|
-
rmSync
|
|
76
|
-
} from 'node:fs'
|
|
77
|
-
import {
|
|
78
|
-
basename,
|
|
79
|
-
dirname,
|
|
80
|
-
extname,
|
|
81
|
-
join
|
|
82
|
-
} from 'node:path'
|
|
83
|
-
import { rollup } from 'rollup'
|
|
84
|
-
import {
|
|
85
|
-
green,
|
|
86
|
-
magenta,
|
|
87
|
-
red,
|
|
88
|
-
} from '../../utils/colors.mjs'
|
|
89
|
-
import { getJavascriptSourceFiles } from '../../utils/files.mjs'
|
|
90
|
-
import {
|
|
91
|
-
log,
|
|
92
|
-
logLoadingTask
|
|
93
|
-
} from '../../utils/loggings.mjs'
|
|
94
|
-
import {
|
|
95
|
-
packageSourcesDirectory,
|
|
96
|
-
packageTestsBundlesDirectory
|
|
97
|
-
} from '../../utils/packages.mjs'
|
|
98
|
-
import { getTaskConfigurationFor } from '../../utils/tasks.mjs'
|
|
99
|
-
|
|
100
|
-
logLoadingTask( import.meta.filename )
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @description In view to detect bundling side effects this task will
|
|
104
|
-
* create intermediary file for each individual export from this package
|
|
105
|
-
* and then create rollup config for each of them and bundle
|
|
106
|
-
* Todo: Check for different target env like next task below this one
|
|
107
|
-
*/
|
|
108
|
-
const checkBundlingFromEsmFilesDirectTask = async ( done ) => {
|
|
109
|
-
|
|
110
|
-
const outputDir = join( packageTestsBundlesDirectory, 'from_files_direct' )
|
|
111
|
-
if ( existsSync( outputDir ) ) {
|
|
112
|
-
log( 'Clean up', magenta( outputDir ) )
|
|
113
|
-
rmSync( outputDir, { recursive: true } )
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const configuration = await getTaskConfigurationFor( import.meta.filename )
|
|
117
|
-
const sourceFiles = getJavascriptSourceFiles( configuration.ignoredFiles )
|
|
118
|
-
|
|
119
|
-
for ( let sourceFile of sourceFiles ) {
|
|
120
|
-
|
|
121
|
-
const specificFilePath = sourceFile.replace( packageSourcesDirectory, '' )
|
|
122
|
-
const specificDir = dirname( specificFilePath )
|
|
123
|
-
const fileName = basename( sourceFile, extname( sourceFile ) )
|
|
124
|
-
|
|
125
|
-
const bundleFileName = `${ fileName }.bundle.js`
|
|
126
|
-
const bundleFilePath = join( outputDir, specificDir, bundleFileName )
|
|
127
|
-
|
|
128
|
-
configuration.buildOptions.input = sourceFile
|
|
129
|
-
configuration.buildOptions.output.file = bundleFilePath
|
|
130
|
-
|
|
131
|
-
try {
|
|
132
|
-
|
|
133
|
-
log( 'Bundling', green( configuration.buildOptions.output.file ) )
|
|
134
|
-
|
|
135
|
-
const bundle = await rollup( configuration.buildOptions )
|
|
136
|
-
await bundle.generate( configuration.buildOptions.output )
|
|
137
|
-
await bundle.write( configuration.buildOptions.output )
|
|
138
|
-
|
|
139
|
-
} catch ( error ) {
|
|
140
|
-
|
|
141
|
-
log( red( error.message ) )
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
done()
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
checkBundlingFromEsmFilesDirectTask.displayName = basename( import.meta.filename, '.task.mjs' )
|
|
151
|
-
checkBundlingFromEsmFilesDirectTask.description = 'In view to detect bundling side effects this task will create intermediary file for each individual export from this package and then create rollup config for each of them and bundle'
|
|
152
|
-
checkBundlingFromEsmFilesDirectTask.flags = null
|
|
153
|
-
|
|
154
|
-
export { checkBundlingFromEsmFilesDirectTask }</pre>
|
|
155
|
-
</article>
|
|
156
|
-
</section>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
|
|
165
|
-
<div class="clearfix"></div>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<div class="modal fade" id="searchResults">
|
|
174
|
-
<div class="modal-dialog">
|
|
175
|
-
<div class="modal-content">
|
|
176
|
-
<div class="modal-header">
|
|
177
|
-
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
178
|
-
<h4 class="modal-title">Search results</h4>
|
|
179
|
-
</div>
|
|
180
|
-
<div class="modal-body"></div>
|
|
181
|
-
<div class="modal-footer">
|
|
182
|
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
183
|
-
</div>
|
|
184
|
-
</div><!-- /.modal-content -->
|
|
185
|
-
</div><!-- /.modal-dialog -->
|
|
186
|
-
</div>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<footer>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<span class="copyright">
|
|
193
|
-
Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
|
|
194
|
-
</span>
|
|
195
|
-
|
|
196
|
-
<span class="jsdoc-message">
|
|
197
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
|
|
198
|
-
|
|
199
|
-
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
200
|
-
</span>
|
|
201
|
-
</footer>
|
|
202
|
-
|
|
203
|
-
<script src="scripts/docstrap.lib.js"></script>
|
|
204
|
-
<script src="scripts/toc.js"></script>
|
|
205
|
-
|
|
206
|
-
<script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<script>
|
|
210
|
-
$( function () {
|
|
211
|
-
$( "[id*='$']" ).each( function () {
|
|
212
|
-
var $this = $( this );
|
|
213
|
-
|
|
214
|
-
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
|
215
|
-
} );
|
|
216
|
-
|
|
217
|
-
$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
|
|
218
|
-
var $this = $( this );
|
|
219
|
-
|
|
220
|
-
var example = $this.find( "code" );
|
|
221
|
-
exampleText = example.html();
|
|
222
|
-
var lang = /{@lang (.*?)}/.exec( exampleText );
|
|
223
|
-
if ( lang && lang[1] ) {
|
|
224
|
-
exampleText = exampleText.replace( lang[0], "" );
|
|
225
|
-
example.html( exampleText );
|
|
226
|
-
lang = lang[1];
|
|
227
|
-
} else {
|
|
228
|
-
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
|
229
|
-
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
if ( lang ) {
|
|
233
|
-
|
|
234
|
-
$this
|
|
235
|
-
.addClass( "sunlight-highlight-" + lang )
|
|
236
|
-
.addClass( "linenums" )
|
|
237
|
-
.html( example.html() );
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
} );
|
|
241
|
-
|
|
242
|
-
Sunlight.highlightAll( {
|
|
243
|
-
lineNumbers : true,
|
|
244
|
-
showMenu : true,
|
|
245
|
-
enableDoclinks : true
|
|
246
|
-
} );
|
|
247
|
-
|
|
248
|
-
$.catchAnchorLinks( {
|
|
249
|
-
navbarOffset: 10
|
|
250
|
-
} );
|
|
251
|
-
$( "#toc" ).toc( {
|
|
252
|
-
anchorName : function ( i, heading, prefix ) {
|
|
253
|
-
return $( heading ).attr( "id" ) || ( prefix + i );
|
|
254
|
-
},
|
|
255
|
-
selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
|
|
256
|
-
showAndHide : false,
|
|
257
|
-
smoothScrolling: true
|
|
258
|
-
} );
|
|
259
|
-
|
|
260
|
-
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
|
261
|
-
$( '.dropdown-toggle' ).dropdown();
|
|
262
|
-
|
|
263
|
-
$( "table" ).each( function () {
|
|
264
|
-
var $this = $( this );
|
|
265
|
-
$this.addClass('table');
|
|
266
|
-
} );
|
|
267
|
-
|
|
268
|
-
} );
|
|
269
|
-
</script>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
<!--Navigation and Symbol Display-->
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<!--Google Analytics-->
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
<script type="text/javascript">
|
|
281
|
-
$(document).ready(function() {
|
|
282
|
-
SearcherDisplay.init();
|
|
283
|
-
});
|
|
284
|
-
</script>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
</body>
|
|
288
|
-
</html>
|