diff --git a/dist/add-dist-header.d.ts b/dist/add-dist-header.d.ts index b3564c6..1d7abca 100644 --- a/dist/add-dist-header.d.ts +++ b/dist/add-dist-header.d.ts @@ -1,4 +1,4 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License export type Settings = { allFiles: boolean; diff --git a/dist/add-dist-header.js b/dist/add-dist-header.js index aed2e5c..e5a4425 100644 --- a/dist/add-dist-header.js +++ b/dist/add-dist-header.js @@ -1,4 +1,4 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License import { isBinary } from 'istextorbinary'; import chalk from 'chalk'; diff --git a/package.json b/package.json index 9339fe9..0937c26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "add-dist-header", - "version": "1.3.1", + "version": "1.3.2", "description": "Prepend a one-line banner comment (with license notice) to distribution files", "license": "MIT", "type": "module", diff --git a/spec/fixtures/target/cli/all/kebab.css b/spec/fixtures/target/cli/all/kebab.css index ce4a7f1..09ea22f 100644 --- a/spec/fixtures/target/cli/all/kebab.css +++ b/spec/fixtures/target/cli/all/kebab.css @@ -1,6 +1,6 @@ -/*! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ +/*! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ -.kebab { /* v1.3.1 */ +.kebab { /* v1.3.2 */ border: 2px solid firebrick; border-radius: 3px; } diff --git a/spec/fixtures/target/cli/all/kebab.html b/spec/fixtures/target/cli/all/kebab.html index d73ce59..4755867 100644 --- a/spec/fixtures/target/cli/all/kebab.html +++ b/spec/fixtures/target/cli/all/kebab.html @@ -1,11 +1,11 @@ - + Kebab • 🍒🍒🍒 -

Kebab v1.3.1

+

Kebab v1.3.2

diff --git a/spec/fixtures/target/cli/all/kebab.js b/spec/fixtures/target/cli/all/kebab.js index c69529c..e352dd7 100644 --- a/spec/fixtures/target/cli/all/kebab.js +++ b/spec/fixtures/target/cli/all/kebab.js @@ -1,8 +1,8 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -const toKebab = (camelStr) => { //v1.3.1 +const toKebab = (camelStr) => { //v1.3.2 const dash = (word) => '-' + word.toLowerCase(); return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, ''); }; -export { toKebab }; //version: 1.3.1 +export { toKebab }; //version: 1.3.2 diff --git a/spec/fixtures/target/cli/all/kebab.min.js b/spec/fixtures/target/cli/all/kebab.min.js index fd51b44..b946bef 100644 --- a/spec/fixtures/target/cli/all/kebab.min.js +++ b/spec/fixtures/target/cli/all/kebab.min.js @@ -1,2 +1,2 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab; diff --git a/spec/fixtures/target/cli/all/kebab.ts b/spec/fixtures/target/cli/all/kebab.ts index 154a10d..6a175ee 100644 --- a/spec/fixtures/target/cli/all/kebab.ts +++ b/spec/fixtures/target/cli/all/kebab.ts @@ -1,9 +1,9 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License //! This comment is important! -const toKebab = (camelStr: string): string => { //v1.3.1 +const toKebab = (camelStr: string): string => { //v1.3.2 const dash = (word: string) => '-' + word.toLowerCase(); return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, ''); }; -export { toKebab }; //version: 1.3.1 +export { toKebab }; //version: 1.3.2 diff --git a/spec/fixtures/target/cli/all/kebab.xml b/spec/fixtures/target/cli/all/kebab.xml index cfa4366..eb23784 100644 --- a/spec/fixtures/target/cli/all/kebab.xml +++ b/spec/fixtures/target/cli/all/kebab.xml @@ -1,5 +1,5 @@ - + diff --git a/spec/fixtures/target/cli/all/subfolder/pita-bread.js b/spec/fixtures/target/cli/all/subfolder/pita-bread.js index b5f21f9..b29bede 100644 --- a/spec/fixtures/target/cli/all/subfolder/pita-bread.js +++ b/spec/fixtures/target/cli/all/subfolder/pita-bread.js @@ -1,7 +1,7 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License import { toKebab } from '../kebab'; -const pitaBread = (str) => `πŸ«“ ${toKebab(str)} πŸ«“`; //v1.3.1 +const pitaBread = (str) => `πŸ«“ ${toKebab(str)} πŸ«“`; //v1.3.2 export { pitaBread }; diff --git a/spec/fixtures/target/cli/ext/kebab.css b/spec/fixtures/target/cli/ext/kebab.css index ce4a7f1..09ea22f 100644 --- a/spec/fixtures/target/cli/ext/kebab.css +++ b/spec/fixtures/target/cli/ext/kebab.css @@ -1,6 +1,6 @@ -/*! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ +/*! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ -.kebab { /* v1.3.1 */ +.kebab { /* v1.3.2 */ border: 2px solid firebrick; border-radius: 3px; } diff --git a/spec/fixtures/target/cli/ext/kebab.js b/spec/fixtures/target/cli/ext/kebab.js index c69529c..e352dd7 100644 --- a/spec/fixtures/target/cli/ext/kebab.js +++ b/spec/fixtures/target/cli/ext/kebab.js @@ -1,8 +1,8 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -const toKebab = (camelStr) => { //v1.3.1 +const toKebab = (camelStr) => { //v1.3.2 const dash = (word) => '-' + word.toLowerCase(); return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, ''); }; -export { toKebab }; //version: 1.3.1 +export { toKebab }; //version: 1.3.2 diff --git a/spec/fixtures/target/cli/ext/kebab.min.js b/spec/fixtures/target/cli/ext/kebab.min.js index fd51b44..b946bef 100644 --- a/spec/fixtures/target/cli/ext/kebab.min.js +++ b/spec/fixtures/target/cli/ext/kebab.min.js @@ -1,2 +1,2 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab; diff --git a/spec/fixtures/target/kebab.html b/spec/fixtures/target/kebab.html index 68a11ec..50b4948 100644 --- a/spec/fixtures/target/kebab.html +++ b/spec/fixtures/target/kebab.html @@ -1,4 +1,4 @@ - + @@ -7,6 +7,6 @@ Kebab • 🍒🍒🍒 -

Kebab v1.3.1

+

Kebab v1.3.2

diff --git a/spec/fixtures/target/kebab.js b/spec/fixtures/target/kebab.js index 1614e1f..1c36619 100644 --- a/spec/fixtures/target/kebab.js +++ b/spec/fixtures/target/kebab.js @@ -1,8 +1,8 @@ -//! add-dist-header v1.3.1 πŸ«“πŸ’πŸ«“ https://github.com/center-key/add-dist-header πŸ«“πŸ’πŸ«“ MIT License +//! add-dist-header v1.3.2 πŸ«“πŸ’πŸ«“ https://github.com/center-key/add-dist-header πŸ«“πŸ’πŸ«“ MIT License -const toKebab = (camelStr) => { //v1.3.1 +const toKebab = (camelStr) => { //v1.3.2 const dash = (word) => '-' + word.toLowerCase(); return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, ''); }; -export { toKebab }; //version: 1.3.1 +export { toKebab }; //version: 1.3.2 diff --git a/spec/fixtures/target/kebab.min.css b/spec/fixtures/target/kebab.min.css index 56b0b53..621c5a5 100644 --- a/spec/fixtures/target/kebab.min.css +++ b/spec/fixtures/target/kebab.min.css @@ -1,5 +1,5 @@ -/*! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ -.kebab { /* v1.3.1 */ +/*! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */ +.kebab { /* v1.3.2 */ border: 2px solid firebrick; border-radius: 3px; } diff --git a/spec/fixtures/target/kebab.min.js b/spec/fixtures/target/kebab.min.js index fd51b44..b946bef 100644 --- a/spec/fixtures/target/kebab.min.js +++ b/spec/fixtures/target/kebab.min.js @@ -1,2 +1,2 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License const toKebab=(c)=>{const d=(w)=>'-'+ w.toLowerCase();return(''+c).replace(/([A-Z]+)/g,d).replace(/\s|^-/g,'');};module.exports=toKebab; diff --git a/spec/fixtures/target/kebab.ts b/spec/fixtures/target/kebab.ts index c19344a..e17fe4d 100644 --- a/spec/fixtures/target/kebab.ts +++ b/spec/fixtures/target/kebab.ts @@ -1,4 +1,4 @@ -//! add-dist-header v1.3.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License +//! add-dist-header v1.3.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License //! This comment is important! const toKebab = (camelStr: string): string => { //v{{pkg.version}}