@mrshmllw/campfire 1.0.0-crumbs-feature-adding-some-default-configs.3 → 1.0.0-crumbs-feature-adding-some-default-configs.5
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/README.md +75 -1
- package/dist/configs/commitlint.config.d.ts +3 -0
- package/dist/configs/commitlint.config.js +1 -6
- package/dist/configs/eslint.config.d.ts +24 -0
- package/dist/configs/lint-staged.config.d.ts +5 -0
- package/dist/configs/prettier.config.d.ts +8 -0
- package/dist/configs/release.config.d.ts +5 -0
- package/dist/index.d.ts +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/libs/configs/commitlint.config.ts +1 -6
- package/package.json +1 -1
- package/tsconfig.build.json +2 -1
package/README.md
CHANGED
|
@@ -1 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Campfire
|
|
2
|
+
|
|
3
|
+
`campfire` is a collection internal configs, utils, and bits and pieces
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ npm install -D @mrshmllw/campfire
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Making changes
|
|
12
|
+
|
|
13
|
+
When making changes and creating PR's we use
|
|
14
|
+
[semantic-releases](https://www.npmjs.com/package/semantic-release) which make
|
|
15
|
+
use of [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
16
|
+
|
|
17
|
+
So to ensure our CHANGELOG.md is updated automatically and gets the changes we
|
|
18
|
+
have made, we just need to name our PR's following this convention (casing
|
|
19
|
+
matters): e.g
|
|
20
|
+
|
|
21
|
+
1. patch - fix(OPTIONAL bugfix-reference): some bugfix
|
|
22
|
+
2. minor - feat(OPTIONAL feature-reference): some feature
|
|
23
|
+
3. major - BREAKING CHANGE: some breaking change
|
|
24
|
+
|
|
25
|
+
## Release
|
|
26
|
+
|
|
27
|
+
Only the following branches are supported for release:
|
|
28
|
+
|
|
29
|
+
- `main`
|
|
30
|
+
- `feature/*`
|
|
31
|
+
- `chore/*`
|
|
32
|
+
- `fix/*`
|
|
33
|
+
|
|
34
|
+
#### Preview
|
|
35
|
+
|
|
36
|
+
Before releasing, you may want to see the changes that will be included in the
|
|
37
|
+
next version deployed on NPM, you can do so by:
|
|
38
|
+
|
|
39
|
+
1. Goto our
|
|
40
|
+
[github workflows](https://github.com/marshmallow-insurance/campfire/actions)
|
|
41
|
+
2. Click `Preview Bump and Publish`
|
|
42
|
+
3. Press `Run workflow` and select the `main` branch.
|
|
43
|
+
4. Wait for the `Generate preview CHANGELOG.md` and look at the results!
|
|
44
|
+
|
|
45
|
+
#### Releasing & Publishing
|
|
46
|
+
|
|
47
|
+
When you're happy with your changes, you can release & publish your changes to
|
|
48
|
+
NPM in one fell swoop by:
|
|
49
|
+
|
|
50
|
+
1. Goto our
|
|
51
|
+
[github workflows](https://github.com/marshmallow-insurance/campfire/actions)
|
|
52
|
+
2. Click `Bump and Publish`
|
|
53
|
+
3. Press `Run workflow` and select the `main` branch.
|
|
54
|
+
4. Wait for release!
|
|
55
|
+
|
|
56
|
+
> [!NOTE] this workflow will fail if the package version is already on the latest, so you dont have to worry about deploying the same changes multiple times.
|
|
57
|
+
|
|
58
|
+
> [!IMPORTANT] When re-using the release.config in other repos, you need to ensure that the package.json includes a repository URL.
|
|
59
|
+
|
|
60
|
+
#### Pre-Releases
|
|
61
|
+
|
|
62
|
+
Not too different to your usual workflow!
|
|
63
|
+
|
|
64
|
+
1. Checkout a new branch with the prefix
|
|
65
|
+
`(feature|chore|fix)/<your-branch-name>` e.g. `feature/awesome-new-feature`
|
|
66
|
+
2. Open a PR and create your changes as normal using semantic-commits!
|
|
67
|
+
3. Goto our
|
|
68
|
+
[github workflows](https://github.com/marshmallow-insurance/campfire/actions)
|
|
69
|
+
4. Click `Bump and Publish` or `Preview Bump and Publish`
|
|
70
|
+
5. Press `Run workflow` and select `<your-full-branch-name>` branch.
|
|
71
|
+
6. Wait for release!
|
|
72
|
+
7. This can be done multiple times and it will increment your pre-release
|
|
73
|
+
package version!
|
|
74
|
+
8. When you're happy with the changes, simply squash and merge the PR and
|
|
75
|
+
release `main`!
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { RuleConfigSeverity } from '@commitlint/types';
|
|
2
2
|
export const config = {
|
|
3
3
|
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
4
|
-
ignores: [
|
|
5
|
-
(commit) => commit.startsWith('BREAKING CHANGE:'),
|
|
6
|
-
(commit) => commit.startsWith('BREAKING CHANGES:'),
|
|
7
|
-
(commit) => commit.startsWith('BREAKING-CHANGE:'),
|
|
8
|
-
(commit) => commit.startsWith('BREAKING-CHANGES:'),
|
|
9
|
-
],
|
|
4
|
+
ignores: [(commit) => /^BREAKING(?:[- ]CHANGE(?:S)?):/.test(commit)],
|
|
10
5
|
rules: {
|
|
11
6
|
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
|
|
12
7
|
'type-empty': [RuleConfigSeverity.Error, 'never'],
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default config;
|
|
2
|
+
declare const config: (import("eslint").Linter.FlatConfig | {
|
|
3
|
+
files: string[];
|
|
4
|
+
languageOptions: {
|
|
5
|
+
parser: typeof tsParser;
|
|
6
|
+
};
|
|
7
|
+
plugins: {
|
|
8
|
+
'@typescript-eslint': {
|
|
9
|
+
configs: Record<string, import("@typescript-eslint/utils/ts-eslint").ClassicConfig.Config>;
|
|
10
|
+
meta: import("@typescript-eslint/utils/ts-eslint").FlatConfig.PluginMeta;
|
|
11
|
+
rules: typeof import("@typescript-eslint/eslint-plugin/use-at-your-own-risk/rules");
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
rules: {
|
|
15
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
16
|
+
'@typescript-eslint/explicit-function-return-type': string;
|
|
17
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
18
|
+
argsIgnorePattern: string;
|
|
19
|
+
})[];
|
|
20
|
+
'no-console': string;
|
|
21
|
+
strict: string[];
|
|
22
|
+
};
|
|
23
|
+
})[];
|
|
24
|
+
import tsParser from '@typescript-eslint/parser';
|
package/dist/index.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -2,12 +2,7 @@ import { RuleConfigSeverity, UserConfig } from '@commitlint/types'
|
|
|
2
2
|
|
|
3
3
|
export const config: UserConfig = {
|
|
4
4
|
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
5
|
-
ignores: [
|
|
6
|
-
(commit: string) => commit.startsWith('BREAKING CHANGE:'),
|
|
7
|
-
(commit: string) => commit.startsWith('BREAKING CHANGES:'),
|
|
8
|
-
(commit: string) => commit.startsWith('BREAKING-CHANGE:'),
|
|
9
|
-
(commit: string) => commit.startsWith('BREAKING-CHANGES:'),
|
|
10
|
-
],
|
|
5
|
+
ignores: [(commit: string) => /^BREAKING(?:[- ]CHANGE(?:S)?):/.test(commit)],
|
|
11
6
|
rules: {
|
|
12
7
|
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
|
|
13
8
|
'type-empty': [RuleConfigSeverity.Error, 'never'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrshmllw/campfire",
|
|
3
|
-
"version": "1.0.0-crumbs-feature-adding-some-default-configs.
|
|
3
|
+
"version": "1.0.0-crumbs-feature-adding-some-default-configs.5",
|
|
4
4
|
"description": "Collection of toasty utils and configs used by Marshmallow Technology",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|