Skip to content

Commit 6e270e0

Browse files
committed
Updating .editorconfig file.
1 parent 097d6bb commit 6e270e0

File tree

3 files changed

+245
-247
lines changed

3 files changed

+245
-247
lines changed

.editorconfig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ root = true
88
end_of_line = lf
99
insert_final_newline = true
1010

11-
# Tab indentation (no size specified)
11+
# Tab indentation.
1212
[*.js]
13-
indent_style = tab
14-
15-
# Indentation override for all JS under lib directory
16-
[lib/**.js]
1713
indent_style = space
1814
indent_size = 2
1915

Gruntfile.js

Lines changed: 58 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,71 @@
1-
module.exports = function(grunt) {
1+
'use strict';
22

3-
// Load all Grunt tasks.
4-
require('load-grunt-tasks')(grunt);
3+
module.exports = function (grunt) {
54

6-
// Grunt configuration.
7-
grunt.initConfig({
5+
// Load all Grunt tasks.
6+
require('load-grunt-tasks')(grunt);
87

9-
pkg: grunt.file.readJSON('package.json'),
8+
// Grunt configuration.
9+
grunt.initConfig({
1010

11-
watch: {
12-
scripts: {
13-
files: [
14-
'Gruntfile.js',
15-
'src/**/*.js',
16-
'tests/specs/**/*.js',
17-
'!.grunt'
18-
],
19-
tasks: ['jshint', 'jasmine']
20-
}
21-
},
11+
pkg: grunt.file.readJSON('package.json'),
2212

23-
uglify: {
24-
all: {
25-
files: {
26-
'dist/jquery.checkboxes-<%= pkg.version %>.min.js': ['src/jquery.checkboxes.js']
27-
},
28-
options: {
29-
banner: '/*! checkboxes.js v<%= pkg.version %> | ' +
30-
'(c) 2013, <%= grunt.template.today("yyyy") %> Rubens Mariuzzo | ' +
31-
'http://github.com/rmariuzzo/checkboxes.js/LICENSE */',
32-
}
33-
}
34-
},
13+
watch: {
14+
scripts: {
15+
files: [
16+
'Gruntfile.js',
17+
'src/**/*.js',
18+
'tests/specs/**/*.js',
19+
'!.grunt'
20+
],
21+
tasks: ['jshint', 'jasmine']
22+
}
23+
},
3524

36-
jshint: {
37-
all: {
38-
src: [
39-
'Gruntfile.js',
40-
'src/**/*.js',
41-
'tests/spec/**/*.js'
42-
],
43-
options: {
44-
jshintrc: true
45-
}
46-
}
25+
uglify: {
26+
all: {
27+
files: {
28+
'dist/jquery.checkboxes-<%= pkg.version %>.min.js': ['src/jquery.checkboxes.js']
4729
},
30+
options: {
31+
banner: '/*! checkboxes.js v<%= pkg.version %> | ' +
32+
'(c) 2013, <%= grunt.template.today("yyyy") %> Rubens Mariuzzo | ' +
33+
'http://github.com/rmariuzzo/checkboxes.js/LICENSE */',
34+
}
35+
}
36+
},
37+
38+
jshint: {
39+
all: {
40+
src: [
41+
'Gruntfile.js',
42+
'src/**/*.js',
43+
'tests/spec/**/*.js'
44+
],
45+
options: {
46+
jshintrc: true
47+
}
48+
}
49+
},
4850

49-
jasmine: {
50-
all: {
51-
src: 'src/**/*.js',
52-
options: {
53-
specs: 'tests/specs/*_spec.js',
54-
vendor: [
55-
'bower_components/jquery/dist/jquery.min.js',
56-
'bower_components/jasmine-jquery/lib/jasmine-jquery.js'
57-
]
58-
}
59-
}
51+
jasmine: {
52+
all: {
53+
src: 'src/**/*.js',
54+
options: {
55+
specs: 'tests/specs/*_spec.js',
56+
vendor: [
57+
'bower_components/jquery/dist/jquery.min.js',
58+
'bower_components/jasmine-jquery/lib/jasmine-jquery.js'
59+
]
6060
}
61+
}
62+
}
6163

62-
});
64+
});
6365

64-
grunt.registerTask('default', ['jshint', 'watch']);
65-
grunt.registerTask('build', ['jshint', 'jasmine', 'uglify']);
66-
grunt.registerTask('test', ['jasmine']);
67-
grunt.registerTask('travis', ['jshint', 'jasmine']);
66+
grunt.registerTask('default', ['jshint', 'watch']);
67+
grunt.registerTask('build', ['jshint', 'jasmine', 'uglify']);
68+
grunt.registerTask('test', ['jasmine']);
69+
grunt.registerTask('travis', ['jshint', 'jasmine']);
6870

6971
};

0 commit comments

Comments
 (0)