@localnerve/web-component-build 3.5.0 → 3.5.1

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/README.md CHANGED
@@ -194,6 +194,8 @@ Full path to the output directory where css, html, and javascript output are wri
194
194
 
195
195
  * **minifySkip** {Boolean} - True to skip all minifications, defaults to false
196
196
 
197
+ * **deprecationWarnings** {Boolean} - False to disable deprecation warnings, defaults to true. If omitted, deprecation warnings are suppressed by defining environment variable `WEB_COMPONENT_BUILD_NO_DEPRECATION_WARNINGS`
198
+
197
199
  ### Result {Object}
198
200
  The output of the build process. Allows access to the output paths and full output content. Format:
199
201
 
package/lib/index.js CHANGED
@@ -36,14 +36,14 @@ function htmlBaseName (htmlPath) {
36
36
  * @param {String} [options.cssLinkHref] - http href to css resource
37
37
  * @param {String} [options.htmlPath] - full path to the input html file (single template)
38
38
  * @param {String} [options.jsReplacement] - Replacement token in the js file (single template)
39
- * @param {Array} [options.templates] - list of templates, each {name, htmlPath, token,
39
+ * @param {Array} [options.templates=[]] - list of templates, each {name, htmlPath, token,
40
40
  * cssLinkHref}. When supplied, takes precedence over the flat options. Shared
41
41
  * cssPath/cssLinkHref are applied to every template unless a template overrides
42
42
  * its own cssLinkHref.
43
43
  * @param {Object} [options.terserOptions] - Js minifier options (terser)
44
44
  * @param {Object} [options.htmlminOptions] - html-minifier options
45
45
  * @param {Object} [options.cleancssOptions] - clean-css options
46
- * @param {Boolean} [options.minifySkip] - default false, flag to skip all minification (debug)
46
+ * @param {Boolean} [options.minifySkip=false] - default false, flag to skip all minification (debug)
47
47
  * @param {Boolean} [options.deprecationWarnings=true] - default true, emit console.warn
48
48
  * messages for flat single-template options and the htmlPath/getHtml shorthands
49
49
  * that are removed in v4.0.0. Set false (or env WEB_COMPONENT_BUILD_NO_DEPRECATION_WARNINGS) to suppress.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/web-component-build",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "A library to help build web components",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@eslint/js": "^10.0.1",
65
- "eslint": "^10.9.1",
65
+ "eslint": "^10.10.0",
66
66
  "eslint-plugin-n": "^18.3.0",
67
67
  "globals": "^17.12.0",
68
68
  "he": "^1.2.0",