Skip to content

Commit 5ce427e

Browse files
committed
chore: moved the semantic-release-preset to a new repo
Signed-off-by: prisis <[email protected]>
1 parent c3a8140 commit 5ce427e

20 files changed

+1147
-2246
lines changed

.eslintignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
packages/semantic-release-preset/commitlint.config.js
2-
packages/semantic-release-preset/.czrc
31
packages/prettier-config/.prettierrc.js
42
packages/textlint-config/.textlintrc
53
packages/babel-preset/babel.config.js

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ common/autoinstallers/*/.npmrc
122122

123123
.textlintcache
124124

125-
/packages/semantic-release-preset/commitlint.config.js
126-
/packages/semantic-release-preset/.czrc
127125
/packages/prettier-config/.prettierignore
128126
/packages/prettier-config/.prettierrc.js
129127
/packages/textlint-config/.textlintignore

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Check the README for each configuration within the `packages` directory for spec
3333
| - | [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. |
3434
| [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. |
3535
| [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. |
36-
| [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 |
36+
| [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 |
3737
| [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 |
3838
| [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. |
3939

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"clean": "nx run-many --target=clean && rimraf node_modules",
6060
"preinstall": "node verify-node-version.cjs",
6161
"postinstall": "is-ci || husky install || exit 0",
62-
"lint:eslint": "eslint -c ./.eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages",
63-
"lint:eslint:fix": "eslint -c ./.eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages --fix",
62+
"lint:eslint": "eslint -c .eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages",
63+
"lint:eslint:fix": "eslint -c .eslintrc.js --ext js,cjs,mjs,ts,tsx,json,yaml,yml,md,mdx ./packages --fix",
6464
"lint:prettier:root": "prettier --config=.prettierrc.js --check '*.{json,yml,yaml,js,ts}'",
6565
"lint:prettier:root:fix": "prettier --config=.prettierrc.js --write '*.{json,yml,yaml,js,ts}'",
6666
"lint:secrets": "secretlint **/*",

packages/package-json-utils/__tests__/index.test.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ describe("package-json-utils", () => {
135135
});
136136

137137
expect(consoleMock).toHaveBeenCalledTimes(1);
138-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("example could not find the following packages"));
139-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package1"));
140-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package2"));
138+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("example could not find the following packages"));
139+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package1"));
140+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package2"));
141141

142142
consoleMock.mockRestore();
143143
},
@@ -152,11 +152,11 @@ describe("package-json-utils", () => {
152152
});
153153

154154
expect(consoleMock).toHaveBeenCalledTimes(1);
155-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("pre message"));
156-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("example could not find the following packages"));
157-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package1"));
158-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("package2"));
159-
expect(consoleMock).toHaveBeenCalledWith(expect.stringContaining("post message"));
155+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("pre message"));
156+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("example could not find the following packages"));
157+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package1"));
158+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("package2"));
159+
expect(consoleMock).toHaveBeenCalledWithExactlyOnceWith(expect.stringContaining("post message"));
160160

161161
consoleMock.mockRestore();
162162
});

packages/semantic-release-preset/.npmignore

-8
This file was deleted.

packages/semantic-release-preset/.releaserc.json

-45
This file was deleted.

0 commit comments

Comments
 (0)