Skip to content

Commit 5ec4e4d

Browse files
committed
Updated changelog + added gulp task to autolink PRs and commits in changelog
1 parent bd44341 commit 5ec4e4d

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Prism Changelog
22

3+
## Unreleased
4+
5+
### New components
6+
7+
* __AsciiDoc__ ([#800](https://github.com/PrismJS/prism/issues/800)) [[`6803ca0`](https://github.com/PrismJS/prism/commit/6803ca0)]
8+
* __Haxe__ ([#811](https://github.com/PrismJS/prism/issues/811)) [[`bd44341`](https://github.com/PrismJS/prism/commit/bd44341)]
9+
* __Icon__ ([#803](https://github.com/PrismJS/prism/issues/803)) [[`b43c5f3`](https://github.com/PrismJS/prism/commit/b43c5f3)]
10+
* __Lua__ ([#804](https://github.com/PrismJS/prism/issues/804)) [[`a36bc4a`](https://github.com/PrismJS/prism/commit/a36bc4a)]
11+
* __Nix__ ([#795](https://github.com/PrismJS/prism/issues/795)) [[`9b275c8`](https://github.com/PrismJS/prism/commit/9b275c8)]
12+
* __Oz__ ([#805](https://github.com/PrismJS/prism/issues/805)) [[`388c53f`](https://github.com/PrismJS/prism/commit/388c53f)]
13+
* __PARI/GP__ ([#802](https://github.com/PrismJS/prism/issues/802)) [[`253c035`](https://github.com/PrismJS/prism/commit/253c035)]
14+
* __Parser__ ([#808](https://github.com/PrismJS/prism/issues/808)) [[`a953b3a`](https://github.com/PrismJS/prism/commit/a953b3a)]
15+
16+
### Updated components
17+
18+
* __C__:
19+
* Highlight directives in preprocessor lines ([#801](https://github.com/PrismJS/prism/issues/801)) [[`ad316a3`](https://github.com/PrismJS/prism/commit/ad316a3)]
20+
* __C#__:
21+
* Highlight directives in preprocessor lines ([#801](https://github.com/PrismJS/prism/issues/801)) [[`ad316a3`](https://github.com/PrismJS/prism/commit/ad316a3)]
22+
* Fix detection of float numbers ([#806](https://github.com/PrismJS/prism/issues/806)) [[`1dae72b`](https://github.com/PrismJS/prism/commit/1dae72b)]
23+
* __F#__:
24+
* Highlight directives in preprocessor lines ([#801](https://github.com/PrismJS/prism/issues/801)) [[`ad316a3`](https://github.com/PrismJS/prism/commit/ad316a3)]
25+
* __JavaScript__:
26+
* Highlight true and false as booleans ([#801](https://github.com/PrismJS/prism/issues/801)) [[`ad316a3`](https://github.com/PrismJS/prism/commit/ad316a3)]
27+
28+
### New plugins
29+
30+
* __Previewer: Time__ ([#790](https://github.com/PrismJS/prism/issues/790)) [[`88173de`](https://github.com/PrismJS/prism/commit/88173de)]
31+
* __Previewer: Angle__ ([#791](https://github.com/PrismJS/prism/issues/791)) [[`a434c86`](https://github.com/PrismJS/prism/commit/a434c86)]
32+
33+
### Other changes
34+
35+
* Increase mocha's timeout [[`f1c41db`](https://github.com/PrismJS/prism/commit/f1c41db)]
36+
* Prevent most errors in IE8. Fix #9 [[`9652d75`](https://github.com/PrismJS/prism/commit/9652d75)]
37+
* Add U.S. Web Design Standards on homepage. Fix #785 [[`e10d48b`](https://github.com/PrismJS/prism/commit/e10d48b), [`79ebbf8`](https://github.com/PrismJS/prism/commit/79ebbf8), [`2f7088d`](https://github.com/PrismJS/prism/commit/2f7088d)]
38+
339
## 1.2.0 (2015-10-07)
440

541
### New components

gulpfile.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ var gulp = require('gulp'),
1919
],
2020
plugins: ['plugins/**/*.js', '!plugins/**/*.min.js'],
2121
showLanguagePlugin: 'plugins/show-language/prism-show-language.js',
22-
autoloaderPlugin: 'plugins/autoloader/prism-autoloader.js'
22+
autoloaderPlugin: 'plugins/autoloader/prism-autoloader.js',
23+
changelog: 'CHANGELOG.md'
2324
};
2425

2526
gulp.task('components', function() {
@@ -113,4 +114,19 @@ gulp.task('languages-plugins', function (cb) {
113114
});
114115
});
115116

117+
gulp.task('changelog', function (cb) {
118+
return gulp.src(paths.changelog)
119+
.pipe(replace(
120+
/\(#(\d+)\)/g,
121+
'([#$1](https://github.com/PrismJS/prism/issues/$1))'
122+
))
123+
.pipe(replace(
124+
/\[[\da-f]+(?:, *[\da-f]+)*\]/g,
125+
function (match) {
126+
return match.replace(/([\da-f]+)/g, '[`$1`](https://github.com/PrismJS/prism/commit/$1)');
127+
}
128+
))
129+
.pipe(gulp.dest('.'));
130+
});
131+
116132
gulp.task('default', ['components', 'plugins', 'build']);

0 commit comments

Comments
 (0)