Skip to content

Commit 253bf5f

Browse files
committed
style(source): format source code
1 parent 971f9b8 commit 253bf5f

File tree

7 files changed

+121
-121
lines changed

7 files changed

+121
-121
lines changed

Gruntfile.js

+38-38
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module.exports = function (grunt) {
44
var files = require('./files').files;
55

66
grunt.initConfig({
7-
pkg: grunt.file.readJSON('package.json'),
8-
concat: {
7+
pkg : grunt.file.readJSON('package.json'),
8+
concat : {
99
options: {
1010
separator: ''
1111
},
1212
library: {
13-
src: [
13+
src : [
1414
'src/growlNotifications/growlNotifications.prefix',
1515
'src/growlNotifications/growlNotifications.js',
1616
'src/growlNotifications/directives/**/*.js',
@@ -21,33 +21,33 @@ module.exports = function (grunt) {
2121
dest: 'dist/growl-notifications.js'
2222
}
2323
},
24-
uglify: {
24+
uglify : {
2525
options: {
2626
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
2727
},
28-
jid: {
28+
jid : {
2929
files: {
3030
'dist/growl-notifications.min.js': ['<%= concat.library.dest %>']
3131
}
3232
}
3333
},
34-
jshint: {
34+
jshint : {
3535
beforeConcat: {
3636
src: ['gruntfile.js', 'growlNotifications/**/*.js']
3737
},
38-
afterConcat: {
38+
afterConcat : {
3939
src: [
4040
'<%= concat.library.dest %>'
4141
]
4242
},
43-
options: {
43+
options : {
4444
// options here to override JSHint defaults
45-
globals: {
46-
jQuery: true,
47-
console: true,
48-
module: true,
45+
globals : {
46+
jQuery : true,
47+
console : true,
48+
module : true,
4949
document: true,
50-
angular: true
50+
angular : true
5151
},
5252
globalstrict: false
5353
}
@@ -63,38 +63,38 @@ module.exports = function (grunt) {
6363
}
6464
}
6565
},
66-
watch: {
66+
watch : {
6767
options: {
6868
livereload: true
6969
},
70-
files: [
70+
files : [
7171
'Gruntfile.js',
7272
'src/**/*'
7373
],
74-
tasks: ['default']
74+
tasks : ['default']
7575
},
76-
karma: {
77-
unit: {
78-
browsers: [ grunt.option('browser') || 'PhantomJS' ],
79-
configFile: 'config/karma/src.conf.js',
80-
singleRun: true
81-
},
82-
debug: {
83-
singleRun: false,
84-
background: false,
85-
configFile: 'config/karma/src.conf.js',
86-
browsers: [ grunt.option('browser') || 'Chrome' ]
87-
},
88-
dist: {
89-
browsers: [ grunt.option('browser') || 'PhantomJS' ],
90-
configFile: 'config/karma/dist.conf.js',
91-
singleRun: true
92-
},
93-
'dist-min': {
94-
browsers: [ grunt.option('browser') || 'PhantomJS' ],
95-
configFile: 'config/karma/dist.min.conf.js',
96-
singleRun: true
97-
}
76+
karma : {
77+
unit : {
78+
browsers : [ grunt.option('browser') || 'PhantomJS' ],
79+
configFile: 'config/karma/src.conf.js',
80+
singleRun : true
81+
},
82+
debug : {
83+
singleRun : false,
84+
background: false,
85+
configFile: 'config/karma/src.conf.js',
86+
browsers : [ grunt.option('browser') || 'Chrome' ]
87+
},
88+
dist : {
89+
browsers : [ grunt.option('browser') || 'PhantomJS' ],
90+
configFile: 'config/karma/dist.conf.js',
91+
singleRun : true
92+
},
93+
'dist-min': {
94+
browsers : [ grunt.option('browser') || 'PhantomJS' ],
95+
configFile: 'config/karma/dist.min.conf.js',
96+
singleRun : true
97+
}
9898
}
9999
});
100100

config/karma/common.conf.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
module.exports = function(config) {
1+
module.exports = function (config) {
22
config.set({
3-
basePath: '../../',
4-
frameworks: ['jasmine'],
5-
plugins: [
3+
basePath : '../../',
4+
frameworks : ['jasmine'],
5+
plugins : [
66
'karma-jasmine',
77
'karma-chrome-launcher',
88
'karma-phantomjs-launcher'
99
],
10-
exclude: [],
11-
reporters: ['dots'],
12-
port: 9876,
13-
runnerPort: 9100,
14-
colors: true,
15-
logLevel: config.LOG_INFO,
16-
autoWatch: true,
17-
browsers: ['PhantomJS'],
10+
exclude : [],
11+
reporters : ['dots'],
12+
port : 9876,
13+
runnerPort : 9100,
14+
colors : true,
15+
logLevel : config.LOG_INFO,
16+
autoWatch : true,
17+
browsers : ['PhantomJS'],
1818
captureTimeout: 60000,
19-
singleRun: false
19+
singleRun : false
2020
});
2121
};

config/karma/dist.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var growlNotificationsFiles = require('../../files');
22
var commonConfig = require('./common.conf');
33

4-
module.exports = function(config) {
4+
module.exports = function (config) {
55
commonConfig(config);
66

77
config.set({
8-
files: growlNotificationsFiles.mergeFilesFor('karma-dist')
8+
files: growlNotificationsFiles.mergeFilesFor('karma-dist')
99
});
1010
};

config/karma/dist.min.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var growlNotificationsFiles = require('../../files');
22
var commonConfig = require('./common.conf');
33

4-
module.exports = function(config) {
4+
module.exports = function (config) {
55
commonConfig(config);
66

77
config.set({
8-
files: growlNotificationsFiles.mergeFilesFor('karma-dist-min')
8+
files: growlNotificationsFiles.mergeFilesFor('karma-dist-min')
99
});
1010
};

config/karma/src.conf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
var growlNotificationsFiles = require('../../files');
1+
var growlNotificationsFiles = require('../../files.js');
22
var commonConfig = require('./common.conf');
33

4-
module.exports = function(config) {
4+
module.exports = function (config) {
55
commonConfig(config);
66

77
config.set({
8-
files: growlNotificationsFiles.mergeFilesFor('karma-src'),
9-
exclude: growlNotificationsFiles.mergeFilesFor('karma-src-exclude')
8+
files : growlNotificationsFiles.mergeFilesFor('karma-src'),
9+
exclude: growlNotificationsFiles.mergeFilesFor('karma-src-exclude')
1010
});
1111
};
1212

files.js

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
growlNotificationsFiles = {
2-
karma: [
2+
karma : [
33
'bower/angular/angular.js',
44
'bower/angular-mocks/angular-mocks.js'
55
],
6-
'karma-dist': [
7-
'@karma',
8-
'dist/growl-notifications.js',
9-
'@karma-tests'
6+
'karma-dist' : [
7+
'@karma',
8+
'dist/growl-notifications.js',
9+
'@karma-tests'
1010
],
11-
'karma-dist-min': [
12-
'@karma',
13-
'dist/growl-notifications.min.js',
14-
'@karma-tests'
11+
'karma-dist-min' : [
12+
'@karma',
13+
'dist/growl-notifications.min.js',
14+
'@karma-tests'
1515
],
1616
'karma-src-exclude': [
17-
'src/growlNotifications/growlNotifications.prefix',
18-
'src/growlNotifications/growlNotifications.suffix'
17+
'src/growlNotifications/growlNotifications.prefix',
18+
'src/growlNotifications/growlNotifications.suffix'
1919
],
20-
'karma-src': [
21-
'@karma',
22-
'src/growlNotifications/growlNotifications.js',
23-
'src/**/*.js',
24-
'@karma-tests'
20+
'karma-src' : [
21+
'@karma',
22+
'src/growlNotifications/growlNotifications.js',
23+
'src/**/*.js',
24+
'@karma-tests'
2525
],
26-
'karma-tests': [
27-
'test/unit/**/*.js'
26+
'karma-tests' : [
27+
'test/unit/**/*.js'
2828
]
2929
};
3030

3131
if (exports) {
3232
exports.files = growlNotificationsFiles;
33-
exports.mergeFilesFor = function() {
33+
exports.mergeFilesFor = function () {
3434
var files = [];
3535

36-
Array.prototype.slice.call(arguments, 0).forEach(function(filegroup) {
37-
growlNotificationsFiles[filegroup].forEach(function(file) {
36+
Array.prototype.slice.call(arguments, 0).forEach(function (filegroup) {
37+
growlNotificationsFiles[filegroup].forEach(function (file) {
3838
// replace @ref
3939
var match = file.match(/^\@(.*)/);
4040
if (match) {

package.json

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name" : "growl-notifications",
3-
"version" : "0.7.0",
4-
"keywords" : [
5-
"angular",
6-
"angularjs",
7-
"growl",
8-
"notification",
9-
"notifications"
10-
],
11-
"author" : {
12-
"name" : "Jurgen Van de Moere",
13-
"email": "[email protected]",
14-
"url" : "http://www.jvandemo.com"
15-
},
16-
"repository" : {
17-
"type": "git",
18-
"url" : "http://github.com/jvandemo/angular-growl-notifications.git"
19-
},
20-
"dependencies" : {},
21-
"devDependencies": {
22-
"bower" : "~1.2.8",
23-
"connect-livereload" : "~0.2.0",
24-
"grunt" : "~0.4.1",
25-
"grunt-cli" : "~0.1.9",
26-
"grunt-concurrent" : "~0.3.0",
27-
"grunt-contrib-concat" : "~0.3.0",
28-
"grunt-contrib-connect" : "~0.5.0",
29-
"grunt-contrib-jshint" : "~0.7.0",
30-
"grunt-contrib-uglify" : "~0.2.0",
31-
"grunt-contrib-watch" : "~0.5.0",
32-
"grunt-google-cdn" : "~0.2.0",
33-
"grunt-karma" : "~0.8.0",
34-
"karma" : "~0.12.0",
35-
"karma-chrome-launcher" : "~0.1.0",
36-
"karma-jasmine" : "~0.2.0",
37-
"karma-phantomjs-launcher": "~0.1.0",
38-
"load-grunt-tasks" : "~0.2.0"
39-
},
40-
"engines" : {
41-
"node": ">=0.8.0"
42-
}
2+
"name": "growl-notifications",
3+
"version": "0.7.0",
4+
"keywords": [
5+
"angular",
6+
"angularjs",
7+
"growl",
8+
"notification",
9+
"notifications"
10+
],
11+
"author": {
12+
"name": "Jurgen Van de Moere",
13+
"email": "[email protected]",
14+
"url": "http://www.jvandemo.com"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "http://github.com/jvandemo/angular-growl-notifications.git"
19+
},
20+
"dependencies": {},
21+
"devDependencies": {
22+
"bower": "~1.2.8",
23+
"connect-livereload": "~0.2.0",
24+
"grunt": "~0.4.1",
25+
"grunt-cli": "~0.1.9",
26+
"grunt-concurrent": "~0.3.0",
27+
"grunt-contrib-concat": "~0.3.0",
28+
"grunt-contrib-connect": "~0.5.0",
29+
"grunt-contrib-jshint": "~0.7.0",
30+
"grunt-contrib-uglify": "~0.2.0",
31+
"grunt-contrib-watch": "~0.5.0",
32+
"grunt-google-cdn": "~0.2.0",
33+
"grunt-karma": "~0.8.0",
34+
"karma": "~0.12.0",
35+
"karma-chrome-launcher": "~0.1.0",
36+
"karma-jasmine": "~0.2.0",
37+
"karma-phantomjs-launcher": "~0.1.0",
38+
"load-grunt-tasks": "^0.4.0"
39+
},
40+
"engines": {
41+
"node": ">=0.8.0"
42+
}
4343
}

0 commit comments

Comments
 (0)