@itee/tasks 1.3.2 → 1.4.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.
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/benchmarks/run-benchmarks-for-frontend.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/benchmarks/run-benchmarks-for-frontend.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/bundlings/check-bundling-from-esm-files-direct.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/bundlings/check-bundling-from-esm-files-direct.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/bundlings/check-bundling.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/bundlings/check-bundling.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/run-tests.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/run-tests.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/units/compute-unit-tests.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/units/compute-unit-tests.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -95,10 +95,11 @@ import {
95
95
  import {
96
96
  getPrettyPackageName,
97
97
  getUnscopedPackageName,
98
+ iteePackageSourcesDirectory,
98
99
  packageNodeModulesDirectory,
99
100
  packageSourcesDirectory,
100
101
  packageTestsUnitsDirectory
101
- } from '../../utils/packages.mjs'
102
+ } from '../../utils/packages.mjs'
102
103
  import { getTaskConfigurationFor } from '../../utils/tasks.mjs'
103
104
  import {
104
105
  Indenter,
@@ -545,11 +546,17 @@ const computeUnitTestsTask = async ( done ) => {
545
546
 
546
547
  }
547
548
 
549
+ const wrapperDirPath = relative( unitDirPath, iteePackageSourcesDirectory )
550
+ const importTestingFilePath = join( wrapperDirPath, 'utils', 'testing.js' )
551
+
548
552
  const template = '' +
549
553
  `import { expect } from 'chai'` + '\n' +
550
- `import { Testing } from 'itee-utils/sources/testings/benchmarks.js'` + '\n' +
554
+ `import { getTestingPackage } from '${ importTestingFilePath }'` + '\n' +
555
+ // `import { Testing } from 'itee-utils/sources/testings/benchmarks.js'` + '\n' +
551
556
  `import * as ${ nsName } from '${ importFilePath }'` + '\n' +
552
557
  '\n' +
558
+ `const Testing = await getTestingPackage()` + '\n' +
559
+ '\n' +
553
560
  `describe( '${ unitName }', function () {` + '\n' +
554
561
  '\n' +
555
562
  `${ I_ }let _dataMap` + '\n' +
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/units/run-unit-tests-for-backend.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/units/run-unit-tests-for-backend.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.3.1 Source: tests/units/run-unit-tests-for-frontend.task.mjs</title>
7
+ <title>Itee Tasks v1.3.3 Source: tests/units/run-unit-tests-for-frontend.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">Itee Tasks v1.3.1</a>
23
+ <a class="navbar-brand" href="index.html">Itee Tasks v1.3.3</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#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>
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
37
  </ul>
38
38
  </li>
39
39
 
@@ -0,0 +1,328 @@
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.3.3 Source: utils/texts.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.3.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: utils/texts.mjs</h1>
69
+
70
+ <section>
71
+ <article>
72
+ <pre
73
+ class="sunlight-highlight-javascript linenums">import { unstyle } from './colors.mjs'
74
+
75
+ /**
76
+ *
77
+ * @param {string} text
78
+ * @param {number} width
79
+ * @returns {string}
80
+ */
81
+ function alignTextCenter( text, width ) {
82
+
83
+ const unstyledText = unstyle( text.repeat( 1 ) )
84
+ const marginLength = ( width - unstyledText.length ) / 2
85
+
86
+ let leftMargin, rightMargin
87
+ if ( Number.isInteger( marginLength ) ) {
88
+ leftMargin = marginLength
89
+ rightMargin = marginLength
90
+ } else {
91
+ const flooredMargin = Math.floor( marginLength )
92
+ leftMargin = flooredMargin
93
+ rightMargin = flooredMargin + 1
94
+ }
95
+
96
+ return ' '.repeat( leftMargin ) + text + ' '.repeat( rightMargin )
97
+
98
+ }
99
+
100
+ /**
101
+ *
102
+ * @param {string} text
103
+ * @param {number} width
104
+ * @returns {string}
105
+ */
106
+ function alignTextLeft( text, width ) {
107
+
108
+ const unstyledText = unstyle( text.repeat( 1 ) )
109
+ let repeatTime = width - unstyledText.length
110
+ repeatTime = ( repeatTime > 0 ) ? repeatTime : 0
111
+
112
+ return text + ' '.repeat( repeatTime )
113
+
114
+ }
115
+
116
+ /**
117
+ *
118
+ * @param {string} text
119
+ * @param {number} width
120
+ * @returns {string}
121
+ */
122
+ function alignTextRight( text, width ) {
123
+
124
+ const unstyledText = unstyle( text.repeat( 1 ) )
125
+ let repeatTime = width - unstyledText.length
126
+ repeatTime = ( repeatTime > 0 ) ? repeatTime : 0
127
+
128
+ return ' '.repeat( repeatTime ) + text
129
+
130
+ }
131
+
132
+ function IndenterFactory( indentationChar = '\t', indentationLevel = 5 ) {
133
+
134
+ const indentationLevels = {}
135
+ let currentProperty = 'I_'
136
+ for ( let currentIndentationLevel = 1 ; currentIndentationLevel &lt;= indentationLevel ; currentIndentationLevel++ ) {
137
+ indentationLevels[ currentProperty ] = indentationChar.repeat( currentIndentationLevel )
138
+ currentProperty += '_'
139
+ }
140
+
141
+ return {
142
+ I: new Indenter( indentationChar ),
143
+ ...indentationLevels
144
+ }
145
+
146
+ }
147
+
148
+ /**
149
+ * @param {string} string
150
+ * @returns {string}
151
+ */
152
+ function toCamelCase( string ) {
153
+
154
+ if(typeof string !== 'string') throw new TypeError(`Invalid type '${typeof string}' expect string.`)
155
+
156
+ return string
157
+ .trim()
158
+ .toLowerCase()
159
+ .replace( /[^a-zA-Z0-9]+(.)/g, ( _, char ) => char.toUpperCase() )
160
+ .replace( /^[A-Z]/, ( char ) => char.toLowerCase() )
161
+
162
+ }
163
+
164
+ class Indenter {
165
+
166
+ constructor( indentationChar = '\t' ) {
167
+
168
+ this.indentationChar = indentationChar
169
+ this.currentIndentationLevel = 0
170
+
171
+ }
172
+
173
+ _( indentationLevel = null ) {
174
+ return this.indentationChar.repeat( indentationLevel ?? this.currentIndentationLevel )
175
+ }
176
+
177
+ deeper( level = 1 ) {
178
+ this.currentIndentationLevel += level
179
+ }
180
+
181
+ shallower( level = 1 ) {
182
+ this.currentIndentationLevel -= level
183
+ }
184
+
185
+ }
186
+
187
+
188
+ export {
189
+ alignTextCenter,
190
+ alignTextLeft,
191
+ alignTextRight,
192
+ toCamelCase,
193
+ IndenterFactory as Indenter
194
+ }</pre>
195
+ </article>
196
+ </section>
197
+
198
+
199
+
200
+
201
+
202
+ </div>
203
+ </div>
204
+
205
+ <div class="clearfix"></div>
206
+
207
+
208
+
209
+ </div>
210
+ </div>
211
+
212
+
213
+ <div class="modal fade" id="searchResults">
214
+ <div class="modal-dialog">
215
+ <div class="modal-content">
216
+ <div class="modal-header">
217
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
218
+ <h4 class="modal-title">Search results</h4>
219
+ </div>
220
+ <div class="modal-body"></div>
221
+ <div class="modal-footer">
222
+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
223
+ </div>
224
+ </div><!-- /.modal-content -->
225
+ </div><!-- /.modal-dialog -->
226
+ </div>
227
+
228
+
229
+ <footer>
230
+
231
+
232
+ <span class="copyright">
233
+ Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
234
+ </span>
235
+
236
+ <span class="jsdoc-message">
237
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
238
+
239
+ using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
240
+ </span>
241
+ </footer>
242
+
243
+ <script src="scripts/docstrap.lib.js"></script>
244
+ <script src="scripts/toc.js"></script>
245
+
246
+ <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
247
+
248
+
249
+ <script>
250
+ $( function () {
251
+ $( "[id*='$']" ).each( function () {
252
+ var $this = $( this );
253
+
254
+ $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
255
+ } );
256
+
257
+ $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
258
+ var $this = $( this );
259
+
260
+ var example = $this.find( "code" );
261
+ exampleText = example.html();
262
+ var lang = /{@lang (.*?)}/.exec( exampleText );
263
+ if ( lang && lang[1] ) {
264
+ exampleText = exampleText.replace( lang[0], "" );
265
+ example.html( exampleText );
266
+ lang = lang[1];
267
+ } else {
268
+ var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
269
+ lang = langClassMatch ? langClassMatch[1] : "javascript";
270
+ }
271
+
272
+ if ( lang ) {
273
+
274
+ $this
275
+ .addClass( "sunlight-highlight-" + lang )
276
+ .addClass( "linenums" )
277
+ .html( example.html() );
278
+
279
+ }
280
+ } );
281
+
282
+ Sunlight.highlightAll( {
283
+ lineNumbers : true,
284
+ showMenu : true,
285
+ enableDoclinks : true
286
+ } );
287
+
288
+ $.catchAnchorLinks( {
289
+ navbarOffset: 10
290
+ } );
291
+ $( "#toc" ).toc( {
292
+ anchorName : function ( i, heading, prefix ) {
293
+ return $( heading ).attr( "id" ) || ( prefix + i );
294
+ },
295
+ selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
296
+ showAndHide : false,
297
+ smoothScrolling: true
298
+ } );
299
+
300
+ $( "#main span[id^='toc']" ).addClass( "toc-shim" );
301
+ $( '.dropdown-toggle' ).dropdown();
302
+
303
+ $( "table" ).each( function () {
304
+ var $this = $( this );
305
+ $this.addClass('table');
306
+ } );
307
+
308
+ } );
309
+ </script>
310
+
311
+
312
+
313
+ <!--Navigation and Symbol Display-->
314
+
315
+
316
+ <!--Google Analytics-->
317
+
318
+
319
+
320
+ <script type="text/javascript">
321
+ $(document).ready(function() {
322
+ SearcherDisplay.init();
323
+ });
324
+ </script>
325
+
326
+
327
+ </body>
328
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itee/tasks",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Allow to manage all commons itee gulp tasks into one place ",
5
5
  "keywords": [
6
6
  "itee",
@@ -73,6 +73,7 @@
73
73
  "@web/test-runner-playwright": "^0.11.1",
74
74
  "ansi-colors": "^4.1.3",
75
75
  "benchmark": "^2.1.4",
76
+ "chai": "^6.2.2",
76
77
  "del": "^8.0.1",
77
78
  "eslint": "^9.39.2",
78
79
  "eslint-plugin-mocha": "^11.2.0",
@@ -82,9 +83,11 @@
82
83
  "globals": "^16.5.0",
83
84
  "gulp": "^5.0.1",
84
85
  "ink-docstrap": "^1.3.2",
86
+ "itee-utils": "^6.0.3",
85
87
  "itee-validators": "^6.0.0",
86
88
  "jsdoc": "^4.0.5",
87
89
  "lodash": "^4.17.21",
90
+ "mocha": "^11.7.5",
88
91
  "mochawesome": "^7.1.4",
89
92
  "platform": "^1.3.6",
90
93
  "rollup": "^4.55.1",