@itee/tasks 1.3.0 → 1.3.2

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 (68) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/-_utils.mjs.html +68 -18
  3. package/docs/cleans_clean.task.mjs.html +10 -11
  4. package/docs/global.html +17 -173
  5. package/docs/helps_help.task.mjs.html +23 -59
  6. package/docs/index.html +4 -4
  7. package/docs/lints_lint.task.mjs.html +15 -12
  8. package/docs/patches_patch.task.mjs.html +14 -12
  9. package/docs/quicksearch.html +1 -1
  10. package/docs/releases_release.task.mjs.html +5 -5
  11. package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +35 -38
  12. package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +20 -18
  13. package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +21 -23
  14. package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +22 -34
  15. package/docs/tests_bundlings_check-bundling.task.mjs.html +5 -5
  16. package/docs/tests_run-tests.task.mjs.html +5 -5
  17. package/docs/tests_units_compute-unit-tests.task.mjs.html +40 -42
  18. package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +21 -19
  19. package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +21 -23
  20. package/package.json +4 -4
  21. package/{sources → scripts}/refresh.mjs +10 -12
  22. package/sources/builds/build.conf.mjs +3 -0
  23. package/sources/builds/build.task.mjs +11 -13
  24. package/{configs → sources}/cleans/clean.conf.mjs +1 -1
  25. package/sources/cleans/clean.task.mjs +6 -7
  26. package/{configs → sources}/docs/doc.conf.mjs +8 -7
  27. package/sources/docs/doc.task.mjs +7 -8
  28. package/sources/helps/help.task.mjs +18 -54
  29. package/{configs → sources}/lints/lint.conf.mjs +50 -18
  30. package/sources/lints/lint.task.mjs +11 -8
  31. package/sources/patches/patch.task.mjs +9 -7
  32. package/sources/releases/release.task.mjs +1 -1
  33. package/sources/tasks.js +26 -0
  34. package/sources/tests/benchmarks/compute-benchmarks.conf.mjs +5 -0
  35. package/sources/tests/benchmarks/compute-benchmarks.task.mjs +31 -34
  36. package/sources/tests/benchmarks/run-benchmarks-for-backend.task.mjs +16 -14
  37. package/{configs → sources}/tests/benchmarks/run-benchmarks-for-frontend.conf.mjs +6 -6
  38. package/sources/tests/benchmarks/run-benchmarks-for-frontend.task.mjs +17 -19
  39. package/{configs → sources}/tests/benchmarks/run-benchmarks.conf.mjs +2 -2
  40. package/sources/tests/benchmarks/run-benchmarks.task.mjs +3 -3
  41. package/{configs → sources}/tests/bundlings/check-bundling-from-esm-build-import.conf.mjs +12 -10
  42. package/sources/tests/bundlings/check-bundling-from-esm-build-import.task.mjs +17 -17
  43. package/{configs → sources}/tests/bundlings/check-bundling-from-esm-files-direct.conf.mjs +20 -14
  44. package/sources/tests/bundlings/check-bundling-from-esm-files-direct.task.mjs +17 -29
  45. package/{configs → sources}/tests/bundlings/check-bundling-from-esm-files-import.conf.mjs +15 -13
  46. package/sources/tests/bundlings/check-bundling-from-esm-files-import.task.mjs +17 -29
  47. package/sources/tests/bundlings/check-bundling.task.mjs +1 -1
  48. package/sources/tests/run-tests.task.mjs +1 -1
  49. package/sources/tests/units/compute-unit-tests.conf.mjs +5 -0
  50. package/sources/tests/units/compute-unit-tests.task.mjs +36 -38
  51. package/sources/tests/units/run-unit-tests-for-backend.task.mjs +17 -15
  52. package/{configs → sources}/tests/units/run-unit-tests-for-frontend.conf.mjs +1 -1
  53. package/sources/tests/units/run-unit-tests-for-frontend.task.mjs +17 -19
  54. package/{configs → sources}/tests/units/run-unit-tests.conf.mjs +2 -2
  55. package/sources/tests/units/run-unit-tests.task.mjs +3 -3
  56. package/sources/utils/builds.mjs +238 -0
  57. package/sources/utils/colors.mjs +19 -0
  58. package/sources/utils/files.mjs +70 -0
  59. package/sources/utils/loggings.mjs +33 -0
  60. package/sources/utils/packages.mjs +172 -0
  61. package/sources/utils/tasks.mjs +170 -0
  62. package/sources/utils/texts.mjs +98 -0
  63. package/configs/builds/build.conf.mjs +0 -3
  64. package/configs/tests/benchmarks/compute-benchmarks.conf.mjs +0 -5
  65. package/configs/tests/units/compute-unit-tests.conf.mjs +0 -5
  66. package/sources/_utils.mjs +0 -642
  67. package/sources/index.mjs +0 -21
  68. /package/{configs → scripts}/refresh.conf.mjs +0 -0
