Skip to content

Commit 29ced87

Browse files
author
bozdoz
committed
v2.9.0 - Updating changelog; update version to v2.9.0; added release bash script for automating releases (WIP)
1 parent 19b779a commit 29ced87

File tree

7 files changed

+66
-7
lines changed

7 files changed

+66
-7
lines changed

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## Release History
22

3+
* **v2.9.0** - 2018-04-23
4+
- Added @bozdoz as Author
5+
- Fixed scroll positions when parent element is scrollable
6+
- Added DOM Event helper function and _stamp to uniquely identify objects and intro instances; fixes issues with removing event listeners
7+
- Added new syntax for radial gradients
8+
- Fixes to CSP violations to avoid using `setAttribute`
9+
- Fix to intro groups from PR #80 (also PR #763)
10+
- optional `buttonClass` option to overwrite 'introjs-button'
11+
- Added `onskip` callback
12+
313
* **v2.9.0-alpha.1** - 2017-12-02
414
- Supporting scroll option `off`
515
- Improved accuracy of tooltip positions

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "intro.js",
33
"repo": "usablica/intro.js",
44
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
5-
"version": "2.9.0-alpha.1",
5+
"version": "2.9.0",
66
"main": "intro.js",
77
"scripts": [
88
"intro.js"

intro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Intro.js v2.9.0-alpha.1
2+
* Intro.js v2.9.0
33
* https://github.com/usablica/intro.js
44
*
55
* Copyright (C) 2017 Afshin Mehrabani (@afshinmeh)
@@ -32,7 +32,7 @@
3232
}
3333
})(function () {
3434
//Default config/variables
35-
var VERSION = '2.9.0-alpha.1';
35+
var VERSION = '2.9.0';
3636

3737
/**
3838
* IntroJs main class

minified/intro.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "intro.js",
33
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
4-
"version": "2.9.0-alpha.1",
4+
"version": "2.9.0",
55
"author": "Afshin Mehrabani <[email protected]>",
66
"homepage": "http://introjs.com",
77
"repository": {
@@ -11,7 +11,8 @@
1111
"scripts": {
1212
"test": "npm run test:jshint",
1313
"test:jshint": "jshint ./intro.js",
14-
"minify": "for file in ./intro*; do NAME=$(basename $file) && minify $file > ./minified/${NAME%.*}.min.${NAME#*.}; done"
14+
"minify": "for file in ./intro*; do NAME=$(basename $file) && minify $file > ./minified/${NAME%.*}.min.${NAME#*.}; done",
15+
"release": "./release.sh || true"
1516
},
1617
"devDependencies": {
1718
"jshint": "^2.9.5",

release.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
#
4+
# Script for releasing new versions
5+
# Handles version updating and publishing to:
6+
# - GitHub
7+
#
8+
# TODO:
9+
# - Publish to npm
10+
# - Publish to bower
11+
#
12+
13+
# check package version
14+
VERSION=$(node --eval "console.log(require('./package.json').version);")
15+
16+
LAST=$(git describe --abbrev=0)
17+
18+
if [[ v$VERSION == $LAST ]]; then
19+
echo "Update version in package.json!"
20+
exit 1
21+
fi
22+
23+
# check javascript version
24+
VERSION=$(node --eval "console.log(require('./intro.js').version);")
25+
26+
if [[ v$VERSION == $LAST ]]; then
27+
echo "Update version in ./intro.js!"
28+
exit 1
29+
fi
30+
31+
npm test || exit 1
32+
npm run minify
33+
34+
echo "New Version: $LAST => v$VERSION"
35+
echo "---"
36+
echo "Add a comment?"
37+
read comment
38+
39+
if [[ $comment ]]; then
40+
git commit -am "v$VERSION - $comment"
41+
git tag -a v$VERSION -m "$comment" -f
42+
else
43+
git commit -am "v$VERSION"
44+
git tag v$VERSION -f
45+
fi
46+
47+
git push --tags -f
48+
git push

0 commit comments

Comments
 (0)