Skip to content
Permalink
Browse files

chore(generic): make the changelog link to the relevent commits

  • Loading branch information
MarshallOfSound authored and malept committed Dec 11, 2016
1 parent 9a3854f commit ee6a7d8607a3a7171fcd2776f3bfc82a10dc756a
Showing with 60 additions and 46 deletions.
  1. +43 −43 CHANGELOG.md
  2. +14 −0 ci/fix-changelog.js
  3. +3 −3 package.json
@@ -1,100 +1,100 @@
#### 0.0.9 (2016-12-11)
#### [0.0.9](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.9) (2016-12-11)

##### Documentation Changes

* **packager:** document the require mapping of the hooks (87fb6aa6)
* **packager:** document the require mapping of the hooks ([87fb6aa6](https://github.com/marshallofsound/electron-forge/commit/87fb6aa6))

##### New Features

* **packager:** map afterExtract hooks to require calls (623a0001)
* **packager:** map afterExtract hooks to require calls ([623a0001](https://github.com/marshallofsound/electron-forge/commit/623a0001))

#### 0.0.8 (2016-12-11)
#### [0.0.8](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.8) (2016-12-11)

##### New Features

* **maker:** add the flatpak maker for the linux target (218518ef)
* **maker:** add the flatpak maker for the linux target ([218518ef](https://github.com/marshallofsound/electron-forge/commit/218518ef))

##### Refactors

* **packager:**
* move packager compile logic to a electron-packager afterCopy hook (c10bcd29)
* upgrade to Electron Packager 8.4.0 (with quiet option) (9ab19b5f)
* move packager compile logic to a electron-packager afterCopy hook ([c10bcd29](https://github.com/marshallofsound/electron-forge/commit/c10bcd29))
* upgrade to Electron Packager 8.4.0 (with quiet option) ([9ab19b5f](https://github.com/marshallofsound/electron-forge/commit/9ab19b5f))

#### 0.0.7 (2016-12-11)
#### [0.0.7](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.7) (2016-12-11)

##### Documentation Changes

* **generic:**
* tweak the readme (c6ededf6)
* update readme (f03ffeb5)
* tweak the readme ([c6ededf6](https://github.com/marshallofsound/electron-forge/commit/c6ededf6))
* update readme ([f03ffeb5](https://github.com/marshallofsound/electron-forge/commit/f03ffeb5))

##### Bug Fixes

* **starter:** pass through env to started application (834729fb)
* **maker:** spawn the zip command in the containing directory (e909a0c4)
* **initializer:** add electron-compile to the prod dependencies of the initialized app (5a56efb9)
* **starter:** pass through env to started application ([834729fb](https://github.com/marshallofsound/electron-forge/commit/834729fb))
* **maker:** spawn the zip command in the containing directory ([e909a0c4](https://github.com/marshallofsound/electron-forge/commit/e909a0c4))
* **initializer:** add electron-compile to the prod dependencies of the initialized app ([5a56efb9](https://github.com/marshallofsound/electron-forge/commit/5a56efb9))

#### 0.0.6 (2016-12-11)
#### [0.0.6](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.6) (2016-12-11)

##### Chores

* **tests:**
* run different package installers in different Travis workers (028bcfbf)
* run Travis with OSX and Linux workers (9d1b0291)
* run different package installers in different Travis workers ([028bcfbf](https://github.com/marshallofsound/electron-forge/commit/028bcfbf))
* run Travis with OSX and Linux workers ([9d1b0291](https://github.com/marshallofsound/electron-forge/commit/9d1b0291))

##### Documentation Changes

* **README:**
* fix license badge url (026141c0)
* add badges to the readme (f912c24f)
* **LICENSE:** add a license file (89ada6e9)
* fix license badge url ([026141c0](https://github.com/marshallofsound/electron-forge/commit/026141c0))
* add badges to the readme ([f912c24f](https://github.com/marshallofsound/electron-forge/commit/f912c24f))
* **LICENSE:** add a license file ([89ada6e9](https://github.com/marshallofsound/electron-forge/commit/89ada6e9))

##### New Features

* **maker:**
* add the rpm maker for the linux target (85821f27)
* add the deb maker for the linux target (5c5ce67a)
* add the dmg maker for the darwin target (aaceb3f2)
* **build:** add git-cz for semantic versioned commits (cdbc78b6)
* add the rpm maker for the linux target ([85821f27](https://github.com/marshallofsound/electron-forge/commit/85821f27))
* add the deb maker for the linux target ([5c5ce67a](https://github.com/marshallofsound/electron-forge/commit/5c5ce67a))
* add the dmg maker for the darwin target ([aaceb3f2](https://github.com/marshallofsound/electron-forge/commit/aaceb3f2))
* **build:** add git-cz for semantic versioned commits ([cdbc78b6](https://github.com/marshallofsound/electron-forge/commit/cdbc78b6))

##### Bug Fixes

* **maker:**
* add a santizied app id to the electronWinstaller config on init (20ae889e)
* move electron-installer-debian to optional deps so that installs work on windows (661b1eb6)
* correct path/arch of generated deb file (63ff52b2)
* **generic:** fix package.json warning about repository (f21a87aa)
* **packager:** throw error when electron-prebuilt-compile is not found (23449956)
* add a santizied app id to the electronWinstaller config on init ([20ae889e](https://github.com/marshallofsound/electron-forge/commit/20ae889e))
* move electron-installer-debian to optional deps so that installs work on windows ([661b1eb6](https://github.com/marshallofsound/electron-forge/commit/661b1eb6))
* correct path/arch of generated deb file ([63ff52b2](https://github.com/marshallofsound/electron-forge/commit/63ff52b2))
* **generic:** fix package.json warning about repository ([f21a87aa](https://github.com/marshallofsound/electron-forge/commit/f21a87aa))
* **packager:** throw error when electron-prebuilt-compile is not found ([23449956](https://github.com/marshallofsound/electron-forge/commit/23449956))

##### Refactors

* **maker:**
* DRY up app name (f5ae494f)
* add packageJSON to the function arguments (e8e1054a)
* create ensure{Directory,File} to rimraf+mkdirp the given output (b3b616a0)
* DRY up app name ([f5ae494f](https://github.com/marshallofsound/electron-forge/commit/f5ae494f))
* add packageJSON to the function arguments ([e8e1054a](https://github.com/marshallofsound/electron-forge/commit/e8e1054a))
* create ensure{Directory,File} to rimraf+mkdirp the given output ([b3b616a0](https://github.com/marshallofsound/electron-forge/commit/b3b616a0))
* **generic:**
* add debug calls to the linter (3e116109)
* add the 'debug' module for standard debug logging (9f4c0b49)
* add debug calls to the linter ([3e116109](https://github.com/marshallofsound/electron-forge/commit/3e116109))
* add the 'debug' module for standard debug logging ([9f4c0b49](https://github.com/marshallofsound/electron-forge/commit/9f4c0b49))
* **packager:**
* remove stray log (f4f36b59)
* move the electron-packager dependency to forge instead of the users module (2e695c21)
* remove stray log ([f4f36b59](https://github.com/marshallofsound/electron-forge/commit/f4f36b59))
* move the electron-packager dependency to forge instead of the users module ([2e695c21](https://github.com/marshallofsound/electron-forge/commit/2e695c21))

##### Code Style Changes

* **generic:**
* disable some eslint rules that don't make sense in a CLI tool (f1f06acf)
* change eslint rules to allow strange linebreaks (4b7a22e3)
* disable some eslint rules that don't make sense in a CLI tool ([f1f06acf](https://github.com/marshallofsound/electron-forge/commit/f1f06acf))
* change eslint rules to allow strange linebreaks ([4b7a22e3](https://github.com/marshallofsound/electron-forge/commit/4b7a22e3))

##### Tests

* **resolve-dir:** add a fixture that is actually an electron-forge package.json file (e0e712dd)
* **resolve-dir:** add a fixture that is actually an electron-forge package.json file ([e0e712dd](https://github.com/marshallofsound/electron-forge/commit/e0e712dd))

#### 0.0.5 (2016-12-11)
#### [0.0.5](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.5) (2016-12-11)

#### 0.0.4 (2016-12-11)
#### [0.0.4](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.4) (2016-12-11)

#### 0.0.3 (2016-12-11)
#### [0.0.3](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.3) (2016-12-11)

#### 0.0.2 (2016-12-11)
#### [0.0.2](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.2) (2016-12-11)

#### 0.0.1 (2016-12-11)
#### [0.0.1](https://github.com/MarshallOfSound/electron-forge/releases/tag/v0.0.1) (2016-12-11)
@@ -0,0 +1,14 @@
const fs = require('fs');
const path = require('path');

const changelogPath = path.resolve(__dirname, '..', 'CHANGELOG.md');

const changelog = fs.readFileSync(changelogPath, 'utf8');

const fixedChangelog = changelog.replace(/\(([A-Za-z0-9]{8})\)/g,
(match, commitID) => `([${commitID}](https://github.com/marshallofsound/electron-forge/commit/${commitID}))`
).replace(/#### ([0-9]+\.[0-9]+\.[0-9]+) /g,
(match, version) => `#### [${version}](https://github.com/MarshallOfSound/electron-forge/releases/tag/v${version}) `
);

fs.writeFileSync(changelogPath, fixedChangelog);
@@ -15,9 +15,9 @@
"lint": "eslint src test",
"prepublish": "npm run build",
"test": "npm run lint && mocha test --compilers js:babel-register --timeout=300000",
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
"release:minor": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:major": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:patch": "changelog -p && node ci/fix-changelog.js && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
"release:minor": "changelog -m && node ci/fix-changelog.js && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:major": "changelog -M && node ci/fix-changelog.js && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"watch": "gulp watch"
},
"author": "Samuel Attard",

0 comments on commit ee6a7d8

Please sign in to comment.
You can’t perform that action at this time.