Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
node-version: [24]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -24,7 +27,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: 22
node-version: ${{ matrix.node-version }}
cache: yarn
registry-url: https://registry.npmjs.org

Expand All @@ -37,7 +40,7 @@ jobs:
path: |
.cache/yarn
node_modules
key: ubuntu-latest-node22-${{ hashFiles('yarn.lock') }}
key: ubuntu-latest-node${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}

## --- INSTALL --- ##
# If statement isn't needed here b/c yarn will leverage the cache if it exists
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22, 24]
steps:
- name: Check out code
uses: actions/checkout@v5
Expand All @@ -19,7 +21,7 @@ jobs:
uses: actions/setup-node@v6
with:
cache: yarn
node-version: 22
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -31,6 +33,9 @@ jobs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
steps:
- uses: actions/checkout@v5

Expand All @@ -40,7 +45,7 @@ jobs:
- uses: actions/setup-node@v6
with:
cache: yarn
node-version: 22
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --immutable
Expand Down Expand Up @@ -72,6 +77,9 @@ jobs:
timeout-minutes: 5
permissions:
contents: read
strategy:
matrix:
node-version: [24]
steps:
- name: Check out code
uses: actions/checkout@v5
Expand All @@ -84,7 +92,7 @@ jobs:
- name: Use Node LTS version
uses: actions/setup-node@v6
with:
node-version: 22
node-version: ${{ matrix.node-version }}
cache: yarn

## --- YARN CACHE --- ##
Expand All @@ -96,7 +104,7 @@ jobs:
path: |
.cache/yarn
node_modules
key: ubuntu-latest-node22-${{ hashFiles('yarn.lock') }}
key: ubuntu-latest-node${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}

## --- INSTALL --- ##
# If statement isn't needed here b/c yarn will leverage the cache if it exists
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.*
24.*
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<img src="https://repository-images.githubusercontent.com/690650165/91f13310-76b3-43ff-b7ab-53daa21a90ce" alt=""/>

# glob-concat-cli

> A command-line interface for concatenating files leveraging [fast-glob](https://github.com/mrmlnc/fast-glob#fast-glob).

## Key features

- Concatenates files on the command line
- Quick and easy concatenation of files on the command line
- Supports robust glob patterns via [fast-glob](https://github.com/mrmlnc/fast-glob#pattern-syntax)
- Allows empty files to be ignored (great for use with automated build tools)
- Can output to stdout or a file
- Automatically ignores empty files by default (great for use with automated build tools)
- Can output to stdout or a new or existing file
- Provides a sourcemap for the concatenated files by default

## Install
Expand All @@ -20,6 +22,8 @@ npm install --dev glob-concat-cli
yarn add --dev glob-concat-cli
```

Currently, this project supports node v22 and v24. We plan to deprecate support for node v22 by March of 2026.

## API

### `files`
Expand Down Expand Up @@ -60,7 +64,7 @@ When leveraging this package, you can also pass in any of the options supported

Due to how this utility is built, the following options are not supported:

- `onlyDirectories` (this is always set to `false` because this utility is meant to concatenate files)
- `onlyDirectories` (this is always set to `false` because this utility is meant to concatenate files only)
- `stats`
- `objectMode`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
},
"scripts": {
"coverage": "c8 yarn test",
"postinstall": "husky || true",
"lint": "prettier --config .prettierrc --check . && eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives . && markdownlint --config .markdownlint.json *.md --ignore node_modules",
"lint:fix": "prettier --config .prettierrc --write . && eslint --fix --cache --no-ignore --no-error-on-unmatched-pattern . && prettier-package-json --write package.json && markdownlint --config .markdownlint.json --fix *.md --ignore node_modules",
"postinstall": "husky || true",
"precommit": "commitlint --edit \"\" && lint-staged --allow-empty --config lint-staged.config.js",
"prepublishOnly": "yarn test",
"semantic-release": "semantic-release",
Expand Down