Skip to content

Commit ad713ff

Browse files
Merge pull request #29 from JaKXz/chore/changelog-and-versioning
Add gulp changelog and better versioning commands :)
2 parents 840f35b + bf31069 commit ad713ff

File tree

4 files changed

+71
-21
lines changed

4 files changed

+71
-21
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<a name="0.2.2"></a>
2+
## [0.2.2](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.2.1...0.2.2) (2015-10-07)
3+
4+
5+
### Bug Fixes
6+
7+
* **callbacks:** fix callbacks using ES6 ([1f29a74](https://github.com/softmonkeyjapan/angular-google-picker/commit/1f29a74))
8+
9+
10+
11+
<a name="0.2.1"></a>
12+
## [0.2.1](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.2.0...0.2.1) (2015-06-25)
13+
14+
15+
### Bug Fixes
16+
17+
* **callbacks:** improve support for cancel, picked and loaded callback (resolve #13) ([fad944b](https://github.com/softmonkeyjapan/angular-google-picker/commit/fad944b)), closes [#13](https://github.com/softmonkeyjapan/angular-google-picker/issues/13)
18+
19+
20+
21+
<a name="0.2.0"></a>
22+
# [0.2.0](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.1.4...0.2.0) (2015-05-23)
23+
24+
25+
26+
<a name="0.1.4"></a>
27+
## [0.1.4](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.1.3...0.1.4) (2015-05-17)
28+
29+
30+
31+
<a name="0.1.2"></a>
32+
## [0.1.2](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.1.1...0.1.2) (2014-11-06)
33+
34+
35+
36+
<a name="0.1.1"></a>
37+
## [0.1.1](https://github.com/softmonkeyjapan/angular-google-picker/compare/0.1.0...0.1.1) (2014-10-07)
38+
39+
40+
41+
<a name="0.1.0"></a>
42+
# 0.1.0 (2014-09-28)

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
angular-google-picker
22
=====================
33

4-
[![npm version](https://badge.fury.io/js/angular-google-picker.svg)](http://badge.fury.io/js/angular-google-picker) [![Bower version](https://badge.fury.io/bo/angular-google-picker.svg)](http://badge.fury.io/bo/angular-google-picker) [![Coverage Status](https://coveralls.io/repos/github/softmonkeyjapan/angular-google-picker/badge.svg?branch=master)](https://coveralls.io/github/softmonkeyjapan/angular-google-picker?branch=master)
4+
[![npm version](https://badge.fury.io/js/angular-google-picker.svg)](http://badge.fury.io/js/angular-google-picker)
5+
[![Bower version](https://badge.fury.io/bo/angular-google-picker.svg)](http://badge.fury.io/bo/angular-google-picker)
6+
[![Coverage Status](https://coveralls.io/repos/github/softmonkeyjapan/angular-google-picker/badge.svg?branch=master)](https://coveralls.io/github/softmonkeyjapan/angular-google-picker?branch=master)
57
[![Build Status](https://travis-ci.org/softmonkeyjapan/angular-google-picker.svg?branch=master)](https://travis-ci.org/softmonkeyjapan/angular-google-picker)
8+
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
69

710
Angular directive that interact with the Google Picker API :
811
* [Google Picker API Overview](https://developers.google.com/picker/)
@@ -13,7 +16,7 @@ Angular directive that interact with the Google Picker API :
1316
**File Size:** 2.1Kb minified
1417

1518

16-
# Installation
19+
## Installation
1720

1821
1. Using Bower (recommended)
1922

@@ -32,7 +35,7 @@ Angular directive that interact with the Google Picker API :
3235
Download [https://github.com/softmonkeyjapan/angular-google-picker/archive/0.2.2.zip](https://github.com/softmonkeyjapan/angular-google-picker/archive/0.2.2.zip)
3336

3437

35-
# Usage
38+
## Usage
3639

3740
1. Include Google client and api script in your layout
3841

@@ -106,7 +109,7 @@ Every file is a json object that looks like :
106109
```
107110

108111

109-
# Configuration
112+
## Configuration
110113

111114
In order to work, Google Picker needs to connect to the Google API using an application credentials (Api Key and client ID). For more information on how to create an application/project, please refer to [https://developers.google.com/drive/web/](https://developers.google.com/drive/web/). To do so, you'll need to configure the service.
112115

@@ -129,7 +132,7 @@ angular.module('myApp', ['lk-google-picker'])
129132
}])
130133
```
131134

132-
### Features
135+
## Features
133136

134137
The Picker use the concept of views and features that allow you to customize it. The service provider allow you to enable some features to the Picker the same way you define your API Key or client ID (using either configure or setters).
135138

@@ -180,11 +183,11 @@ angular.module('myApp', ['lk-google-picker'])
180183
Please refer to [https://developers.google.com/picker/docs/reference](https://developers.google.com/picker/docs/reference) for more informations.
181184

182185

183-
# Callbacks
186+
## Callbacks
184187

185188
The directive provide you 3 callbacks that you can use in order to work with the Picker.
186189

187-
### onLoaded
190+
### `onLoaded`
188191

189192
This callback is triggered after the picker has been initialized and shown on the page.
190193

@@ -202,7 +205,7 @@ angular.module('myApp', ['lk-google-picker'])
202205
<a href="javascript:;" lk-google-picker on-loaded="onLoaded()">Open my Google Drive</a>
203206
```
204207

205-
### onPicked
208+
### `onPicked`
206209

207210
This callback is triggered after you select files and click on the `select` button from the Picker.
208211

@@ -220,7 +223,7 @@ angular.module('myApp', ['lk-google-picker'])
220223
<a href="javascript:;" lk-google-picker on-picked="onPicked">Open my Google Drive</a>
221224
```
222225

223-
### onCancel
226+
### `onCancel`
224227

225228
This callback is triggered after the picker has been closed by clicking on the cancel button from the picker.
226229

@@ -238,7 +241,7 @@ angular.module('myApp', ['lk-google-picker'])
238241
<a href="javascript:;" lk-google-picker on-cancel="onCancel">Open my Google Drive</a>
239242
```
240243

241-
# Example
244+
## Demo
242245

243246
The demo version available at [http://softmonkeyjapan.github.io/angular-google-picker/](http://softmonkeyjapan.github.io/angular-google-picker/) can be found in the `example` folder.
244247
You will need a server in order to try it on your local machine. Since the Google Picker demo application is setup to allow origin from localhost:8000, I encourage you to use the python `SimpleHTTPServer` :
@@ -251,11 +254,5 @@ Serving HTTP on 0.0.0.0 port 8000 ...
251254

252255
You should now be able to browse to `localhost:8000` and see it in action from your localhost.
253256

254-
255-
# Demo
256-
257-
A demo version is available at [http://softmonkeyjapan.github.io/angular-google-picker/](http://softmonkeyjapan.github.io/angular-google-picker/).
258-
259-
260-
# License
257+
## License
261258
Licensed under the MIT license

gulpfile.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ var gulp = require('gulp');
22
var KarmaServer = require('karma').Server;
33
var uglify = require('gulp-uglify');
44
var rename = require('gulp-rename');
5+
var conventionalChangelog = require('gulp-conventional-changelog');
6+
7+
gulp.task('default', ['watch']);
58

69
// Copy non-uglify version to "dist"
710
gulp.task('copy', ['test'], function () {
@@ -30,4 +33,10 @@ gulp.task('watch', function () {
3033
gulp.watch('test/**/*.spec.js', ['test']);
3134
});
3235

33-
gulp.task('default', ['watch']);
36+
gulp.task('changelog', function () {
37+
return gulp.src('CHANGELOG.md', {buffer: false})
38+
.pipe(conventionalChangelog({
39+
preset: 'angular'
40+
}))
41+
.pipe(gulp.dest('.'));
42+
});

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"author": "Loic Kartono <contact@kartono-loic.com> (http://www.kartono-loic.com)",
66
"scripts": {
77
"postinstall": "bower install",
8-
"prepublish": "npm test",
98
"pretest": "rimraf coverage/",
10-
"test": "gulp test"
9+
"test": "gulp test",
10+
"preversion": "npm test",
11+
"postversion": "gulp changelog && git commit -a --amend --no-edit && npm publish"
1112
},
1213
"contributors": [
1314
{
@@ -20,10 +21,11 @@
2021
"coveralls": "^2.11.9",
2122
"cz-conventional-changelog": "^1.1.6",
2223
"gulp": "^3.8.8",
24+
"gulp-conventional-changelog": "^1.1.0",
2325
"gulp-rename": "^1.2.0",
2426
"gulp-uglify": "^1.0.1",
2527
"jasmine-core": "^2.4.1",
26-
"karma": "^0.13.22",
28+
"karma": "^1.1.0",
2729
"karma-coverage": "^1.0.0",
2830
"karma-jasmine": "^1.0.2",
2931
"karma-phantomjs-launcher": "^1.0.0",

0 commit comments

Comments
 (0)