Skip to content

Commit ba571b2

Browse files
committed
refactor: change all references to the kent name to cfc or crisfcodes depending on the case.
1 parent 9c0c9f3 commit ba571b2

13 files changed

Lines changed: 134 additions & 98 deletions

File tree

.all-contributorsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"projectName": "kcd-scripts",
2+
"projectName": "cfc-scripts",
33
"projectOwner": "kentcdodds",
44
"imageSize": 100,
55
"commit": false,

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ understand what's going on and fix the issue.
88
99
I'll probably ask you to submit the fix (after giving some direction). If you've
1010
never done that before, that's great! Check this free short video tutorial to
11-
learn how: http://kcd.im/pull-request
11+
learn how: http://cfc.im/pull-request
1212
-->
1313

14-
- `kcd-scripts` version:
14+
- `cfc-scripts` version:
1515
- `node` version:
1616
- `npm` (or `yarn`) version:
1717

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Also, please make sure you're familiar with and follow the instructions in the
88
contributing guidelines (found in the CONTRIBUTING.md file).
99
1010
If you're new to contributing to open source projects, you might find this free
11-
video course helpful: http://kcd.im/pull-request
11+
video course helpful: http://cfc.im/pull-request
1212
1313
Please fill out the information below to expedite the review and (hopefully)
1414
merge of your pull request!
@@ -37,6 +37,6 @@ merge of your pull request!
3737
- [ ] Documentation
3838
- [ ] Tests
3939
- [ ] Ready to be merged
40-
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
40+
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
4141

4242
<!-- feel free to add additional comments -->

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
needs: main
4747
runs-on: ubuntu-latest
4848
if:
49-
${{ github.repository == 'kentcdodds/kcd-scripts' &&
49+
${{ github.repository == 'crisfcodes/cfc-scripts' &&
5050
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
5151
github.ref) && github.event_name == 'push' }}
5252
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ dist
77
# when working with contributors
88
package-lock.json
99
yarn.lock
10+
.idea

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ series [How to Contribute to an Open Source Project on GitHub][egghead]
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
19+
> git remote add upstream https://github.com/crisfcodes/cfc-scripts
2020
> git fetch upstream
2121
> git branch --set-upstream-to=upstream/master master
2222
> ```
@@ -41,6 +41,8 @@ Also, please watch the repo and respond to questions/bug reports/feature
4141
requests! Thanks!
4242
4343
<!-- prettier-ignore-start -->
44+
4445
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
45-
[issues]: https://github.com/kentcdodds/kcd-scripts/issues
46+
47+
[issues]: https://github.com/crisfcodes/cfc-scripts/issues
4648
<!-- prettier-ignore-end -->

README.md

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

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "kcd-scripts",
2+
"name": "cfc-scripts",
33
"version": "0.0.0-semantically-released",
44
"description": "CLI for common scripts for my projects",
55
"engines": {
@@ -8,7 +8,7 @@
88
"yarn": ">=1"
99
},
1010
"bin": {
11-
"kcd-scripts": "dist/index.js"
11+
"cfc-scripts": "dist/index.js"
1212
},
1313
"scripts": {
1414
"test": "node src test",
@@ -29,7 +29,10 @@
2929
"shared-tsconfig.json"
3030
],
3131
"keywords": [],
32-
"author": "Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)",
32+
"authors": [
33+
"Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)",
34+
"Cristian C. Flórez <cristianflorez0501@gmail.com>"
35+
],
3336
"license": "MIT",
3437
"dependencies": {
3538
"@babel/cli": "^7.13.14",
@@ -64,7 +67,7 @@
6467
"cross-spawn": "^7.0.3",
6568
"doctoc": "^2.0.0",
6669
"eslint": "^7.24.0",
67-
"eslint-config-kentcdodds": "^18.0.0",
70+
"eslint-config-crisfcodes": "^1.0.0",
6871
"glob": "^7.1.6",
6972
"husky": "^4.3.8",
7073
"is-ci": "^3.0.0",
@@ -91,8 +94,8 @@
9194
},
9295
"eslintConfig": {
9396
"extends": [
94-
"kentcdodds",
95-
"kentcdodds/jest"
97+
"crisfcodes",
98+
"crisfcodes/jest"
9699
],
97100
"rules": {
98101
"no-process-exit": "off",
@@ -112,12 +115,12 @@
112115
],
113116
"repository": {
114117
"type": "git",
115-
"url": "https://github.com/kentcdodds/kcd-scripts"
118+
"url": "https://github.com/crisfcodes/cfc-scripts"
116119
},
117120
"bugs": {
118-
"url": "https://github.com/kentcdodds/kcd-scripts/issues"
121+
"url": "https://github.com/crisfcodes/cfc-scripts/issues"
119122
},
120-
"homepage": "https://github.com/kentcdodds/kcd-scripts#readme",
123+
"homepage": "https://github.com/crisfcodes/cfc-scripts#readme",
121124
"devDependencies": {
122125
"jest-in-case": "^1.0.2",
123126
"slash": "^3.0.0"

src/__tests__/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ test('appDirectory is the dirname to the package.json', () => {
3232
expect(require('../utils').appDirectory).toBe(pkgPath)
3333
})
3434

35-
test('resolveKcdScripts resolves to src/index.js when in the kcd-scripts package', () => {
36-
mockPkg({package: {name: 'kcd-scripts'}})
35+
test('resolveKcdScripts resolves to src/index.js when in the cfc-scripts package', () => {
36+
mockPkg({package: {name: 'cfc-scripts'}})
3737
expect(require('../utils').resolveKcdScripts()).toBe(
3838
require.resolve('../').replace(process.cwd(), '.'),
3939
)
4040
})
4141

42-
test('resolveKcdScripts resolves to kcd-scripts if not in the kcd-scripts package', () => {
43-
mockPkg({package: {name: 'not-kcd-scripts'}})
42+
test('resolveKcdScripts resolves to cfc-scripts if not in the cfc-scripts package', () => {
43+
mockPkg({package: {name: 'not-cfc-scripts'}})
4444
whichSyncMock.mockImplementationOnce(() => require.resolve('../'))
45-
expect(require('../utils').resolveKcdScripts()).toBe('kcd-scripts')
45+
expect(require('../utils').resolveKcdScripts()).toBe('cfc-scripts')
4646
})
4747

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

src/config/eslintrc.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ const {ifAnyDep} = require('../utils')
22

33
module.exports = {
44
extends: [
5-
require.resolve('eslint-config-kentcdodds'),
6-
require.resolve('eslint-config-kentcdodds/jest'),
7-
ifAnyDep('react', require.resolve('eslint-config-kentcdodds/jsx-a11y')),
8-
ifAnyDep('react', require.resolve('eslint-config-kentcdodds/react')),
5+
require.resolve('eslint-config-crisfcodes'),
6+
require.resolve('eslint-config-crisfcodes/jest'),
7+
ifAnyDep('react', require.resolve('eslint-config-crisfcodes/jsx-a11y')),
8+
ifAnyDep('react', require.resolve('eslint-config-crisfcodes/react')),
9+
ifAnyDep('react', require.resolve('eslint-config-crisfcodes/promise')),
10+
ifAnyDep('react', require.resolve('eslint-config-crisfcodes/comments')),
911
].filter(Boolean),
1012
rules: {},
1113
}

0 commit comments

Comments
 (0)