Skip to content

Commit 047dc8f

Browse files
committedJul 31, 2018
Build: switch to release script package
1 parent bc33780 commit 047dc8f

File tree

4 files changed

+21
-106
lines changed

4 files changed

+21
-106
lines changed
 

‎CONTRIBUTING.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Thanks for contributing!
77
```bash
88
git clone https://github.com/prettier/eslint-plugin-prettier.git
99
cd eslint-plugin-prettier
10-
npm install
10+
yarn # or `npm install`
1111
```
1212

1313
## Running the tests
@@ -20,12 +20,16 @@ This is an [ESLint](http://eslint.org) plugin. Documentation for the APIs that i
2020

2121
This plugin is used to lint itself. The style is checked when `npm test` is run, and the build will fail if there are any linting errors. You can use `npm run lint -- --fix` to fix some linting errors. To run the tests without running the linter, you can use `node_modules/.bin/mocha`.
2222

23+
## Commit messages
24+
25+
Commit messages should start with one of the following prefixes: `Breaking:`, `New:`, `Update:`, `Fix:`, `Docs:`, `Build:`, `Upgrade:`, `Chore:`. These prefixes are automatically used to determine the release type when generating a release, as described [here](https://github.com/not-an-aardvark/node-release-script/tree/5f5ed3fdfbb584f2e940daab1e2ad948b186410a#what-does-it-do).
26+
2327
## Publishing
2428

2529
```bash
26-
node build/release.js
30+
npm run generate-release
2731
git push --follow-tags
2832
npm publish
2933
```
3034

31-
`build/release.js` will generate a commit and tag like https://github.com/prettier/eslint-plugin-prettier/commit/56873bf2.
35+
`npm run generate-release` will autogenerate a commit, changelog entry, and git tag like https://github.com/prettier/eslint-plugin-prettier/commit/56873bf2.

‎build/release.js

-102
This file was deleted.

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"main": "eslint-plugin-prettier.js",
1616
"scripts": {
1717
"lint": "eslint .",
18-
"test": "npm run lint && mocha"
18+
"test": "npm run lint && mocha",
19+
"generate-release": "node-release-script"
1920
},
2021
"repository": {
2122
"type": "git",
@@ -33,6 +34,7 @@
3334
"prettier": ">= 0.11.0"
3435
},
3536
"devDependencies": {
37+
"@not-an-aardvark/node-release-script": "^0.1.0",
3638
"eslint": "^3.14.1",
3739
"eslint-config-not-an-aardvark": "^2.0.0",
3840
"eslint-config-prettier": "^1.3.0",

‎yarn.lock

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# yarn lockfile v1
33

44

5+
"@not-an-aardvark/node-release-script@^0.1.0":
6+
version "0.1.0"
7+
resolved "https://registry.yarnpkg.com/@not-an-aardvark/node-release-script/-/node-release-script-0.1.0.tgz#bfd4426239365b0dba0a7e9934f365123e915b76"
8+
dependencies:
9+
moment "^2.18.1"
10+
semver "^5.4.1"
11+
512
acorn-jsx@^3.0.0:
613
version "3.0.1"
714
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b"
@@ -876,6 +883,10 @@ semver@5.3.0, semver@^5.3.0:
876883
version "5.3.0"
877884
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
878885

886+
semver@^5.4.1:
887+
version "5.5.0"
888+
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
889+
879890
shelljs@^0.7.5:
880891
version "0.7.7"
881892
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1"

0 commit comments

Comments
 (0)
Please sign in to comment.