Skip to content

Commit

Permalink
chore: moved the semantic-release-preset to a new repo
Browse files Browse the repository at this point in the history
Signed-off-by: prisis <[email protected]>
  • Loading branch information
prisis committed May 23, 2024
1 parent c3a8140 commit 5ce427e
Show file tree
Hide file tree
Showing 20 changed files with 1,147 additions and 2,246 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
packages/semantic-release-preset/commitlint.config.js
packages/semantic-release-preset/.czrc
packages/prettier-config/.prettierrc.js
packages/textlint-config/.textlintrc
packages/babel-preset/babel.config.js
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ common/autoinstallers/*/.npmrc

.textlintcache

/packages/semantic-release-preset/commitlint.config.js
/packages/semantic-release-preset/.czrc
/packages/prettier-config/.prettierignore
/packages/prettier-config/.prettierrc.js
/packages/textlint-config/.textlintignore
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Check the README for each configuration within the `packages` directory for spec
| - | [package-json-utils](https://github.com/anolilab/javascript-style-guide/blob/main/packages/package-json-utils/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/package-json-utils?style=flat-square&labelColor=292a44&color=663399&label=v) | Shared utilities for parsing information from a package.json file. |
| [lint-staged](https://github.com/okonet/lint-staged) | [lint-staged-config](https://github.com/anolilab/javascript-style-guide/blob/main/packages/lint-staged-config/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/lint-staged-config?style=flat-square&labelColor=292a44&color=663399&label=v) | Run linters on git staged files. |
| [prettier](https://github.com/prettier/prettier) | [prettier-config](https://github.com/anolilab/javascript-style-guide/blob/main/packages/prettier-config/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/prettier-config?style=flat-square&labelColor=292a44&color=663399&label=v) | Prettier is an opinionated code formatter. |
| [semantic-release](https://github.com/semantic-release/semantic-release) | [semantic-release-preset](https://github.com/anolilab/javascript-style-guide/blob/main/packages/semantic-release-preset/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/semantic-release-preset?style=flat-square&labelColor=292a44&color=663399&label=v) | semantic-release is a fully automated version management and package publishing library |
| [semantic-release](https://github.com/semantic-release/semantic-release) | [semantic-release-preset](https://github.com/anolilab/semantic-release/blob/main/packages/semantic-release-preset/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/semantic-release-preset?style=flat-square&labelColor=292a44&color=663399&label=v) | semantic-release is a fully automated version management and package publishing library |
| [stylelint](https://stylelint.io) | [stylelint-config](https://github.com/anolilab/javascript-style-guide/blob/main/packages/stylelint-config/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/stylelint-config?style=flat-square&labelColor=292a44&color=663399&label=v) | Linter that helps you avoid errors and enforce conventions in your styles |
| [textlint](https://github.com/textlint/textlint) | [textlint-config](https://github.com/anolilab/javascript-style-guide/blob/main/packages/textlint-config/README.md) | ![npm](https://img.shields.io/npm/v/@anolilab/textlint-config?style=flat-square&labelColor=292a44&color=663399&label=v) | The pluggable natural language linter for text and markdown. |

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"clean": "nx run-many --target=clean && rimraf node_modules",
"preinstall": "node verify-node-version.cjs",
"postinstall": "is-ci || husky install || exit 0",
"lint:eslint": "eslint -c ./.eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages",
"lint:eslint:fix": "eslint -c ./.eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages --fix",
"lint:eslint": "eslint -c .eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages",
"lint:eslint:fix": "eslint -c .eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages --fix",
"lint:prettier:root": "prettier --config=.prettierrc.js --check '*.{json,yml,yaml,js,ts}'",
"lint:prettier:root:fix": "prettier --config=.prettierrc.js --write '*.{json,yml,yaml,js,ts}'",
"lint:secrets": "secretlint **/*",
Expand Down
16 changes: 8 additions & 8 deletions packages/package-json-utils/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ describe("package-json-utils", () => {
});

expect(consoleMock).toHaveBeenCalledTimes(1);
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("example could not find the following packages"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package1"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package2"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("example could not find the following packages"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package1"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package2"));

consoleMock.mockRestore();
},
Expand All @@ -152,11 +152,11 @@ describe("package-json-utils", () => {
});

expect(consoleMock).toHaveBeenCalledTimes(1);
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("pre message"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("example could not find the following packages"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package1"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package2"));
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("post message"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("pre message"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("example could not find the following packages"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package1"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package2"));
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("post message"));

consoleMock.mockRestore();
});
Expand Down
8 changes: 0 additions & 8 deletions packages/semantic-release-preset/.npmignore

This file was deleted.

45 changes: 0 additions & 45 deletions packages/semantic-release-preset/.releaserc.json

This file was deleted.

Loading

0 comments on commit 5ce427e

Please sign in to comment.