Skip to content

Commit b5c6269

Browse files
committed
Rename 'kcd' β†’ 'hvr' 😏
1 parent 17354e6 commit b5c6269

File tree

8 files changed

+53
-53
lines changed

8 files changed

+53
-53
lines changed

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Thanks for being willing to contribute!
1616
> pull requests from branches on your fork. To do this, run:
1717
>
1818
> ```
19-
> git remote add upstream https://github.com/kentcdodds/kcd-scripts.git
19+
> git remote add upstream https://github.com/kentcdodds/hvr-scripts.git
2020
> git fetch upstream
2121
> git branch --set-upstream-to=upstream/master master
2222
> ```
@@ -72,4 +72,4 @@ requests! Thanks!
7272
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
7373
[semantic-release]: https://npmjs.com/package/semantic-release
7474
[convention]: https://github.com/conventional-changelog/conventional-changelog-angular/blob/ed32559941719a130bb0327f886d6a32a8cbc2ba/convention.md
75-
[issues]: https://github.com/kentcdodds/kcd-scripts/issues
75+
[issues]: https://github.com/kentcdodds/hvr-scripts/issues

β€ŽREADME.mdβ€Ž

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

β€Žpackage.jsonβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "kcd-scripts",
2+
"name": "hvr-scripts",
33
"version": "0.0.0-semantically-released",
44
"description": "CLI for common scripts for my projects",
55
"engines": {
66
"node": ">= 8",
77
"npm": ">= 5"
88
},
99
"bin": {
10-
"kcd-scripts": "dist/index.js"
10+
"hvr-scripts": "dist/index.js"
1111
},
1212
"scripts": {
1313
"test": "node src test",
@@ -108,12 +108,12 @@
108108
],
109109
"repository": {
110110
"type": "git",
111-
"url": "https://github.com/kentcdodds/kcd-scripts.git"
111+
"url": "https://github.com/kentcdodds/hvr-scripts.git"
112112
},
113113
"bugs": {
114-
"url": "https://github.com/kentcdodds/kcd-scripts/issues"
114+
"url": "https://github.com/kentcdodds/hvr-scripts/issues"
115115
},
116-
"homepage": "https://github.com/kentcdodds/kcd-scripts#readme",
116+
"homepage": "https://github.com/kentcdodds/hvr-scripts#readme",
117117
"devDependencies": {
118118
"jest-in-case": "^1.0.2",
119119
"slash": "^3.0.0"

β€Žsrc/__tests__/utils.jsβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ test('appDirectory is the dirname to the package.json', () => {
2323
expect(require('../utils').appDirectory).toBe(pkgPath)
2424
})
2525

26-
test('resolveKcdScripts resolves to src/index.js when in the kcd-scripts package', () => {
27-
mockPkg({package: {name: 'kcd-scripts'}})
28-
expect(require('../utils').resolveKcdScripts()).toBe(
26+
test('resolveHvrScripts resolves to src/index.js when in the hvr-scripts package', () => {
27+
mockPkg({package: {name: 'hvr-scripts'}})
28+
expect(require('../utils').resolveHvrScripts()).toBe(
2929
require.resolve('../').replace(process.cwd(), '.'),
3030
)
3131
})
3232

33-
test('resolveKcdScripts resolves to kcd-scripts if not in the kcd-scripts package', () => {
34-
mockPkg({package: {name: 'not-kcd-scripts'}})
33+
test('resolveHvrScripts resolves to hvr-scripts if not in the kcd-scripts package', () => {
34+
mockPkg({package: {name: 'not-hvr-scripts'}})
3535
whichSyncMock.mockImplementationOnce(() => require.resolve('../'))
36-
expect(require('../utils').resolveKcdScripts()).toBe('kcd-scripts')
36+
expect(require('../utils').resolveHvrScripts()).toBe('hvr-scripts')
3737
})
3838

3939
test(`resolveBin resolves to the full path when it's not in $PATH`, () => {

β€Žsrc/config/lintstagedrc.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const {resolveKcdScripts, resolveBin, isOptedOut} = require('../utils')
1+
const {resolveHvrScripts, resolveBin, isOptedOut} = require('../utils')
22

3-
const kcdScripts = resolveKcdScripts()
3+
const kcdScripts = resolveHvrScripts()
44
const doctoc = resolveBin('doctoc')
55

66
module.exports = {

β€Žsrc/index.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
let shouldThrow
33
try {
44
shouldThrow =
5-
require(`${process.cwd()}/package.json`).name === 'kcd-scripts' &&
5+
require(`${process.cwd()}/package.json`).name === 'hvr-scripts' &&
66
Number(process.version.slice(1).split('.')[0]) < 8
77
} catch (error) {
88
// ignore
99
}
1010

1111
if (shouldThrow) {
1212
throw new Error(
13-
'You must use Node version 8 or greater to run the scripts within kcd-scripts ' +
13+
'You must use Node version 8 or greater to run the scripts within hvr-scripts ' +
1414
'because we dogfood the untranspiled version of the scripts.',
1515
)
1616
}

β€Žsrc/run-script.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ May the force be with you.
3838

3939
function getEnv() {
4040
// this is required to address an issue in cross-spawn
41-
// https://github.com/kentcdodds/kcd-scripts/issues/4
41+
// https://github.com/kentcdodds/hvr-scripts/issues/4
4242
return Object.keys(process.env)
4343
.filter(key => process.env[key] !== undefined)
4444
.reduce(

β€Žsrc/utils.jsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const {package: pkg, path: pkgPath} = readPkgUp.sync({
1212
})
1313
const appDirectory = path.dirname(pkgPath)
1414

15-
function resolveKcdScripts() {
16-
if (pkg.name === 'kcd-scripts') {
15+
function resolveHvrScripts() {
16+
if (pkg.name === 'hvr-scripts') {
1717
return require.resolve('./').replace(process.cwd(), '.')
1818
}
19-
return resolveBin('kcd-scripts')
19+
return resolveBin('hvr-scripts')
2020
}
2121

2222
// eslint-disable-next-line complexity
@@ -187,7 +187,7 @@ module.exports = {
187187
parseEnv,
188188
pkg,
189189
resolveBin,
190-
resolveKcdScripts,
190+
resolveHvrScripts,
191191
uniq,
192192
writeExtraEntry,
193193
}

0 commit comments

Comments
Β (0)