Skip to content

Commit e6eb250

Browse files
committed
formatting json files in grunt build
1 parent 4fefeef commit e6eb250

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ See [contributing guide](.github/CONTRIBUTING.md)
108108

109109
| Date | Version | Description |
110110
| ----------- | ------- | ----------- |
111-
| 2016-07-30 | v0.0.86 | Maintenance |
111+
| 2016-07-30 | v0.0.87 | Maintenance |
112112
| 2016-06-14 | v0.0.78 | Published via NPM (in addition to bower) |
113113
| 2016-06-14 | v0.0.77 | Maintenance |
114114
| 2016-03-08 | v0.0.65 | Added webNotification.permissionGranted attribute |

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-web-notification",
3-
"version": "0.0.86",
3+
"version": "0.0.87",
44
"description": "AngularJS service for displaying web notifications.",
55
"authors": [
66
"Sagie Gur-Ari <sagiegurari@gmail.com>"
@@ -16,8 +16,8 @@
1616
"ignore": [
1717
"node_modules",
1818
"bower_components",
19-
".github",
20-
"project",
19+
".github",
20+
"project",
2121
"test",
2222
"tests",
2323
"example",

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Date | Version | Description |
22
| ----------- | ------- | ----------- |
3-
| 2016-07-30 | v0.0.86 | Maintenance |
3+
| 2016-07-30 | v0.0.87 | Maintenance |
44
| 2016-06-14 | v0.0.78 | Published via NPM (in addition to bower) |
55
| 2016-06-14 | v0.0.77 | Maintenance |
66
| 2016-03-08 | v0.0.65 | Added webNotification.permissionGranted attribute |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-web-notification",
3-
"version": "0.0.86",
3+
"version": "0.0.87",
44
"description": "AngularJS service for displaying web notifications.",
55
"author": {
66
"name": "Sagie Gur-Ari",

project/build/common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = function (grunt) {
1111
]);
1212

1313
grunt.registerTask('format', 'Format Code.', [
14-
'jsbeautifier:full'
14+
'jsbeautifier:full',
15+
'jsonlint:format'
1516
]);
1617

1718
grunt.registerTask('docs', 'Generate docs.', [

project/build/jsbeautifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports.tasks = {
88
},
99
src: [
1010
require('../../bower.json').main,
11-
'project/build/**/*.js'
11+
'project/**/*.js'
1212
]
1313
}
1414
}

project/build/jsonlint.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,19 @@ module.exports.tasks = {
44
jsonlint: {
55
full: {
66
src: [
7-
'*.json'
7+
'*.json',
8+
'project/**/*.json'
89
]
10+
},
11+
format: {
12+
src: [
13+
'*.json',
14+
'project/**/*.json'
15+
],
16+
options: {
17+
format: true,
18+
indent: 2
19+
}
920
}
1021
}
1122
};

0 commit comments

Comments
 (0)