Skip to content

Commit

Permalink
formatting json files in grunt build
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Jul 30, 2016
1 parent 4fefeef commit e6eb250
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ See [contributing guide](.github/CONTRIBUTING.md)

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2016-07-30 | v0.0.86 | Maintenance |
| 2016-07-30 | v0.0.87 | Maintenance |
| 2016-06-14 | v0.0.78 | Published via NPM (in addition to bower) |
| 2016-06-14 | v0.0.77 | Maintenance |
| 2016-03-08 | v0.0.65 | Added webNotification.permissionGranted attribute |
Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-web-notification",
"version": "0.0.86",
"version": "0.0.87",
"description": "AngularJS service for displaying web notifications.",
"authors": [
"Sagie Gur-Ari <sagiegurari@gmail.com>"
Expand All @@ -16,8 +16,8 @@
"ignore": [
"node_modules",
"bower_components",
".github",
"project",
".github",
"project",
"test",
"tests",
"example",
Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2016-07-30 | v0.0.86 | Maintenance |
| 2016-07-30 | v0.0.87 | Maintenance |
| 2016-06-14 | v0.0.78 | Published via NPM (in addition to bower) |
| 2016-06-14 | v0.0.77 | Maintenance |
| 2016-03-08 | v0.0.65 | Added webNotification.permissionGranted attribute |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-web-notification",
"version": "0.0.86",
"version": "0.0.87",
"description": "AngularJS service for displaying web notifications.",
"author": {
"name": "Sagie Gur-Ari",
Expand Down
3 changes: 2 additions & 1 deletion project/build/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = function (grunt) {
]);

grunt.registerTask('format', 'Format Code.', [
'jsbeautifier:full'
'jsbeautifier:full',
'jsonlint:format'
]);

grunt.registerTask('docs', 'Generate docs.', [
Expand Down
2 changes: 1 addition & 1 deletion project/build/jsbeautifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports.tasks = {
},
src: [
require('../../bower.json').main,
'project/build/**/*.js'
'project/**/*.js'
]
}
}
Expand Down
13 changes: 12 additions & 1 deletion project/build/jsonlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ module.exports.tasks = {
jsonlint: {
full: {
src: [
'*.json'
'*.json',
'project/**/*.json'
]
},
format: {
src: [
'*.json',
'project/**/*.json'
],
options: {
format: true,
indent: 2
}
}
}
};

0 comments on commit e6eb250

Please sign in to comment.