chore(build): Add grunt-bump and changelog
This commit is contained in:
Родитель
ff041cbb96
Коммит
6716852628
|
@ -1,7 +1,6 @@
|
|||
Glen Mailer
|
||||
Peter deHaan
|
||||
Shane Tomlinson
|
||||
Vlad Filippov
|
||||
vladikoff
|
||||
Zach Carter
|
||||
Zachary Carter
|
||||
Peter deHaan
|
||||
Glen Mailer
|
||||
Brian Warner
|
||||
Shane Tomlinson
|
|
@ -0,0 +1,7 @@
|
|||
<a name="0.1.20"></a>
|
||||
### 0.1.20 (2014-05-16)
|
||||
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
* **xhr:** make the default payload null ([83666223](https://github.com/mozilla/fxa-js-client/commit/83666223b6fdf4c6993bb4fefce9f0d63c6b38d4))
|
|
@ -43,6 +43,21 @@ This library uses [The Intern](https://github.com/theintern/intern/wiki) testing
|
|||
|
||||
`grunt intern:sauce` - Run tests on SauceLabs.
|
||||
|
||||
## Git Commit Guidelines
|
||||
|
||||
We loosely follow the [Angular commit guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#type) of `<type>(<scope>): <subject>` where `type` must be one of:
|
||||
|
||||
* **feat**: A new feature
|
||||
* **fix**: A bug fix
|
||||
* **docs**: Documentation only changes
|
||||
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
|
||||
semi-colons, etc)
|
||||
* **refactor**: A code change that neither fixes a bug or adds a feature
|
||||
* **perf**: A code change that improves performance
|
||||
* **test**: Adding missing tests
|
||||
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
|
||||
generation
|
||||
|
||||
## Documentation
|
||||
|
||||
Running `grunt doc` will create a `docs` directory, browse the documentation by opening `docs/index.html`.
|
||||
|
|
|
@ -9,7 +9,8 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('intern-geezer');
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json')
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
pkgReadOnly: grunt.file.readJSON('package.json')
|
||||
});
|
||||
|
||||
// load local Grunt tasks
|
||||
|
@ -31,7 +32,7 @@ module.exports = function (grunt) {
|
|||
['build']);
|
||||
|
||||
grunt.registerTask('release',
|
||||
['build', 'yuidoc', 'buildcontrol']);
|
||||
['build', 'bump-only', 'changelog', 'bump-commit', 'yuidoc', 'buildcontrol']);
|
||||
|
||||
grunt.registerTask('dev',
|
||||
['watch:dev']);
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
"grunt-open": "~0.2.2",
|
||||
"intern-geezer": "~1.7.0",
|
||||
"load-grunt-tasks": "~0.2.0",
|
||||
"http-proxy": "~1.0.2"
|
||||
"http-proxy": "~1.0.2",
|
||||
"grunt-bump": "0.0.13",
|
||||
"grunt-conventional-changelog": "~1.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ module.exports = function (grunt) {
|
|||
options: {
|
||||
branch: 'gh-pages',
|
||||
dir: 'docs',
|
||||
tag: '<%= pkg.version %>-docs'
|
||||
tag: 'docs-<%= pkg.version %>'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
module.exports = function (grunt) {
|
||||
'use strict';
|
||||
|
||||
grunt.config('bump', {
|
||||
options: {
|
||||
files: ['package.json'],
|
||||
updateConfigs: ['pkg'],
|
||||
push: true,
|
||||
pushTo: 'git@github.com:mozilla/fxa-js-client.git master',
|
||||
commitMessage: 'source-%VERSION%',
|
||||
tagName: 'source-%VERSION%',
|
||||
// commit all modified files
|
||||
commitFiles: ['-a'],
|
||||
commit: true
|
||||
}
|
||||
});
|
||||
};
|
|
@ -0,0 +1,13 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
module.exports = function (grunt) {
|
||||
'use strict';
|
||||
|
||||
grunt.config('changelog', {
|
||||
options: {
|
||||
from: 'source-<%= pkgReadOnly.version %>'
|
||||
}
|
||||
});
|
||||
};
|
Загрузка…
Ссылка в новой задаче