Skip to content

Commit f548092

Browse files
committedAug 1, 2022
dev: package.json scripts, formatting
1 parent 309e998 commit f548092

File tree

5 files changed

+28
-21
lines changed

5 files changed

+28
-21
lines changed
 

‎.eslintrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ rules:
1818
import/first: error
1919
import/no-anonymous-default-export: error
2020
import/no-unassigned-import: error
21-
import/no-internal-modules: error
21+
import/no-internal-modules: error

‎.release-it.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"hooks": {
33
"before:init": ["npm run lint", "npm test"],
4-
"after:bump": "auto-changelog -p --starting-date 2021-01-05 --commit-limit false --ignore-commit-pattern '^((dev|chore|ci):|Release|skip changelog)'",
4+
"after:bump": "auto-changelog -p --starting-version v2.4.0 --commit-limit false --ignore-commit-pattern '^((dev|chore|ci):|Release|Merge|skip changelog)'",
55
"after:npm:bump": "npm pack",
66
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
77
},
@@ -10,7 +10,7 @@
1010
"commitArgs": ["-S"],
1111
"tagAnnotation": "Release ${version}",
1212
"tagArgs": ["-s"],
13-
"changelog": "auto-changelog --starting-date 2021-01-05 -u --commit-limit false --ignore-commit-pattern '^((dev|chore|ci):|Release|skip changelog)' --stdout -t https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
13+
"changelog": "auto-changelog -u --starting-version v2.4.0 --commit-limit false --ignore-commit-pattern '^((dev|chore|ci):|Release|Merge|skip changelog)' --stdout -t https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
1414
},
1515
"npm": {
1616
"publish": false

‎CHANGELOG.md

+21-15
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [Unreleased](https://github.com/metalsmith/permalinks/compare/v2.4.0...HEAD)
8+
9+
- Updates regexparam 2.0.0 -> 2.0.1, debug 4.3.3 -> 4.3.4 [`309e998`](https://github.com/metalsmith/permalinks/commit/309e9985c9b2f699c64a878cbd61c412937d843b)
10+
- Dropped support for Node < 12 [`ec20c30`](https://github.com/metalsmith/permalinks/commit/ec20c3061ab2c192c930bf0e1316bf6286417035)
11+
712
#### [v2.4.0](https://github.com/metalsmith/permalinks/compare/v2.3.0...v2.4.0)
813

14+
> 30 January 2022
15+
916
- Resolves #122: remove deprecated substitute pkg, add regexparam instead [`#122`](https://github.com/metalsmith/permalinks/issues/122)
1017
- Fixes #120: default linkset options should be overwritten by other linksets [`#120`](https://github.com/metalsmith/permalinks/issues/120)
1118
- Resolves #121: Align dot & repo files with core plugins [`#121`](https://github.com/metalsmith/permalinks/issues/121)
@@ -20,34 +27,33 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2027

2128
> 29 May 2021
2229
23-
- Improve docs on slug options, see #2 [`#3`](https://github.com/metalsmith/permalinks/pull/3)
24-
- Update rimraf, nodemon, slugify, moment to latest, tweak npm scripts [`#1`](https://github.com/metalsmith/permalinks/pull/1)
25-
- Switch to xo + prettier. [`#104`](https://github.com/metalsmith/permalinks/pull/104)
26-
- Windows fix [`#105`](https://github.com/metalsmith/permalinks/pull/105)
27-
- package.json: add an engines property >= 6 [`#110`](https://github.com/metalsmith/permalinks/pull/110)
28-
- ES6-ify codebase. [`#99`](https://github.com/metalsmith/permalinks/pull/99)
29-
- Properly disable package-lock.json. [`#103`](https://github.com/metalsmith/permalinks/pull/103)
30-
- Fix one Windows test failure [`#101`](https://github.com/metalsmith/permalinks/pull/101)
31-
- Use https. [`#108`](https://github.com/metalsmith/permalinks/pull/108)
32-
- Switch to GitHub Actions CI [`#100`](https://github.com/metalsmith/permalinks/pull/100)
33-
- Update nodemon npm script [`#102`](https://github.com/metalsmith/permalinks/pull/102)
34-
- Enforce LF. [`#98`](https://github.com/metalsmith/permalinks/pull/98)
35-
- Update dependencies. [`#97`](https://github.com/metalsmith/permalinks/pull/97)
36-
- Update Travis CI config. [`#96`](https://github.com/metalsmith/permalinks/pull/96)
37-
- Fix backslashes on Windows [`#95`](https://github.com/metalsmith/permalinks/pull/95)
30+
- ES6-ify codebase. [`4626521`](https://github.com/metalsmith/permalinks/commit/46265217f2796091d61165756e3ada5f7e0d725d)
3831
- Added ability to extend slugify; Docs added [`e9edcbd`](https://github.com/metalsmith/permalinks/commit/e9edcbd74506f4c2ab0320d1f8b8b464db3ec58a)
32+
- Improve docs on slug options, see #2 [`bd10c17`](https://github.com/metalsmith/permalinks/commit/bd10c17b2b92cc563744d752355db72f1b9dd144)
3933
- GH workflow: only run lint on 1 OS [`59938fb`](https://github.com/metalsmith/permalinks/commit/59938fbee8e29283b3ef5b77d9707f84009d42f3)
34+
- Switch to xo + prettier. [`6d12908`](https://github.com/metalsmith/permalinks/commit/6d12908413967d233635ac158b4c93fa98c8ff76)
35+
- Switch to GitHub Actions CI [`b910096`](https://github.com/metalsmith/permalinks/commit/b910096ebb6adf807c9a818ad4f4e35d067c41a4)
4036
- Update Readme.md, xo dependency to latest version [`6303701`](https://github.com/metalsmith/permalinks/commit/6303701b82373cad7e05efc92be30d33696f81fc)
37+
- Update dependencies. [`3269f79`](https://github.com/metalsmith/permalinks/commit/3269f79d37a6e630a560f028bc76fdf9d976b684)
4138
- Packages updated: transliteration api changed - fixtures updated accordingly [`c74449b`](https://github.com/metalsmith/permalinks/commit/c74449b14f6a112afcdf265498e05265fad70a93)
4239
- Update & apply linting rules to be mostly backwards-compatible [`c945a0d`](https://github.com/metalsmith/permalinks/commit/c945a0dfb51d929058dc77c7c448ea97c09dc8b2)
4340
- Update package.json with new repo location, NPM scope [`1b9ba66`](https://github.com/metalsmith/permalinks/commit/1b9ba6680a12701b9ac0ae6e13b334af8535f9da)
41+
- Use https. [`9f0db0d`](https://github.com/metalsmith/permalinks/commit/9f0db0d399c75e541a45e7468c4b5baaafcc2482)
42+
- Update rimraf, nodemon, slugify, moment to latest, tweak npm scripts [`da4cd29`](https://github.com/metalsmith/permalinks/commit/da4cd293e245b3418c58adbf93f8ac710b814a52)
4443
- package.json: don't run `lint --fix` on CI. [`857dd11`](https://github.com/metalsmith/permalinks/commit/857dd11d6249dd706cca0c312d919e90257b9d74)
44+
- Update Travis CI config. [`6557cb9`](https://github.com/metalsmith/permalinks/commit/6557cb96fcce6f7cd8316a3053373d935f656a9a)
4545
- Update slugify/ transliteration to latest, update tests & Node version support [`ed687c0`](https://github.com/metalsmith/permalinks/commit/ed687c0001f562c32ce916cd42ee437f782a9d0d)
4646
- Align node version testing with LTS EOL [`5d29e0d`](https://github.com/metalsmith/permalinks/commit/5d29e0deb70d98473a6fa8cbc7196a02503a058b)
4747
- Adhere to the new lint rules. [`4dcd78b`](https://github.com/metalsmith/permalinks/commit/4dcd78bd14d1f2346965defc39f6f69de59d78f2)
4848
- Make permalinks a named plugin (for debugging), fix incorrect ref in makeUnique function [`b318e7c`](https://github.com/metalsmith/permalinks/commit/b318e7ce09df153a7470859e3dab466b2ff17d0b)
49+
- package.json: add an engines property >= 6 [`6974b9c`](https://github.com/metalsmith/permalinks/commit/6974b9c79f6e84b89f34b93a1b7baa022cc515fe)
4950
- Attempt to fix the last Windows failure. [`6088c69`](https://github.com/metalsmith/permalinks/commit/6088c690c3960edeee3001e4675061eb656055ba)
51+
- Fix one Windows test failure [`9e5e1f6`](https://github.com/metalsmith/permalinks/commit/9e5e1f6d0dc7b1844ca2fecbca3729b97ed7f90e)
52+
- Fix backslashes on Windows [`6977b3e`](https://github.com/metalsmith/permalinks/commit/6977b3e710728a18fca3cdc1f5e999713e64ed01)
5053
- Update Github workflow (xo compat node >= 10) [`19d55b2`](https://github.com/metalsmith/permalinks/commit/19d55b2880c475ad417a1a0046a7105413fac2ef)
54+
- Update nodemon npm script [`3d83ce7`](https://github.com/metalsmith/permalinks/commit/3d83ce7956f48635a3b3e59362c55fb6d4fefd0d)
55+
- Enforce LF. [`0b6a8c9`](https://github.com/metalsmith/permalinks/commit/0b6a8c9d582c011599cfb49114da8bdddaeaffac)
56+
- Properly disable package-lock.json. [`aded406`](https://github.com/metalsmith/permalinks/commit/aded4069703dd6016993c0e2e51b7266da742332)
5157

5258
<!-- auto-changelog-above -->
5359

‎lib/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use strict'
22

33
const path = require('path')
4-
const debug = require('debug')('@metalsmith/permalinks')
4+
const createDebug = require('debug')
5+
const debug = createDebug('@metalsmith/permalinks')
56
const moment = require('moment')
67
const slugify = require('slugify')
78
const route = require('regexparam')

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"url": "https://github.com/metalsmith/permalinks/issues"
1313
},
1414
"author": "Ian Storm Taylor (https://ianstormtaylor.com)",
15-
"contributors": [
15+
"maintainers": [
1616
"Kevin Van Lierde (https://webketje.com)"
1717
],
1818
"repository": {
@@ -23,7 +23,7 @@
2323
"license": "MIT",
2424
"main": "lib/index.js",
2525
"scripts": {
26-
"changelog": "auto-changelog -u --starting-date 2021-05-01 --commit-limit false --ignore-commit-pattern '(dev|Release|Merge)'",
26+
"changelog": "auto-changelog -u --starting-version v2.4.0 --commit-limit false --ignore-commit-pattern '^((dev|chore|ci):|Release|Merge)'",
2727
"coverage": "nyc report --reporter=text-lcov > ./coverage.info",
2828
"format": "prettier --write \"**/*.{yml,md,js,json}\"",
2929
"format:check": "prettier --list-different \"**/*.{yml,md,js,json}\"",

0 commit comments

Comments
 (0)
Please sign in to comment.