Skip to content

Commit

Permalink
deps, dates, CI, naturalise
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Dec 6, 2024
1 parent 0f51cd9 commit be1da51
Show file tree
Hide file tree
Showing 19 changed files with 360 additions and 710 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
branches: [ master, next ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [18, 20, 22]
os: [ubuntu-latest]
node-version: [18, 20, 22, 23]

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- name: Run tests
run: npm run test
env:
FORCE_COLOR: 3 # To enable testing of ansi-coloured output
- run: npm i @75lb/nature
- run: npm run test
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
example/sandbox
.editorconfig
node_modules
tmp
coverage
.nyc_output
.coveralls.yml
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012-24 Lloyd Brookes <75pound@gmail.com>
Copyright (c) 2012-25 Lloyd Brookes <opensource@75lb.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ $ npm install --save-dev renamer

* * *

&copy; 2012-24 Lloyd Brookes \<75pound@gmail.com\>.
&copy; 2012-25 Lloyd Brookes \<opensource@75lb.com\>.

Tested by [test-runner](https://github.com/test-runner-js/test-runner).
2 changes: 1 addition & 1 deletion lib/cli-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { optionDefinitions, usageSections } from './cli-options.js'
import streamReadAll from 'stream-read-all'
import { streamReadAll } from 'stream-read-all'
import Renamer from 'renamer'
import { regExpBuilder, loadPlugins } from './util.js'
import commandLineUsage from 'command-line-usage'
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { loadModuleResolvedFrom, loadModuleRelativeTo } from 'load-module'
import FindReplace from './chain/find-replace.js'
import IndexReplace from './chain/index-replace.js'
import getModulePaths from 'current-module-paths'
import * as globalDirs from 'global-dirs'
import globalDirs from 'global-directory'
const __dirname = getModulePaths(import.meta.url).__dirname

/**
Expand Down
Loading

0 comments on commit be1da51

Please sign in to comment.