Skip to content

Commit

Permalink
Release v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Apr 18, 2024
1 parent 0d892da commit d3d9fd2
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 45 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-on-vtag.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: release
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1 #see: https://github.com/actions/create-release/releases
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run-spec-on-push.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: build
name: Build and Run Specifications

on: [push]

jobs:
build:
name: Run Specifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
Expand Down
2 changes: 1 addition & 1 deletion dist/add-dist-header.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

export type Settings = {
allFiles: boolean;
Expand Down
4 changes: 2 additions & 2 deletions dist/add-dist-header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

import { isBinary } from 'istextorbinary';
import chalk from 'chalk';
Expand Down Expand Up @@ -45,7 +45,7 @@ const addDistHeader = {
const out2 = settings.replaceComment ? out1.replace(firstLine[type], '') : out1;
const doctype = mlStyle && out2.match(doctypeLine)?.[0] || '';
const out3 = mlStyle && doctype ? out2.replace(doctype, '') : out2;
const versionPattern = /{{pkg[.]version}}/g;
const versionPattern = /{{(pkg|package)[.]version}}/g;
const out4 = settings.setVersion ? out3.replace(versionPattern, pkg.version) : out3;
const info = pkg.homepage ?? pkg.docs ?? pkg.repository;
const unlicensed = !pkg.license || pkg.license === 'UNLICENSED';
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "add-dist-header",
"version": "1.4.0",
"version": "1.4.1",
"description": "Prepend a one-line banner comment (with license notice) to distribution files",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -91,18 +91,18 @@
},
"devDependencies": {
"@types/fancy-log": "~2.0",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~7.2",
"@typescript-eslint/parser": "~7.2",
"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.7",
"@typescript-eslint/parser": "~7.7",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"eslint": "~8.57",
"eslint": "8.57.0",
"jshint": "~2.13",
"mocha": "~10.3",
"mocha": "~10.4",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.4",
"w3c-html-validator": "~1.6"
"w3c-html-validator": "~1.7"
}
}
4 changes: 2 additions & 2 deletions spec/fixtures/target/cli/all/kebab.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
/*! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */

.kebab { /* v1.4.0 */
.kebab { /* v1.4.1 */
border: 2px solid firebrick;
border-radius: 3px;
}
4 changes: 2 additions & 2 deletions spec/fixtures/target/cli/all/kebab.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!doctype html>
<!-- add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<html lang=en>
<head>
<meta charset=utf-8>
<title>Kebab &bull; 🍢🍢🍢</title>
</head>
<body>
<h1>Kebab v1.4.0</h1>
<h1>Kebab v1.4.1</h1>
</body>
</html>
6 changes: 3 additions & 3 deletions spec/fixtures/target/cli/all/kebab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

const toKebab = (camelStr) => { //v1.4.0
const toKebab = (camelStr) => { //v1.4.1
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

export { toKebab }; //version: 1.4.0
export { toKebab }; //version: 1.4.1
2 changes: 1 addition & 1 deletion spec/fixtures/target/cli/all/kebab.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ 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;
6 changes: 3 additions & 3 deletions spec/fixtures/target/cli/all/kebab.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

//! This comment is important!
const toKebab = (camelStr: string): string => { //v1.4.0
const toKebab = (camelStr: string): string => { //v1.4.1
const dash = (word: string) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

export { toKebab }; //version: 1.4.0
export { toKebab }; //version: 1.4.1
2 changes: 1 addition & 1 deletion spec/fixtures/target/cli/all/kebab.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<styles>
<style region="Greece">souvlaki</style>
<style region="Türkiye">shish</style>
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/target/cli/all/subfolder/pita-bread.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

import { toKebab } from '../kebab';

const pitaBread = (str) => `🫓 ${toKebab(str)} 🫓`; //v1.4.0
const pitaBread = (str) => `🫓 ${toKebab(str)} 🫓`; //v1.4.1

export { pitaBread };
4 changes: 2 additions & 2 deletions spec/fixtures/target/cli/ext/kebab.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
/*! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */

.kebab { /* v1.4.0 */
.kebab { /* v1.4.1 */
border: 2px solid firebrick;
border-radius: 3px;
}
6 changes: 3 additions & 3 deletions spec/fixtures/target/cli/ext/kebab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

const toKebab = (camelStr) => { //v1.4.0
const toKebab = (camelStr) => { //v1.4.1
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

export { toKebab }; //version: 1.4.0
export { toKebab }; //version: 1.4.1
2 changes: 1 addition & 1 deletion spec/fixtures/target/cli/ext/kebab.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ 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;
4 changes: 2 additions & 2 deletions spec/fixtures/target/kebab.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License -->
<!-- Original header comment -->
<!doctype html>
<html lang=en>
Expand All @@ -7,6 +7,6 @@
<title>Kebab &bull; 🍢🍢🍢</title>
</head>
<body>
<h1>Kebab v1.4.0</h1>
<h1>Kebab v1.4.1</h1>
</body>
</html>
6 changes: 3 additions & 3 deletions spec/fixtures/target/kebab.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! add-dist-header v1.4.0 🫓🍢🫓 https://github.com/center-key/add-dist-header 🫓🍢🫓 MIT License
//! add-dist-header v1.4.1 🫓🍢🫓 https://github.com/center-key/add-dist-header 🫓🍢🫓 MIT License

const toKebab = (camelStr) => { //v1.4.0
const toKebab = (camelStr) => { //v1.4.1
const dash = (word) => '-' + word.toLowerCase();
return ('' + camelStr).replace(/([A-Z]+)/g, dash).replace(/\s|^-/g, '');
};

export { toKebab }; //version: 1.4.0
export { toKebab }; //version: 1.4.1
4 changes: 2 additions & 2 deletions spec/fixtures/target/kebab.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
.kebab { /* v1.4.0 */
/*! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License */
.kebab { /* v1.4.1 */
border: 2px solid firebrick;
border-radius: 3px;
}
2 changes: 1 addition & 1 deletion spec/fixtures/target/kebab.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ 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;
2 changes: 1 addition & 1 deletion spec/fixtures/target/kebab.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! add-dist-header v1.4.0 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

//! This comment is important!
const toKebab = (camelStr: string): string => { //v{{package.version}}
Expand Down

0 comments on commit d3d9fd2

Please sign in to comment.