js-build-tools 6.6.0 → 6.8.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.
- package/LICENSE +674 -674
- package/README.md +768 -701
- package/babel.config.js +28 -28
- package/dist/build.js +75 -75
- package/dist/bundle.js +19 -19
- package/dist/bundleMinify.js +7 -7
- package/dist/compileReadme.js +4 -4
- package/dist/copyFiles.js +17 -17
- package/dist/copyFonts.js +4 -4
- package/dist/default.js +5 -5
- package/dist/dist.js +4 -4
- package/dist/distMinify.js +4 -4
- package/dist/docs.js +7 -7
- package/dist/images.js +4 -4
- package/dist/jsdocDocs.js +6 -6
- package/dist/lint.js +16 -16
- package/dist/partials/addToReadme.js +9 -9
- package/dist/partials/beginWatcher.js +4 -4
- package/dist/partials/cacheFiles.js +121 -0
- package/dist/partials/clean.js +5 -5
- package/dist/partials/copyFor.js +9 -9
- package/dist/partials/distFor.js +6 -6
- package/dist/partials/distForSrc.js +5 -5
- package/dist/partials/distSeries.js +7 -7
- package/dist/partials/imagesFor.js +155 -93
- package/dist/partials/jsdocDocsFor.js +64 -51
- package/dist/partials/lintSource.js +51 -51
- package/dist/partials/loadPeer.js +99 -99
- package/dist/partials/loadPlaywright.js +14 -14
- package/dist/partials/minifyFor.js +20 -20
- package/dist/partials/neostandardLint.js +175 -175
- package/dist/partials/readmeTemplate.js +4 -4
- package/dist/partials/removeDirectory.js +11 -11
- package/dist/partials/resolveDocsMethod.js +6 -6
- package/dist/partials/runOnChange.js +31 -31
- package/dist/partials/sassFor.js +6 -6
- package/dist/partials/serveStatic.js +9 -9
- package/dist/partials/tsFor.js +32 -32
- package/dist/partials/typeDocsFor.js +264 -264
- package/dist/partials.js +183 -176
- package/dist/partials.min.js +1 -1
- package/dist/sourceLint.js +18 -18
- package/dist/test-helpers/setUp.js +6 -4
- package/dist/testFull.js +5 -5
- package/dist/testQuick.js +5 -5
- package/dist/typeDocs.js +5 -5
- package/dist/typeScript.js +4 -4
- package/dist/utilities/convertMjsFilesForDocs.js +12 -12
- package/dist/utilities/dotGet.js +54 -54
- package/dist/utilities/dotNotate.js +79 -79
- package/dist/utilities/dotSet.js +45 -45
- package/dist/utilities/esmNamedExportsToCjs.js +15 -15
- package/dist/utilities/getBundleConfigs.js +9 -9
- package/dist/utilities/isObject.js +6 -6
- package/dist/utilities/strAfter.js +7 -7
- package/dist/utilities/strBefore.js +7 -7
- package/dist/watchFull.js +4 -4
- package/dist/watchTest.js +4 -4
- package/functions/build.mjs +72 -72
- package/functions/build.test.mjs +760 -759
- package/functions/bundle.mjs +44 -44
- package/functions/bundle.test.mjs +219 -219
- package/functions/bundleMinify.mjs +16 -16
- package/functions/bundleMinify.test.mjs +37 -37
- package/functions/compileReadme.mjs +9 -9
- package/functions/compileReadme.test.mjs +18 -18
- package/functions/copyFiles.mjs +32 -32
- package/functions/copyFiles.test.mjs +78 -78
- package/functions/copyFonts.mjs +9 -9
- package/functions/copyFonts.test.mjs +32 -32
- package/functions/default.mjs +12 -12
- package/functions/default.test.mjs +33 -33
- package/functions/dist.mjs +8 -8
- package/functions/dist.test.mjs +44 -44
- package/functions/distMinify.mjs +9 -9
- package/functions/distMinify.test.mjs +15 -15
- package/functions/docs.mjs +13 -13
- package/functions/docs.test.mjs +45 -45
- package/functions/gulpConfigEntries.test.mjs +23 -23
- package/functions/images.mjs +8 -8
- package/functions/images.test.mjs +140 -142
- package/functions/jsdocDocs.mjs +10 -10
- package/functions/jsdocEsmExports.test.mjs +24 -24
- package/functions/lint.mjs +9 -9
- package/functions/partials/addToReadme.mjs +25 -25
- package/functions/partials/addToReadme.test.mjs +34 -34
- package/functions/partials/beginWatcher.mjs +9 -9
- package/functions/partials/beginWatcher.test.mjs +19 -19
- package/functions/partials/cacheFiles.mjs +114 -0
- package/functions/partials/cacheFiles.test.mjs +151 -0
- package/functions/partials/clean.mjs +13 -13
- package/functions/partials/clean.test.mjs +22 -22
- package/functions/partials/copyFor.mjs +15 -15
- package/functions/partials/copyFor.test.mjs +53 -53
- package/functions/partials/distFor.mjs +22 -22
- package/functions/partials/distFor.test.mjs +195 -195
- package/functions/partials/distForSrc.mjs +11 -11
- package/functions/partials/distForSrc.test.mjs +18 -18
- package/functions/partials/distSeries.mjs +21 -21
- package/functions/partials/distSeries.test.mjs +34 -34
- package/functions/partials/imagesFor.mjs +147 -83
- package/functions/partials/imagesFor.test.mjs +311 -287
- package/functions/partials/jsdocDocsFor.mjs +163 -152
- package/functions/partials/jsdocDocsFor.test.mjs +182 -152
- package/functions/partials/lintSource.mjs +41 -41
- package/functions/partials/loadPeer.mjs +76 -76
- package/functions/partials/loadPeer.test.mjs +58 -58
- package/functions/partials/loadPlaywright.mjs +23 -23
- package/functions/partials/loadPlaywright.test.mjs +70 -70
- package/functions/partials/minifyFor.mjs +15 -15
- package/functions/partials/minifyFor.test.mjs +49 -49
- package/functions/partials/neostandardLint.mjs +142 -142
- package/functions/partials/neostandardLint.test.mjs +131 -131
- package/functions/partials/readmeTemplate.mjs +12 -12
- package/functions/partials/readmeTemplate.test.mjs +34 -34
- package/functions/partials/removeDirectory.mjs +34 -34
- package/functions/partials/removeDirectory.test.mjs +72 -72
- package/functions/partials/resolveDocsMethod.mjs +10 -10
- package/functions/partials/resolveDocsMethod.test.mjs +33 -33
- package/functions/partials/runOnChange.mjs +54 -54
- package/functions/partials/runOnChange.test.mjs +95 -95
- package/functions/partials/sassFor.mjs +25 -25
- package/functions/partials/sassFor.test.mjs +81 -81
- package/functions/partials/serveStatic.mjs +47 -47
- package/functions/partials/serveStatic.test.mjs +71 -71
- package/functions/partials/tsFor.mjs +92 -92
- package/functions/partials/tsFor.test.mjs +88 -88
- package/functions/partials/typeDocsFor.mjs +231 -231
- package/functions/partials/typeDocsFor.test.mjs +263 -263
- package/functions/partials.mjs +32 -31
- package/functions/partials.test.mjs +7 -7
- package/functions/sass.mjs +4 -4
- package/functions/sass.test.mjs +31 -31
- package/functions/sourceLint.mjs +13 -13
- package/functions/sourceLint.test.mjs +166 -166
- package/functions/test-helpers/neostandardLintWithRealNeostandard.mjs +40 -40
- package/functions/test-helpers/setUp.mjs +102 -100
- package/functions/test-helpers/setUp.test.mjs +19 -19
- package/functions/testFull.mjs +17 -17
- package/functions/testFull.test.mjs +17 -17
- package/functions/testHelpers.mjs +10 -10
- package/functions/testHelpers.test.mjs +7 -7
- package/functions/testQuick.mjs +17 -17
- package/functions/testQuick.test.mjs +17 -17
- package/functions/typeDocs.mjs +9 -9
- package/functions/typeDocs.test.mjs +11 -11
- package/functions/typeScript.mjs +8 -8
- package/functions/typeScript.test.mjs +11 -11
- package/functions/utilities/convertMjsFilesForDocs.mjs +34 -34
- package/functions/utilities/convertMjsFilesForDocs.test.mjs +58 -58
- package/functions/utilities/dotGet.mjs +49 -49
- package/functions/utilities/dotNotate.mjs +73 -73
- package/functions/utilities/dotNotate.test.mjs +41 -41
- package/functions/utilities/dotSet.mjs +40 -40
- package/functions/utilities/esmNamedExportsToCjs.mjs +30 -30
- package/functions/utilities/esmNamedExportsToCjs.test.mjs +47 -47
- package/functions/utilities/getBundleConfigs.mjs +30 -30
- package/functions/utilities/isObject.mjs +8 -8
- package/functions/utilities/strAfter.mjs +12 -12
- package/functions/utilities/strBefore.mjs +12 -12
- package/functions/watchFull.mjs +9 -9
- package/functions/watchFull.test.mjs +41 -41
- package/functions/watchTest.mjs +10 -10
- package/functions/watchTest.test.mjs +49 -49
- package/gulp.config.js +4 -4
- package/gulp.config.mjs +349 -340
- package/gulpfile.base.js +51 -51
- package/gulpfile.base.mjs +29 -29
- package/jsdoc.base.js +16 -16
- package/jsdoc.esmExports.js +17 -17
- package/package.json +146 -145
- package/dist/test-helpers/isolateGulpCache.js +0 -25
- package/functions/test-helpers/isolateGulpCache.mjs +0 -16
package/gulpfile.base.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Export these functions to your own project to customize your build pipeline.
|
|
3
|
-
* @file
|
|
4
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
-
* @version 3.0.0
|
|
6
|
-
* @module js-build-tools
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
const build = require('./dist/build.js')
|
|
10
|
-
const bundle = require('./dist/bundle.js')
|
|
11
|
-
const bundleMinify = require('./dist/bundleMinify.js')
|
|
12
|
-
const compileReadme = require('./dist/compileReadme.js')
|
|
13
|
-
const copyFonts = require('./dist/copyFonts.js')
|
|
14
|
-
const defaultCmd = require('./dist/default.js')
|
|
15
|
-
const dist = require('./dist/dist.js')
|
|
16
|
-
const distMinify = require('./dist/distMinify.js')
|
|
17
|
-
const gulpConfig = require('./gulp.config.js')
|
|
18
|
-
const images = require('./dist/images.js')
|
|
19
|
-
const partials = require('./dist/partials.js')
|
|
20
|
-
const sass = require('./dist/sass.js')
|
|
21
|
-
const sourceLint = require('./dist/sourceLint.js')
|
|
22
|
-
const testFull = require('./dist/testFull.js')
|
|
23
|
-
const testHelpers = require('./dist/testHelpers.js')
|
|
24
|
-
const testQuick = require('./dist/testQuick.js')
|
|
25
|
-
const typeDocs = require('./dist/typeDocs.js')
|
|
26
|
-
const typescript = require('./dist/typeScript')
|
|
27
|
-
const watchFull = require('./dist/watchFull.js')
|
|
28
|
-
const watchTest = require('./dist/watchTest.js')
|
|
29
|
-
|
|
30
|
-
module.exports = {
|
|
31
|
-
build,
|
|
32
|
-
bundle,
|
|
33
|
-
bundleMinify,
|
|
34
|
-
copyFonts,
|
|
35
|
-
defaultCmd,
|
|
36
|
-
docs: typeDocs,
|
|
37
|
-
dist,
|
|
38
|
-
distMinify,
|
|
39
|
-
gulpConfig,
|
|
40
|
-
images,
|
|
41
|
-
partials,
|
|
42
|
-
readme: compileReadme,
|
|
43
|
-
sass,
|
|
44
|
-
sourceLint,
|
|
45
|
-
testFull,
|
|
46
|
-
testHelpers,
|
|
47
|
-
testQuick,
|
|
48
|
-
typescript,
|
|
49
|
-
watchFull,
|
|
50
|
-
watchTest
|
|
51
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Export these functions to your own project to customize your build pipeline.
|
|
3
|
+
* @file
|
|
4
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
5
|
+
* @version 3.0.0
|
|
6
|
+
* @module js-build-tools
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const build = require('./dist/build.js')
|
|
10
|
+
const bundle = require('./dist/bundle.js')
|
|
11
|
+
const bundleMinify = require('./dist/bundleMinify.js')
|
|
12
|
+
const compileReadme = require('./dist/compileReadme.js')
|
|
13
|
+
const copyFonts = require('./dist/copyFonts.js')
|
|
14
|
+
const defaultCmd = require('./dist/default.js')
|
|
15
|
+
const dist = require('./dist/dist.js')
|
|
16
|
+
const distMinify = require('./dist/distMinify.js')
|
|
17
|
+
const gulpConfig = require('./gulp.config.js')
|
|
18
|
+
const images = require('./dist/images.js')
|
|
19
|
+
const partials = require('./dist/partials.js')
|
|
20
|
+
const sass = require('./dist/sass.js')
|
|
21
|
+
const sourceLint = require('./dist/sourceLint.js')
|
|
22
|
+
const testFull = require('./dist/testFull.js')
|
|
23
|
+
const testHelpers = require('./dist/testHelpers.js')
|
|
24
|
+
const testQuick = require('./dist/testQuick.js')
|
|
25
|
+
const typeDocs = require('./dist/typeDocs.js')
|
|
26
|
+
const typescript = require('./dist/typeScript')
|
|
27
|
+
const watchFull = require('./dist/watchFull.js')
|
|
28
|
+
const watchTest = require('./dist/watchTest.js')
|
|
29
|
+
|
|
30
|
+
module.exports = {
|
|
31
|
+
build,
|
|
32
|
+
bundle,
|
|
33
|
+
bundleMinify,
|
|
34
|
+
copyFonts,
|
|
35
|
+
defaultCmd,
|
|
36
|
+
docs: typeDocs,
|
|
37
|
+
dist,
|
|
38
|
+
distMinify,
|
|
39
|
+
gulpConfig,
|
|
40
|
+
images,
|
|
41
|
+
partials,
|
|
42
|
+
readme: compileReadme,
|
|
43
|
+
sass,
|
|
44
|
+
sourceLint,
|
|
45
|
+
testFull,
|
|
46
|
+
testHelpers,
|
|
47
|
+
testQuick,
|
|
48
|
+
typescript,
|
|
49
|
+
watchFull,
|
|
50
|
+
watchTest
|
|
51
|
+
}
|
package/gulpfile.base.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Import these functions to your own project to customize your build pipeline.
|
|
3
|
-
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
4
|
-
* @module js-build-tools
|
|
5
|
-
*/
|
|
6
|
-
export { build } from './functions/build.mjs'
|
|
7
|
-
export { bundle } from './functions/bundle.mjs'
|
|
8
|
-
export { bundleMinify } from './functions/bundleMinify.mjs'
|
|
9
|
-
export { compileReadme as readme } from './functions/compileReadme.mjs'
|
|
10
|
-
export { copyFiles } from './functions/copyFiles.mjs'
|
|
11
|
-
export { copyFonts } from './functions/copyFonts.mjs'
|
|
12
|
-
export { defaultCmd } from './functions/default.mjs'
|
|
13
|
-
export { dist } from './functions/dist.mjs'
|
|
14
|
-
export { docs } from './functions/docs.mjs'
|
|
15
|
-
export { distMinify } from './functions/distMinify.mjs'
|
|
16
|
-
export * as gulpConfig from './gulp.config.mjs'
|
|
17
|
-
export { images } from './functions/images.mjs'
|
|
18
|
-
export { jsdocDocs } from './functions/jsdocDocs.mjs'
|
|
19
|
-
export { lint } from './functions/lint.mjs'
|
|
20
|
-
export * as partials from './functions/partials.mjs'
|
|
21
|
-
export { sass } from './functions/sass.mjs'
|
|
22
|
-
export { sourceLint } from './functions/sourceLint.mjs'
|
|
23
|
-
export { testFull } from './functions/testFull.mjs'
|
|
24
|
-
export * as testHelpers from './functions/testHelpers.mjs'
|
|
25
|
-
export { testQuick } from './functions/testQuick.mjs'
|
|
26
|
-
export { typeDocs } from './functions/typeDocs.mjs'
|
|
27
|
-
export { typeScript as typescript } from './functions/typeScript.mjs'
|
|
28
|
-
export { watchFull } from './functions/watchFull.mjs'
|
|
29
|
-
export { watchTest } from './functions/watchTest.mjs'
|
|
1
|
+
/**
|
|
2
|
+
* Import these functions to your own project to customize your build pipeline.
|
|
3
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
4
|
+
* @module js-build-tools
|
|
5
|
+
*/
|
|
6
|
+
export { build } from './functions/build.mjs'
|
|
7
|
+
export { bundle } from './functions/bundle.mjs'
|
|
8
|
+
export { bundleMinify } from './functions/bundleMinify.mjs'
|
|
9
|
+
export { compileReadme as readme } from './functions/compileReadme.mjs'
|
|
10
|
+
export { copyFiles } from './functions/copyFiles.mjs'
|
|
11
|
+
export { copyFonts } from './functions/copyFonts.mjs'
|
|
12
|
+
export { defaultCmd } from './functions/default.mjs'
|
|
13
|
+
export { dist } from './functions/dist.mjs'
|
|
14
|
+
export { docs } from './functions/docs.mjs'
|
|
15
|
+
export { distMinify } from './functions/distMinify.mjs'
|
|
16
|
+
export * as gulpConfig from './gulp.config.mjs'
|
|
17
|
+
export { images } from './functions/images.mjs'
|
|
18
|
+
export { jsdocDocs } from './functions/jsdocDocs.mjs'
|
|
19
|
+
export { lint } from './functions/lint.mjs'
|
|
20
|
+
export * as partials from './functions/partials.mjs'
|
|
21
|
+
export { sass } from './functions/sass.mjs'
|
|
22
|
+
export { sourceLint } from './functions/sourceLint.mjs'
|
|
23
|
+
export { testFull } from './functions/testFull.mjs'
|
|
24
|
+
export * as testHelpers from './functions/testHelpers.mjs'
|
|
25
|
+
export { testQuick } from './functions/testQuick.mjs'
|
|
26
|
+
export { typeDocs } from './functions/typeDocs.mjs'
|
|
27
|
+
export { typeScript as typescript } from './functions/typeScript.mjs'
|
|
28
|
+
export { watchFull } from './functions/watchFull.mjs'
|
|
29
|
+
export { watchTest } from './functions/watchTest.mjs'
|
package/jsdoc.base.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const gulpConfig = require('./gulp.config.js')
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
plugins: ['plugins/markdown', path.join(__dirname, 'jsdoc.esmExports.js')],
|
|
6
|
-
// Give markdown headings ids (the README / docs.index front page), so they can be linked to and a theme's
|
|
7
|
-
// table of contents can follow them
|
|
8
|
-
markdown: { idInHeadings: true },
|
|
9
|
-
source: {
|
|
10
|
-
include: [gulpConfig.get('dist.to')],
|
|
11
|
-
// .mjs / .cjs too, so ES module source can be documented as it is, not only its compiled CommonJS
|
|
12
|
-
includePattern: '.+\\.[cm]?js(doc|x)?$',
|
|
13
|
-
// Files starting with _, tests, and minified copies (which only repeat what their unminified file documents)
|
|
14
|
-
excludePattern: '((^|\\/|\\\\)_|.+\\.test\\..*|.+\\.min\\.[cm]?js$)'
|
|
15
|
-
},
|
|
16
|
-
}
|
|
1
|
+
const path = require('path')
|
|
2
|
+
const gulpConfig = require('./gulp.config.js')
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
plugins: ['plugins/markdown', path.join(__dirname, 'jsdoc.esmExports.js')],
|
|
6
|
+
// Give markdown headings ids (the README / docs.index front page), so they can be linked to and a theme's
|
|
7
|
+
// table of contents can follow them
|
|
8
|
+
markdown: { idInHeadings: true },
|
|
9
|
+
source: {
|
|
10
|
+
include: [gulpConfig.get('dist.to')],
|
|
11
|
+
// .mjs / .cjs too, so ES module source can be documented as it is, not only its compiled CommonJS
|
|
12
|
+
includePattern: '.+\\.[cm]?js(doc|x)?$',
|
|
13
|
+
// Files starting with _, tests, and minified copies (which only repeat what their unminified file documents)
|
|
14
|
+
excludePattern: '((^|\\/|\\\\)_|.+\\.test\\..*|.+\\.min\\.[cm]?js$)'
|
|
15
|
+
},
|
|
16
|
+
}
|
package/jsdoc.esmExports.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A jsdoc plugin for ES module source. When a file has no @module tag of its own, jsdoc names each
|
|
3
|
-
* `export const x` it documents `exports.x`, so with `@memberOf module:name` it becomes `module:name.exports.x`
|
|
4
|
-
* (shown as "exports.x"). This drops that `exports.` so it is `module:name.x`, the name it is used by.
|
|
5
|
-
*/
|
|
6
|
-
const prefix = 'exports.'
|
|
7
|
-
|
|
8
|
-
exports.handlers = {
|
|
9
|
-
newDoclet ({ doclet }) {
|
|
10
|
-
if (doclet.name && doclet.name.startsWith(prefix)) {
|
|
11
|
-
doclet.name = doclet.name.slice(prefix.length)
|
|
12
|
-
}
|
|
13
|
-
if (doclet.longname && doclet.longname.includes(`.${prefix}`)) {
|
|
14
|
-
doclet.longname = doclet.longname.replace(`.${prefix}`, '.')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* A jsdoc plugin for ES module source. When a file has no @module tag of its own, jsdoc names each
|
|
3
|
+
* `export const x` it documents `exports.x`, so with `@memberOf module:name` it becomes `module:name.exports.x`
|
|
4
|
+
* (shown as "exports.x"). This drops that `exports.` so it is `module:name.x`, the name it is used by.
|
|
5
|
+
*/
|
|
6
|
+
const prefix = 'exports.'
|
|
7
|
+
|
|
8
|
+
exports.handlers = {
|
|
9
|
+
newDoclet ({ doclet }) {
|
|
10
|
+
if (doclet.name && doclet.name.startsWith(prefix)) {
|
|
11
|
+
doclet.name = doclet.name.slice(prefix.length)
|
|
12
|
+
}
|
|
13
|
+
if (doclet.longname && doclet.longname.includes(`.${prefix}`)) {
|
|
14
|
+
doclet.longname = doclet.longname.replace(`.${prefix}`, '.')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,145 +1,146 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "js-build-tools",
|
|
3
|
-
"version": "6.
|
|
4
|
-
"description": "Standardised build process with gulp.",
|
|
5
|
-
"main": "gulpfile.base.js",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"node": "./gulpfile.base.js",
|
|
9
|
-
"default": "./gulpfile.base.mjs"
|
|
10
|
-
},
|
|
11
|
-
"./babel.config": "./babel.config.js",
|
|
12
|
-
"./gulp.config": "./gulp.config.js",
|
|
13
|
-
"./gulp.config.mjs": "./gulp.config.mjs",
|
|
14
|
-
"./gulpfile.base": "./gulpfile.base.js",
|
|
15
|
-
"./gulpfile.base.mjs": "./gulpfile.base.mjs",
|
|
16
|
-
"./jsdoc.base": "./jsdoc.base.js",
|
|
17
|
-
"./testHelpers": "./dist/testHelpers",
|
|
18
|
-
"./testHelpers.mjs": "./functions/testHelpers.mjs"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "gulp build",
|
|
22
|
-
"dev": "gulp",
|
|
23
|
-
"docs": "gulp docs",
|
|
24
|
-
"lint": "gulp lint",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"release
|
|
28
|
-
"
|
|
29
|
-
"test
|
|
30
|
-
"
|
|
31
|
-
"watch
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"@babel/
|
|
54
|
-
"@babel/
|
|
55
|
-
"@babel/preset-
|
|
56
|
-
"@babel/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"gulp
|
|
66
|
-
"gulp-
|
|
67
|
-
"gulp-postcss": "^10.0.0",
|
|
68
|
-
"gulp-rename": "^2.1.0",
|
|
69
|
-
"gulp-sass": "^6.0.1",
|
|
70
|
-
"gulp-ts-compile": "^1.0.2",
|
|
71
|
-
"gulp-uglify-es": "^3.0.0",
|
|
72
|
-
"jest": "^30.5.2",
|
|
73
|
-
"jest-environment-jsdom": "^30.5.2",
|
|
74
|
-
"jsdoc-to-markdown": "^9.1.3",
|
|
75
|
-
"merge-stream": "^2.0.0",
|
|
76
|
-
"neostandard": "^0.14.1",
|
|
77
|
-
"postcss": "^8.5.31",
|
|
78
|
-
"regenerator-runtime": "^0.14.1",
|
|
79
|
-
"sass": "^1.105.2",
|
|
80
|
-
"test-filesystem": "^2.0.2",
|
|
81
|
-
"through2": "^4.0.2",
|
|
82
|
-
"vinyl-source-stream": "^2.0.0"
|
|
83
|
-
},
|
|
84
|
-
"peerDependencies": {
|
|
85
|
-
"clean-jsdoc-theme": ">=4.0.0",
|
|
86
|
-
"gulp-imagemin": ">=9.0.0",
|
|
87
|
-
"jsdoc": ">=4.0.0",
|
|
88
|
-
"playwright": ">=1.40.0",
|
|
89
|
-
"typedoc": ">=0.28.0",
|
|
90
|
-
"typescript": ">=5.0.0 <7.0.0"
|
|
91
|
-
},
|
|
92
|
-
"peerDependenciesMeta": {
|
|
93
|
-
"clean-jsdoc-theme": {
|
|
94
|
-
"optional": true
|
|
95
|
-
},
|
|
96
|
-
"gulp-imagemin": {
|
|
97
|
-
"optional": true
|
|
98
|
-
},
|
|
99
|
-
"jsdoc": {
|
|
100
|
-
"optional": true
|
|
101
|
-
},
|
|
102
|
-
"playwright": {
|
|
103
|
-
"optional": true
|
|
104
|
-
},
|
|
105
|
-
"typedoc": {
|
|
106
|
-
"optional": true
|
|
107
|
-
},
|
|
108
|
-
"typescript": {
|
|
109
|
-
"optional": true
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"files": [
|
|
113
|
-
"babel.config.js",
|
|
114
|
-
"dist",
|
|
115
|
-
"functions",
|
|
116
|
-
"gulpfile.base.js",
|
|
117
|
-
"gulpfile.base.mjs",
|
|
118
|
-
"gulp.config.js",
|
|
119
|
-
"gulp.config.mjs",
|
|
120
|
-
"jsdoc.base.js",
|
|
121
|
-
"jsdoc.esmExports.js"
|
|
122
|
-
],
|
|
123
|
-
"funding": "https://www.paypal.com/donate/?business=LRYR6SZRWKXVY&no_recurring=0&item_name=Let%27s+build+together+today+to+simplify+our+jobs+tomorrow.¤cy_code=CAD",
|
|
124
|
-
"devDependencies": {
|
|
125
|
-
"clean-jsdoc-theme": "^
|
|
126
|
-
"gulp-imagemin": "github:jheagle/gulp-imagemin#common-js-compatibility",
|
|
127
|
-
"jsdoc": "^4.0.5",
|
|
128
|
-
"playwright": "^1.64.1",
|
|
129
|
-
"release-it": "^21.1.1",
|
|
130
|
-
"typedoc": "^0.28.20",
|
|
131
|
-
"typescript": "^6.0.3"
|
|
132
|
-
},
|
|
133
|
-
"engines": {
|
|
134
|
-
"node": ">=22.12.0"
|
|
135
|
-
},
|
|
136
|
-
"allowScripts": {
|
|
137
|
-
"gifsicle@5.3.0": true,
|
|
138
|
-
"mozjpeg@8.0.0": true,
|
|
139
|
-
"optipng-bin@7.0.1": true,
|
|
140
|
-
"core-js": false,
|
|
141
|
-
"core-js-pure": false,
|
|
142
|
-
"@parcel/watcher": false,
|
|
143
|
-
"unrs-resolver": false
|
|
144
|
-
|
|
145
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "js-build-tools",
|
|
3
|
+
"version": "6.8.0",
|
|
4
|
+
"description": "Standardised build process with gulp.",
|
|
5
|
+
"main": "gulpfile.base.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"node": "./gulpfile.base.js",
|
|
9
|
+
"default": "./gulpfile.base.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./babel.config": "./babel.config.js",
|
|
12
|
+
"./gulp.config": "./gulp.config.js",
|
|
13
|
+
"./gulp.config.mjs": "./gulp.config.mjs",
|
|
14
|
+
"./gulpfile.base": "./gulpfile.base.js",
|
|
15
|
+
"./gulpfile.base.mjs": "./gulpfile.base.mjs",
|
|
16
|
+
"./jsdoc.base": "./jsdoc.base.js",
|
|
17
|
+
"./testHelpers": "./dist/testHelpers",
|
|
18
|
+
"./testHelpers.mjs": "./functions/testHelpers.mjs"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "gulp build",
|
|
22
|
+
"dev": "gulp",
|
|
23
|
+
"docs": "gulp docs",
|
|
24
|
+
"lint": "gulp lint",
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"readme": "gulp readme",
|
|
27
|
+
"release": "release-it",
|
|
28
|
+
"release:dry-run": "release-it --dry-run",
|
|
29
|
+
"test": "gulp testFull",
|
|
30
|
+
"test:quick": "gulp testQuick",
|
|
31
|
+
"watch": "gulp watchFull",
|
|
32
|
+
"watch:test": "gulp watchTest"
|
|
33
|
+
},
|
|
34
|
+
"repository": "github:jheagle/js-build-tools",
|
|
35
|
+
"keywords": [
|
|
36
|
+
"gulp",
|
|
37
|
+
"build",
|
|
38
|
+
"node",
|
|
39
|
+
"bundler"
|
|
40
|
+
],
|
|
41
|
+
"author": "Joshua Heagle <joshuaheagle@gmail.com> (https://joshuaheagle.com)",
|
|
42
|
+
"license": "GPL-3.0-or-later",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/jheagle/js-build-tools/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/jheagle/js-build-tools#readme",
|
|
47
|
+
"standard": {
|
|
48
|
+
"env": [
|
|
49
|
+
"jest"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@babel/core": "^7.29.7",
|
|
54
|
+
"@babel/plugin-transform-modules-commonjs": "^7.29.7",
|
|
55
|
+
"@babel/preset-env": "^7.29.7",
|
|
56
|
+
"@babel/preset-typescript": "^7.29.7",
|
|
57
|
+
"@babel/runtime-corejs3": "^8.0.7",
|
|
58
|
+
"autoprefixer": "^10.6.1",
|
|
59
|
+
"babel-jest": "^30.5.2",
|
|
60
|
+
"browserify": "^17.0.1",
|
|
61
|
+
"core-js": "^3.51.0",
|
|
62
|
+
"cssnano": "^6.1.2",
|
|
63
|
+
"eslint": "^10.13.0",
|
|
64
|
+
"glob": "^14.0.2",
|
|
65
|
+
"gulp": "^5.0.1",
|
|
66
|
+
"gulp-babel": "^8.1.0",
|
|
67
|
+
"gulp-postcss": "^10.0.0",
|
|
68
|
+
"gulp-rename": "^2.1.0",
|
|
69
|
+
"gulp-sass": "^6.0.1",
|
|
70
|
+
"gulp-ts-compile": "^1.0.2",
|
|
71
|
+
"gulp-uglify-es": "^3.0.0",
|
|
72
|
+
"jest": "^30.5.2",
|
|
73
|
+
"jest-environment-jsdom": "^30.5.2",
|
|
74
|
+
"jsdoc-to-markdown": "^9.1.3",
|
|
75
|
+
"merge-stream": "^2.0.0",
|
|
76
|
+
"neostandard": "^0.14.1",
|
|
77
|
+
"postcss": "^8.5.31",
|
|
78
|
+
"regenerator-runtime": "^0.14.1",
|
|
79
|
+
"sass": "^1.105.2",
|
|
80
|
+
"test-filesystem": "^2.0.2",
|
|
81
|
+
"through2": "^4.0.2",
|
|
82
|
+
"vinyl-source-stream": "^2.0.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"clean-jsdoc-theme": ">=4.0.0",
|
|
86
|
+
"gulp-imagemin": ">=9.0.0",
|
|
87
|
+
"jsdoc": ">=4.0.0",
|
|
88
|
+
"playwright": ">=1.40.0",
|
|
89
|
+
"typedoc": ">=0.28.0",
|
|
90
|
+
"typescript": ">=5.0.0 <7.0.0"
|
|
91
|
+
},
|
|
92
|
+
"peerDependenciesMeta": {
|
|
93
|
+
"clean-jsdoc-theme": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"gulp-imagemin": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"jsdoc": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
"playwright": {
|
|
103
|
+
"optional": true
|
|
104
|
+
},
|
|
105
|
+
"typedoc": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"typescript": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"files": [
|
|
113
|
+
"babel.config.js",
|
|
114
|
+
"dist",
|
|
115
|
+
"functions",
|
|
116
|
+
"gulpfile.base.js",
|
|
117
|
+
"gulpfile.base.mjs",
|
|
118
|
+
"gulp.config.js",
|
|
119
|
+
"gulp.config.mjs",
|
|
120
|
+
"jsdoc.base.js",
|
|
121
|
+
"jsdoc.esmExports.js"
|
|
122
|
+
],
|
|
123
|
+
"funding": "https://www.paypal.com/donate/?business=LRYR6SZRWKXVY&no_recurring=0&item_name=Let%27s+build+together+today+to+simplify+our+jobs+tomorrow.¤cy_code=CAD",
|
|
124
|
+
"devDependencies": {
|
|
125
|
+
"clean-jsdoc-theme": "^5.2.1",
|
|
126
|
+
"gulp-imagemin": "github:jheagle/gulp-imagemin#common-js-compatibility",
|
|
127
|
+
"jsdoc": "^4.0.5",
|
|
128
|
+
"playwright": "^1.64.1",
|
|
129
|
+
"release-it": "^21.1.1",
|
|
130
|
+
"typedoc": "^0.28.20",
|
|
131
|
+
"typescript": "^6.0.3"
|
|
132
|
+
},
|
|
133
|
+
"engines": {
|
|
134
|
+
"node": ">=22.12.0"
|
|
135
|
+
},
|
|
136
|
+
"allowScripts": {
|
|
137
|
+
"gifsicle@5.3.0": true,
|
|
138
|
+
"mozjpeg@8.0.0": true,
|
|
139
|
+
"optipng-bin@7.0.1": true,
|
|
140
|
+
"core-js": false,
|
|
141
|
+
"core-js-pure": false,
|
|
142
|
+
"@parcel/watcher": false,
|
|
143
|
+
"unrs-resolver": false,
|
|
144
|
+
"esbuild": false
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isolateGulpCache = void 0;
|
|
7
|
-
var _gulpCache = _interopRequireDefault(require("gulp-cache"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
/**
|
|
10
|
-
* Give this test file its own gulp-cache folder, and return a function that clears only that folder. gulp-cache
|
|
11
|
-
* otherwise keeps one cache in os.tmpdir() for every process, so a cache.clearAll() in one Jest worker could wipe it
|
|
12
|
-
* while another worker's images task was still using it, and gulp-cache then silently dropped that worker's
|
|
13
|
-
* images. Jest loads gulp-cache separately for each test file, so this only changes the copy that file uses.
|
|
14
|
-
* @memberOf module:testHelpers
|
|
15
|
-
* @param {string} name - Unique per test file, used in the cache folder name.
|
|
16
|
-
* @returns {function(): Promise<void>} Clears this test file's cache.
|
|
17
|
-
*/
|
|
18
|
-
const isolateGulpCache = name => {
|
|
19
|
-
const fileCache = new _gulpCache.default.Cache({
|
|
20
|
-
cacheDirName: `js-build-tools-test-${name}`
|
|
21
|
-
});
|
|
22
|
-
_gulpCache.default.defaultOptions.fileCache = fileCache;
|
|
23
|
-
return () => new Promise((resolve, reject) => fileCache.clear(null, error => error ? reject(error) : resolve()));
|
|
24
|
-
};
|
|
25
|
-
exports.isolateGulpCache = isolateGulpCache;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import cache from 'gulp-cache'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Give this test file its own gulp-cache folder, and return a function that clears only that folder. gulp-cache
|
|
5
|
-
* otherwise keeps one cache in os.tmpdir() for every process, so a cache.clearAll() in one Jest worker could wipe it
|
|
6
|
-
* while another worker's images task was still using it, and gulp-cache then silently dropped that worker's
|
|
7
|
-
* images. Jest loads gulp-cache separately for each test file, so this only changes the copy that file uses.
|
|
8
|
-
* @memberOf module:testHelpers
|
|
9
|
-
* @param {string} name - Unique per test file, used in the cache folder name.
|
|
10
|
-
* @returns {function(): Promise<void>} Clears this test file's cache.
|
|
11
|
-
*/
|
|
12
|
-
export const isolateGulpCache = name => {
|
|
13
|
-
const fileCache = new cache.Cache({ cacheDirName: `js-build-tools-test-${name}` })
|
|
14
|
-
cache.defaultOptions.fileCache = fileCache
|
|
15
|
-
return () => new Promise((resolve, reject) => fileCache.clear(null, error => error ? reject(error) : resolve()))
|
|
16
|
-
}
|