@mrshmllw/campfire 1.0.0-crumbs-feature-adding-some-default-configs.3 → 1.0.0-crumbs-feature-adding-some-default-configs.4

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 CHANGED
@@ -1 +1,75 @@
1
- # campfire
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`!
@@ -0,0 +1,3 @@
1
+ import { UserConfig } from '@commitlint/types';
2
+ export declare const config: UserConfig;
3
+ export default config;
@@ -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';
@@ -0,0 +1,5 @@
1
+ export default config;
2
+ declare const config: {
3
+ '*.+(js|ts|tsx)': string[];
4
+ '**/*.+(js|json|ts|tsx)': string[];
5
+ };
@@ -0,0 +1,8 @@
1
+ export default config;
2
+ declare namespace config {
3
+ let bracketSpacing: boolean;
4
+ let proseWrap: string;
5
+ let semi: boolean;
6
+ let singleQuote: boolean;
7
+ let trailingComma: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ export default config;
2
+ /**
3
+ * @type {import('semantic-release').GlobalConfig}
4
+ */
5
+ declare const config: import("semantic-release").GlobalConfig;
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",
3
+ "version": "1.0.0-crumbs-feature-adding-some-default-configs.4",
4
4
  "description": "Collection of toasty utils and configs used by Marshmallow Technology",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,7 +3,15 @@
3
3
  "compilerOptions": {
4
4
  "rootDir": "libs",
5
5
  "baseUrl": "libs",
6
- "outDir": "./dist"
6
+ "outDir": "./dist",
7
+ "declaration": true,
8
+ "declarationDir": "./dist"
9
+ },
10
+ "exports": {
11
+ "./configs": {
12
+ "import": "./dist/configs/*",
13
+ "types": "./dist/configs/*"
14
+ }
7
15
  },
8
16
  "exclude": [
9
17
  "release.config.js",