@kitschpatrol/shared-config 5.7.1 → 5.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -1
- package/package.json +11 -11
- package/readme.md +19 -7
package/bin/cli.js
CHANGED
|
@@ -11084,7 +11084,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
11084
11084
|
var yargs_default = Yargs;
|
|
11085
11085
|
|
|
11086
11086
|
// ../../package.json
|
|
11087
|
-
var version = "5.7.
|
|
11087
|
+
var version = "5.7.3";
|
|
11088
11088
|
|
|
11089
11089
|
// ../../src/execa-utilities.ts
|
|
11090
11090
|
function isErrorExecaError(error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.3",
|
|
4
4
|
"description": "A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
41
41
|
"cosmiconfig": "^9.0.0",
|
|
42
|
-
"cosmiconfig-typescript-loader": "^6.
|
|
42
|
+
"cosmiconfig-typescript-loader": "^6.2.0",
|
|
43
43
|
"execa": "^9.6.0",
|
|
44
44
|
"find-workspaces": "^0.3.1",
|
|
45
45
|
"fs-extra": "^11.3.2",
|
|
46
46
|
"prettier": "^3.6.2",
|
|
47
|
-
"@kitschpatrol/cspell-config": "5.7.
|
|
48
|
-
"@kitschpatrol/
|
|
49
|
-
"@kitschpatrol/
|
|
50
|
-
"@kitschpatrol/remark-config": "5.7.
|
|
51
|
-
"@kitschpatrol/
|
|
52
|
-
"@kitschpatrol/
|
|
53
|
-
"@kitschpatrol/
|
|
54
|
-
"@kitschpatrol/stylelint-config": "5.7.
|
|
55
|
-
"@kitschpatrol/typescript-config": "5.7.
|
|
47
|
+
"@kitschpatrol/cspell-config": "5.7.3",
|
|
48
|
+
"@kitschpatrol/eslint-config": "5.7.3",
|
|
49
|
+
"@kitschpatrol/mdat-config": "5.7.3",
|
|
50
|
+
"@kitschpatrol/remark-config": "5.7.3",
|
|
51
|
+
"@kitschpatrol/knip-config": "5.7.3",
|
|
52
|
+
"@kitschpatrol/prettier-config": "5.7.3",
|
|
53
|
+
"@kitschpatrol/repo-config": "5.7.3",
|
|
54
|
+
"@kitschpatrol/stylelint-config": "5.7.3",
|
|
55
|
+
"@kitschpatrol/typescript-config": "5.7.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"globby": "^15.0.0",
|
package/readme.md
CHANGED
|
@@ -121,24 +121,36 @@ The top-level `ksc` command also takes care of some nuances in terms of _which_
|
|
|
121
121
|
|
|
122
122
|
### Installation
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
There are a few different ways to integrate `@kitschpatrol/shared-config` into your project, depending on whether you're starting from scratch or adding it to an existing project.
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
#### Create new project from a template:
|
|
127
|
+
|
|
128
|
+
The easiest way to get started is to create a new project from a starter template:
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
pnpm create @kitschpatrol/project
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
See the [template repository](https://github.com/kitschpatrol/create-project) for more details.
|
|
135
|
+
|
|
136
|
+
#### Bootstrap from scratch:
|
|
137
|
+
|
|
138
|
+
Alternatively, this one-liner will bootstrap a new project and open it in VS Code, but the template approach above is preferred:
|
|
127
139
|
|
|
128
140
|
```sh
|
|
129
|
-
git init && pnpm init && pnpm pkg set type="module" && pnpm
|
|
141
|
+
git init && pnpm init && pnpm pkg set type="module" && pnpm --package=@kitschpatrol/repo-config dlx ksc-repo init && pnpm add -D @kitschpatrol/shared-config && pnpm ksc init && pnpm i && code .
|
|
130
142
|
```
|
|
131
143
|
|
|
132
|
-
Note that `ksc init` takes an optional `--location package` flag will put as much configuration in your `package.json` as possible instead of creating discrete config files in your project root for each tool. Putting config in `package.json` can save some clutter, but can make it clunkier to extend or customize configurations.
|
|
144
|
+
Note that `ksc init` takes an optional `--location package` flag will put as much configuration in your `package.json` as possible instead of creating discrete config files in your project root for each tool. Putting config in `package.json` can save some clutter, but it makes configs less discoverable and can make it clunkier to extend or customize configurations since you don't have the benefit of type safety and autocomplete.
|
|
133
145
|
|
|
134
146
|
At any point, you can call `ksc init` again with the `--location package` or `--location file` flag to reinitialize your configuration files in one place or the other and restore the default configurations.
|
|
135
147
|
|
|
136
|
-
####
|
|
148
|
+
#### Add to an existing project:
|
|
137
149
|
|
|
138
150
|
This might overwrite certain config files, so commit first:
|
|
139
151
|
|
|
140
152
|
```sh
|
|
141
|
-
pnpm
|
|
153
|
+
pnpm --package=@kitschpatrol/repo-config dlx ksc-repo init && pnpm i && pnpm add -D @kitschpatrol/shared-config && pnpm ksc init
|
|
142
154
|
```
|
|
143
155
|
|
|
144
156
|
#### Step-by-step:
|
|
@@ -146,7 +158,7 @@ pnpm dlx @kitschpatrol/repo-config init && pnpm i && pnpm add -D @kitschpatrol/s
|
|
|
146
158
|
1. Install the requisite `.npmrc`:
|
|
147
159
|
|
|
148
160
|
```sh
|
|
149
|
-
pnpm
|
|
161
|
+
pnpm --package=@kitschpatrol/repo-config dlx ksc-repo init
|
|
150
162
|
```
|
|
151
163
|
|
|
152
164
|
2. Install the package:
|