@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.
- package/CHANGELOG.md +7 -0
- package/package.json +3 -3
- package/sources/utils/builds.mjs +74 -37
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [v1.4.5](https://github.com/Itee/tasks/compare/v1.4.4...v1.4.5) (2026-01-23)
|
|
2
|
+
|
|
3
|
+
## 🐛 Bug Fixes
|
|
4
|
+
- [`ebb02e3`](https://github.com/Itee/tasks/commit/ebb02e3) (testing) fix package path
|
|
5
|
+
|
|
6
|
+
# [v1.4.4](https://github.com/Itee/tasks/compare/v1.4.3...v1.4.4) (2026-01-22)
|
|
7
|
+
|
|
1
8
|
# [v1.4.3](https://github.com/Itee/tasks/compare/v1.4.2...v1.4.3) (2026-01-22)
|
|
2
9
|
|
|
3
10
|
## 🐛 Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itee/tasks",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Allow to manage all commons itee gulp tasks into one place for shareable configurations and release system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"itee",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"globals": "^16.5.0",
|
|
80
80
|
"gulp": "^5.0.1",
|
|
81
81
|
"ink-docstrap": "^1.3.2",
|
|
82
|
-
"itee-utils": "^6.0.
|
|
83
|
-
"itee-validators": "^6.
|
|
82
|
+
"itee-utils": "^6.0.6",
|
|
83
|
+
"itee-validators": "^6.1.3",
|
|
84
84
|
"jsdoc": "^4.0.5",
|
|
85
85
|
"lodash": "^4.17.21",
|
|
86
86
|
"mocha": "^11.7.5",
|
package/sources/utils/builds.mjs
CHANGED
|
@@ -114,6 +114,63 @@ function getOutputFileExtensionBasedOnFileFormat( format ) {
|
|
|
114
114
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
function assignExternalPackages( format, externalMap = {} ) {
|
|
118
|
+
|
|
119
|
+
return ( format in externalMap )
|
|
120
|
+
? externalMap[ format ]
|
|
121
|
+
: []
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function assignPlugins( format, env, pluginMap ) {
|
|
126
|
+
|
|
127
|
+
let plugins = []
|
|
128
|
+
|
|
129
|
+
if ( 'replace' in pluginMap ) {
|
|
130
|
+
let pluginConfig = pluginMap[ 'replace' ]
|
|
131
|
+
if ( !pluginConfig ) {
|
|
132
|
+
pluginConfig = {
|
|
133
|
+
defines: {
|
|
134
|
+
IS_KEEP_ON_BUILD: false,
|
|
135
|
+
IS_BACKEND_SPECIFIC: ( [ 'esm', 'cjs' ].includes( format ) ),
|
|
136
|
+
IS_FRONTEND_SPECIFIC: ( [ 'esm', 'iife' ].includes( format ) ),
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
plugins.push( replace( pluginConfig ) )
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if ( 'commonjs' in pluginMap ) {
|
|
145
|
+
let pluginConfig = pluginMap[ 'commonjs' ]
|
|
146
|
+
if ( !pluginConfig ) {
|
|
147
|
+
pluginConfig = {
|
|
148
|
+
include: 'node_modules/**'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
plugins.push( commonjs( pluginConfig ) )
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if ( 'nodeResolve' in pluginMap ) {
|
|
156
|
+
let pluginConfig = pluginMap[ 'nodeResolve' ]
|
|
157
|
+
if ( !pluginConfig ) {
|
|
158
|
+
pluginConfig = {
|
|
159
|
+
preferBuiltins: true
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
plugins.push( nodeResolve( pluginConfig ) )
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if ( env === 'prod' ) {
|
|
167
|
+
plugins.push( terser() )
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return plugins
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
|
|
117
174
|
/**
|
|
118
175
|
* Will create an appropriate configuration object for rollup, related to the given arguments.
|
|
119
176
|
*
|
|
@@ -123,24 +180,19 @@ function getOutputFileExtensionBasedOnFileFormat( format ) {
|
|
|
123
180
|
*/
|
|
124
181
|
function createRollupConfigs( options = {} ) {
|
|
125
182
|
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
183
|
+
const input = options.input || join( packageSourcesDirectory, `${ getUnscopedPackageName() }.js` )
|
|
184
|
+
const output = options.output || packageBuildsDirectory
|
|
185
|
+
const formats = options.formats || [ 'esm', 'cjs', 'iife' ]
|
|
186
|
+
const envs = options.envs || [ 'dev', 'prod' ]
|
|
187
|
+
const treeshake = options.treeshake || true
|
|
188
|
+
const externalMap = options.externalMap || {}
|
|
189
|
+
const pluginMap = options.pluginMap || {
|
|
190
|
+
replace: null,
|
|
191
|
+
commonjs: null,
|
|
192
|
+
nodeResolve: null,
|
|
133
193
|
}
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
input,
|
|
137
|
-
output,
|
|
138
|
-
formats,
|
|
139
|
-
envs,
|
|
140
|
-
treeshake
|
|
141
|
-
} = _options
|
|
142
|
-
const name = getPrettyPackageName( '.' )
|
|
143
|
-
const fileName = basename( input, '.js' )
|
|
194
|
+
const name = getPrettyPackageName( '.' )
|
|
195
|
+
const fileName = basename( input, '.js' )
|
|
144
196
|
|
|
145
197
|
const configs = []
|
|
146
198
|
|
|
@@ -152,27 +204,12 @@ function createRollupConfigs( options = {} ) {
|
|
|
152
204
|
const outputPath = ( isProd )
|
|
153
205
|
? join( output, `${ fileName }.min.${ extension }` )
|
|
154
206
|
: join( output, `${ fileName }.${ extension }` )
|
|
207
|
+
|
|
155
208
|
const config = {
|
|
156
209
|
input: input,
|
|
157
|
-
external: ( format
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
plugins: [
|
|
161
|
-
replace( {
|
|
162
|
-
defines: {
|
|
163
|
-
IS_REMOVE_ON_BUILD: false,
|
|
164
|
-
IS_BACKEND_SPECIFIC: ( format === 'cjs' )
|
|
165
|
-
}
|
|
166
|
-
} ),
|
|
167
|
-
commonjs( {
|
|
168
|
-
include: 'node_modules/**'
|
|
169
|
-
} ),
|
|
170
|
-
nodeResolve( {
|
|
171
|
-
preferBuiltins: true
|
|
172
|
-
} ),
|
|
173
|
-
isProd && terser()
|
|
174
|
-
],
|
|
175
|
-
onwarn: ( {
|
|
210
|
+
external: assignExternalPackages( format, externalMap ),
|
|
211
|
+
plugins: assignPlugins( format, env, pluginMap ),
|
|
212
|
+
onwarn: ( {
|
|
176
213
|
loc,
|
|
177
214
|
frame,
|
|
178
215
|
message
|
|
@@ -214,7 +251,7 @@ function createRollupConfigs( options = {} ) {
|
|
|
214
251
|
}
|
|
215
252
|
}
|
|
216
253
|
|
|
217
|
-
configs.push(config)
|
|
254
|
+
configs.push( config )
|
|
218
255
|
}
|
|
219
256
|
}
|
|
220
257
|
|
package/sources/utils/testing.js
CHANGED
|
@@ -2,7 +2,7 @@ async function getTestingPackage() {
|
|
|
2
2
|
|
|
3
3
|
const testingPackage = ( typeof global === 'undefined' )
|
|
4
4
|
? await import('itee-utils/sources/testings/benchmarks.js')
|
|
5
|
-
: await import('itee-utils/builds/
|
|
5
|
+
: await import('itee-utils/builds/utils.cjs')
|
|
6
6
|
|
|
7
7
|
return testingPackage.Testing
|
|
8
8
|
|