@@ -1,642 +0,0 @@
1
- import commonjs from '@rollup/plugin-commonjs'
2
- import nodeResolve from '@rollup/plugin-node-resolve'
3
- import terser from '@rollup/plugin-terser'
4
- import colors from 'ansi-colors'
5
- import childProcess from 'child_process'
6
- import log from 'fancy-log'
7
- import figlet from 'figlet'
8
- import { glob } from 'glob'
9
- import {
10
- parallel,
11
- series
12
- } from 'gulp'
13
- import {
14
- existsSync,
15
- mkdirSync,
16
- readFileSync,
17
- writeFileSync
18
- } from 'node:fs'
19
- import {
20
- basename,
21
- dirname,
22
- extname,
23
- join,
24
- normalize,
25
- relative,
26
- } from 'node:path'
27
- import { fileURLToPath } from 'node:url'
28
- import replace from 'rollup-plugin-re'
29
-
30
- const {
31
- red,
32
- green,
33
- yellow,
34
- blue,
35
- magenta,
36
- cyan
37
- } = colors
38
-
39
- /// Debugging
40
-
41
- const isDebugging = ( process.env.RUNNER_DEBUG && process.env.RUNNER_DEBUG === '1' )
42
-
43
- /// Package paths and data
44
-
45
- function _getPackageRootDirectory() {
46
-
47
- let __dirname
48
-
49
- if ( import.meta.dirname ) {
50
- __dirname = import.meta.dirname
51
- } else if ( import.meta.filename ) {
52
- __dirname = dirname( import.meta.filename )
53
- } else if ( import.meta.url ) {
54
- const __filename = fileURLToPath( import.meta.url )
55
- __dirname = dirname( __filename )
56
- } else {
57
- throw new Error( 'Unable to retrieve module dirname.' )
58
- }
59
-
60
- return join( __dirname, '..' )
61
-
62
- }
63
-
64
- const iteePackageRootDirectory = _getPackageRootDirectory()
65
- const iteePackageJsonPath = join( iteePackageRootDirectory, 'package.json' )
66
- const iteePackageConfigurationsDirectory = join( iteePackageRootDirectory, 'configs' )
67
- const iteePackageNodeModulesDirectory = join( iteePackageRootDirectory, 'node_modules' )
68
- const iteePackageSourcesDirectory = join( iteePackageRootDirectory, 'sources' )
69
-
70
- const packageRootDirectory = iteePackageRootDirectory.includes( 'node_modules' ) ? join( iteePackageRootDirectory, '../../../' ) : iteePackageRootDirectory
71
- const packageTasksDirectory = join( packageRootDirectory, '.tasks' )
72
- const packageTasksConfigurationsDirectory = join( packageTasksDirectory, 'configs' )
73
- const packageNodeModulesDirectory = join( packageRootDirectory, 'node_modules' )
74
- const packageBuildsDirectory = join( packageRootDirectory, 'builds' )
75
- const packageSourcesDirectory = join( packageRootDirectory, 'sources' )
76
- const packageSourcesBackendDirectory = join( packageSourcesDirectory, 'backend' )
77
- const packageSourcesCommonDirectory = join( packageSourcesDirectory, 'common' )
78
- const packageSourcesFrontendDirectory = join( packageSourcesDirectory, 'frontend' )
79
- const packageTestsDirectory = join( packageRootDirectory, 'tests' )
80
- const packageTestsBenchmarksDirectory = join( packageTestsDirectory, 'benchmarks' )
81
- const packageTestsBundlesDirectory = join( packageTestsDirectory, 'bundles' )
82
- const packageTestsUnitsDirectory = join( packageTestsDirectory, 'units' )
83
- const packageDocsDirectory = join( packageRootDirectory, 'docs' )
84
- const packageTutorialsDirectory = join( packageRootDirectory, 'tutorials' )
85
- const packageJsonPath = join( packageRootDirectory, 'package.json' )
86
-
87
- ///
88
-
89
- const packageJson = getJsonFrom( packageJsonPath )
90
- const packageName = packageJson.name
91
- const packageVersion = packageJson.version
92
- const packageDescription = packageJson.description
93
- const packageAuthor = packageJson.author
94
- const packageLicense = packageJson.license
95
-
96
- function getPrettyPackageName( separator = ' ' ) {
97
-
98
- let prettyPackageName = ''
99
-
100
- const nameSplits = packageName.split( '-' )
101
- for ( const nameSplit of nameSplits ) {
102
- prettyPackageName += nameSplit.charAt( 0 ).toUpperCase() + nameSplit.slice( 1 ) + separator
103
- }
104
- prettyPackageName = prettyPackageName.slice( 0, -1 )
105
-
106
- return prettyPackageName
107
-
108
- }
109
-
110
- function getPrettyPackageVersion() {
111
-
112
- return 'v' + packageVersion
113
-
114
- }
115
-
116
- function getPrettyNodeVersion() {
117
-
118
- let nodeVersion = 'vX.x.ₓ'
119
-
120
- try {
121
- nodeVersion = childProcess.execFileSync( 'node', [ '--version' ] )
122
- .toString()
123
- .replace( /(\r\n|\n|\r)/gm, '' )
124
- } catch ( e ) {
125
- log( red( e ) )
126
-
127
- if ( e.message.includes( 'ENOENT' ) ) {
128
- nodeVersion += yellow( ' Not seems to be accessible from the path environment.' )
129
- }
130
- }
131
-
132
- return ' node: ' + nodeVersion
133
-
134
- }
135
-
136
- function getPrettyNpmVersion() {
137
-
138
- let npmVersion = 'X.x.ₓ'
139
-
140
- try {
141
- npmVersion = childProcess.execFileSync( 'npm', [ '--version' ] )
142
- .toString()
143
- .replace( /(\r\n|\n|\r)/gm, '' )
144
- } catch ( e ) {
145
- log( red( e ) )
146
-
147
- if ( e.message.includes( 'ENOENT' ) ) {
148
- npmVersion += yellow( ' Not seems to be accessible from the path environment.' )
149
- }
150
- }
151
-
152
- return ' npm: v' + npmVersion
153
-
154
- }
155
-
156
- /// File system Management
157
-
158
- function createDirectoryIfNotExist( directoryPath ) {
159
-
160
- if ( !existsSync( directoryPath ) ) {
161
- log( 'Creating', green( directoryPath ) )
162
- mkdirSync( directoryPath, { recursive: true } )
163
- }
164
-
165
- }
166
-
167
- function getJsonFrom( path ) {
168
-
169
- const buffer = readFileSync( path )
170
- return JSON.parse( buffer.toString() )
171
-
172
- }
173
-
174
- function createFile( filePath, fileContent ) {
175
-
176
- log( 'Creating', green( filePath ) )
177
- writeFileSync( filePath, fileContent )
178
-
179
- }
180
-
181
- function getFilesFrom( globPattern, filter = ( any ) => true ) {
182
-
183
- return glob.sync( globPattern )
184
- .map( filePath => normalize( filePath ) )
185
- .filter( filter )
186
-
187
- }
188
-
189
- /// Task Management
190
-
191
- async function getTasksFrom( taskFiles = [] ) {
192
-
193
- const tasks = []
194
- for ( const taskFile of taskFiles ) {
195
- const relativeTaskFile = relative( packageRootDirectory, taskFile )
196
-
197
- try {
198
-
199
- const module = await import(taskFile)
200
-
201
- const exportStrings = []
202
- for ( const moduleKey in module ) {
203
- const task = module[ moduleKey ]
204
- tasks.push( task )
205
-
206
- const name = task.name ?? null
207
- const displayName = task.displayName ?? null
208
- const fullName = ( moduleKey !== name ) ? `${ blue( moduleKey ) }( ${ magenta( name ) } )` : `${ blue( name ) }`
209
- const exportAs = ( displayName ) ? ` as ${ cyan( displayName ) }` : ''
210
- const exportString = fullName + exportAs
211
- exportStrings.push( exportString )
212
- }
213
-
214
- //log( 'Process ', green( relativeTaskFile ), `with task${ ( exportStrings.length > 1 ) ? 's' : '' }`, exportStrings.join( ', ' ) )
215
-
216
- } catch ( error ) {
217
-
218
- log( 'Error ', red( relativeTaskFile ), error.message )
219
-
220
- }
221
-
222
- }
223
-
224
- return tasks
225
-
226
- }
227
-
228
- async function serializeTasksFrom( taskFiles = [] ) {
229
-
230
- const tasks = await getTasksFrom( taskFiles )
231
- return series( ...tasks )
232
-
233
- }
234
-
235
- async function parallelizeTasksFrom( taskFiles = [] ) {
236
-
237
- const tasks = await getTasksFrom( taskFiles )
238
- return parallel( ...tasks )
239
-
240
- }
241
-
242
- /// Task configuration management
243
-
244
- function getTaskConfigurationPathFor( filename ) {
245
-
246
- // Get relative path of the task between internal or user defined
247
- let relativeTaskPath = filename.includes( iteePackageSourcesDirectory )
248
- ? relative( iteePackageSourcesDirectory, filename )
249
- : relative( packageTasksDirectory, filename )
250
-
251
- // Generate all possible config file path depending on file extension and default or user defined
252
- const terminalExtension = extname( relativeTaskPath )
253
- const searchValue = relativeTaskPath.includes( '.task.' ) ? `.task${ terminalExtension }` : terminalExtension
254
- const replaceValues = [
255
- '.conf.json',
256
- '.conf.js',
257
- '.conf.cjs',
258
- '.conf.mjs',
259
- ]
260
-
261
- const packageConfigurationPaths = []
262
- const defaultConfigurationPaths = []
263
-
264
- for ( const replaceValue of replaceValues ) {
265
- const configurationLocation = relativeTaskPath.replace( searchValue, replaceValue )
266
- const packageConfigurationPath = join( packageTasksConfigurationsDirectory, configurationLocation )
267
- const defaultConfigurationPath = join( iteePackageConfigurationsDirectory, configurationLocation )
268
-
269
- packageConfigurationPaths.push( packageConfigurationPath )
270
- defaultConfigurationPaths.push( defaultConfigurationPath )
271
- }
272
-
273
- // Take care of the configuration search order (package first then default !)
274
- const configurationPaths = [ ...packageConfigurationPaths, ...defaultConfigurationPaths ]
275
- let configurationPath = undefined
276
-
277
- // Looking for existing configuration file
278
- for ( const packageConfigurationPath of configurationPaths ) {
279
-
280
- if ( existsSync( packageConfigurationPath ) ) {
281
- configurationPath = packageConfigurationPath
282
- break
283
- }
284
-
285
- }
286
-
287
- // Else throw an error
288
- if ( !configurationPath ) {
289
- throw new Error( `Unable to find configuration in package configuration paths ${ configurationPaths.join( ', ' ) }.` )
290
- }
291
-
292
- return configurationPath
293
-
294
- }
295
-
296
- async function getTaskConfigurationFor( filename ) {
297
-
298
- const configurationFilePath = getTaskConfigurationPathFor( filename )
299
-
300
- log( `Loading configuration from ${ cyan( configurationFilePath ) }` )
301
-
302
- let configuration = null
303
-
304
- try {
305
-
306
- if ( extname( configurationFilePath ) === '.json' ) {
307
-
308
- configuration = getJsonFrom( configurationFilePath )
309
-
310
- } else {
311
-
312
- const moduleData = await import( configurationFilePath )
313
- configuration = moduleData.default
314
-
315
- }
316
-
317
- } catch ( e ) {
318
-
319
- log( red( e ) )
320
-
321
- }
322
-
323
- return configuration
324
-
325
- }
326
-
327
- /// Build management
328
-
329
- function getPrettyFormatForBanner( format ) {
330
-
331
- let prettyFormat = ''
332
-
333
- switch ( format ) {
334
-
335
- case 'cjs':
336
- prettyFormat = 'CommonJs'
337
- break
338
-
339
- case 'esm':
340
- prettyFormat = 'EsModule'
341
- break
342
-
343
- case 'iife':
344
- prettyFormat = 'Standalone'
345
- break
346
-
347
- case 'umd':
348
- prettyFormat = 'Universal'
349
- break
350
-
351
- default:
352
- throw new RangeError( `Invalid switch parameter: ${ format }` )
353
-
354
- }
355
-
356
- return prettyFormat
357
-
358
- }
359
-
360
- function convertBannerIntoComment( banner ) {
361
-
362
- let bannerCommented = '/**\n'
363
- bannerCommented += ' * '
364
- bannerCommented += banner.replaceAll( '\n', '\n * ' )
365
- bannerCommented += '\n'
366
- bannerCommented += ` * @desc ${ packageDescription }\n`
367
- bannerCommented += ' * @author [Tristan Valcke]{@link https://github.com/Itee}\n'
368
- bannerCommented += ' * @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}\n'
369
- bannerCommented += ' * \n'
370
- bannerCommented += ' */'
371
-
372
- return bannerCommented
373
-
374
- }
375
-
376
- function computeBannerFor( format ) {
377
-
378
- const packageName = getPrettyPackageName( '.' )
379
- const packageVersion = getPrettyPackageVersion()
380
- const prettyFormat = getPrettyFormatForBanner( format )
381
-
382
- const figText = figlet.textSync(
383
- `${ packageName } ${ packageVersion } - ${ prettyFormat }`,
384
- {
385
- font: 'Tmplr',
386
- horizontalLayout: 'default',
387
- verticalLayout: 'default',
388
- whitespaceBreak: true,
389
- }
390
- )
391
-
392
- return convertBannerIntoComment( figText )
393
-
394
- }
395
-
396
- function computeIntroFor( requestPackages ) {
397
-
398
- return ''
399
-
400
- }
401
-
402
- function getOutputFileExtensionBasedOnFileFormat( format ) {
403
-
404
- let extension
405
-
406
- if ( format === 'cjs' ) {
407
- extension = 'cjs'
408
- } else if ( format === 'esm' ) {
409
- extension = 'mjs'
410
- } else {
411
- extension = 'js'
412
- }
413
-
414
- return extension
415
-
416
- }
417
-
418
- /**
419
- * Will create an appropriate configuration object for rollup, related to the given arguments.
420
- *
421
- * @generator
422
- * @param options
423
- * @return {Array.<json>} An array of rollup configuration
424
- */
425
- function createRollupConfigs( options = undefined ) {
426
-
427
- const _options = options ? options : {
428
- input: join( packageSourcesDirectory, `${ packageName }.js` ),
429
- output: packageBuildsDirectory,
430
- formats: [ 'esm', 'cjs', 'iife' ],
431
- envs: [ 'dev', 'prod' ],
432
- treeshake: true
433
- }
434
-
435
- const {
436
- input,
437
- output,
438
- formats,
439
- envs,
440
- treeshake
441
- } = _options
442
- const name = getPrettyPackageName( '.' )
443
- const fileName = basename( input, '.js' )
444
-
445
- const configs = []
446
-
447
- for ( let formatIndex = 0, numberOfFormats = formats.length ; formatIndex < numberOfFormats ; ++formatIndex ) {
448
-
449
- for ( let envIndex = 0, numberOfEnvs = envs.length ; envIndex < numberOfEnvs ; envIndex++ ) {
450
-
451
- const env = envs[ envIndex ]
452
- const isProd = ( env.includes( 'prod' ) )
453
- const format = formats[ formatIndex ]
454
- const extension = getOutputFileExtensionBasedOnFileFormat( format )
455
- const outputPath = ( isProd ) ? join( output, `${ fileName }.min.${ extension }` ) : join( output, `${ fileName }.${ extension }` )
456
-
457
- configs.push( {
458
- input: input,
459
- external: ( format === 'cjs' ) ? [
460
- 'fs'
461
- ] : [],
462
- plugins: [
463
- replace( {
464
- defines: {
465
- IS_REMOVE_ON_BUILD: false,
466
- IS_BACKEND_SPECIFIC: ( format === 'cjs' )
467
- }
468
- } ),
469
- commonjs( {
470
- include: 'node_modules/**'
471
- } ),
472
- nodeResolve( {
473
- preferBuiltins: true
474
- } ),
475
- isProd && terser()
476
- ],
477
- onwarn: ( {
478
- loc,
479
- frame,
480
- message
481
- } ) => {
482
-
483
- // Ignore some errors
484
- if ( message.includes( 'Circular dependency' ) ) { return }
485
- if ( message.includes( 'plugin uglify is deprecated' ) ) { return }
486
-
487
- if ( loc ) {
488
- process.stderr.write( `/!\\ ${ loc.file } (${ loc.line }:${ loc.column }) ${ frame } ${ message }\n` )
489
- } else {
490
- process.stderr.write( `/!\\ ${ message }\n` )
491
- }
492
-
493
- },
494
- treeshake: treeshake,
495
- output: {
496
- // core options
497
- file: outputPath,
498
- format: format,
499
- name: name,
500
- globals: {},
501
-
502
- // advanced options
503
- paths: {},
504
- banner: ( isProd ) ? '' : computeBannerFor( format ),
505
- footer: '',
506
- intro: ( !isProd && format === 'iife' ) ? computeIntroFor() : '',
507
- outro: '',
508
- sourcemap: !isProd,
509
- interop: 'auto',
510
-
511
- // danger zone
512
- exports: 'auto',
513
- amd: {},
514
- indent: '\t',
515
- strict: true
516
- }
517
- } )
518
-
519
- }
520
-
521
- }
522
-
523
- return configs
524
-
525
- }
526
-
527
- /// Log Management
528
-
529
- function logLoadingTask( filename ) {
530
-
531
- if ( !isDebugging ) {
532
- return
533
- }
534
-
535
- const taskPath = relative( packageRootDirectory, filename )
536
- const taskName = basename( filename, '.task.mjs' )
537
-
538
- log( `Loading ${ green( taskPath ) } with task ${ blue( taskName ) }` )
539
-
540
- }
541
-
542
- ///
543
-
544
- function IndenterFactory( indentationChar = '\t', indentationLevel = 5 ) {
545
-
546
- const indentationLevels = {}
547
- let currentProperty = 'I_'
548
- for ( let currentIndentationLevel = 1 ; currentIndentationLevel <= indentationLevel ; currentIndentationLevel++ ) {
549
- indentationLevels[ currentProperty ] = indentationChar.repeat( currentIndentationLevel )
550
- currentProperty += '_'
551
- }
552
-
553
- return {
554
- I: new Indenter( indentationChar ),
555
- ...indentationLevels
556
- }
557
-
558
- }
559
-
560
- class Indenter {
561
-
562
- constructor( indentationChar = '\t' ) {
563
-
564
- this.indentationChar = indentationChar
565
- this.currentIndentationLevel = 0
566
-
567
- }
568
-
569
- _( indentationLevel = null ) {
570
- return this.indentationChar.repeat( indentationLevel ?? this.currentIndentationLevel )
571
- }
572
-
573
- deeper( level = 1 ) {
574
- this.currentIndentationLevel += level
575
- }
576
-
577
- shallower( level = 1 ) {
578
- this.currentIndentationLevel -= level
579
- }
580
-
581
- }
582
-
583
- ///
584
-
585
- export {
586
- iteePackageRootDirectory,
587
- iteePackageJsonPath,
588
- iteePackageConfigurationsDirectory,
589
- iteePackageNodeModulesDirectory,
590
- iteePackageSourcesDirectory,
591
-
592
- packageRootDirectory,
593
- packageTasksDirectory,
594
- packageTasksConfigurationsDirectory,
595
- packageNodeModulesDirectory,
596
- packageBuildsDirectory,
597
- packageSourcesDirectory,
598
- packageSourcesBackendDirectory,
599
- packageSourcesCommonDirectory,
600
- packageSourcesFrontendDirectory,
601
- packageTestsDirectory,
602
- packageTestsBenchmarksDirectory,
603
- packageTestsBundlesDirectory,
604
- packageTestsUnitsDirectory,
605
- packageDocsDirectory,
606
- packageTutorialsDirectory,
607
- packageJsonPath,
608
-
609
- packageJson,
610
- packageName,
611
- packageVersion,
612
- packageDescription,
613
- packageAuthor,
614
- packageLicense,
615
- getPrettyPackageName,
616
- getPrettyPackageVersion,
617
- getPrettyNodeVersion,
618
- getPrettyNpmVersion,
619
-
620
-
621
- createDirectoryIfNotExist,
622
- getJsonFrom,
623
- createFile,
624
- getFilesFrom,
625
-
626
- getTasksFrom,
627
- serializeTasksFrom,
628
- parallelizeTasksFrom,
629
-
630
- getTaskConfigurationPathFor,
631
- getTaskConfigurationFor,
632
-
633
- getPrettyFormatForBanner,
634
- convertBannerIntoComment,
635
- computeBannerFor,
636
- computeIntroFor,
637
- createRollupConfigs,
638
-
639
- logLoadingTask,
640
-
641
- IndenterFactory as Indenter
642
- }
package/sources/index.mjs DELETED
@@ -1,21 +0,0 @@
1
- export { buildTask } from './builds/build.task.mjs'
2
- export { cleanTask } from './cleans/clean.task.mjs'
3
- export { docTask } from './docs/doc.task.mjs'
4
- export { helpTask } from './helps/help.task.mjs'
5
- export { lintTask } from './lints/lint.task.mjs'
6
- export { releaseTask } from './releases/release.task.mjs'
7
- export { runTestsTask } from './tests/run-tests.task.mjs'
8
- export { computeUnitTestsTask } from './tests/units/compute-unit-tests.task.mjs'
9
- export { runUnitTestsTask } from './tests/units/run-unit-tests.task.mjs'
10
- export { runUnitTestsForBackendTask } from './tests/units/run-unit-tests-for-backend.task.mjs'
11
- export { runUnitTestsForFrontendTask } from './tests/units/run-unit-tests-for-frontend.task.mjs'
12
- export { checkBundlingFromEsmBuildImportTask } from './tests/bundlings/check-bundling-from-esm-build-import.task.mjs'
13
- export { checkBundlingFromEsmFilesDirectTask } from './tests/bundlings/check-bundling-from-esm-files-direct.task.mjs'
14
- export { checkBundlingFromEsmFilesImportTask } from './tests/bundlings/check-bundling-from-esm-files-import.task.mjs'
15
- export { checkBundlingTask } from './tests/bundlings/check-bundling.task.mjs'
16
- export { computeBenchmarksTask } from './tests/benchmarks/compute-benchmarks.task.mjs'
17
- export { runBenchmarksTestsTask } from './tests/benchmarks/run-benchmarks.task.mjs'
18
- export { runBenchmarksForBackendTask } from './tests/benchmarks/run-benchmarks-for-backend.task.mjs'
19
- export { runBenchmarksForFrontendTask } from './tests/benchmarks/run-benchmarks-for-frontend.task.mjs'
20
-
21
- export * from './_utils.mjs'
File without changes