Skip to content

Commit d03ac54

Browse files
author
Valentin Hervieu
committed
Apply editorconfig formatting
1 parent a7c7f0e commit d03ac54

File tree

3 files changed

+2447
-2455
lines changed

3 files changed

+2447
-2455
lines changed

Gruntfile.js

Lines changed: 119 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,137 @@
11
module.exports = function(grunt) {
2-
// Project configuration.
3-
grunt.initConfig({
2+
// Project configuration.
3+
grunt.initConfig({
44

5-
pkg: grunt.file.readJSON('package.json'),
5+
pkg: grunt.file.readJSON('package.json'),
66

7-
minBanner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
8-
'(c) <%= pkg.author %>, <%= pkg.repository.url %> - ' +
9-
'<%= grunt.template.today("yyyy-mm-dd") %> */\n',
7+
minBanner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
8+
'(c) <%= pkg.author %>, <%= pkg.repository.url %> - ' +
9+
'<%= grunt.template.today("yyyy-mm-dd") %> */\n',
1010

11-
recess: {
12-
options: {
13-
compile: true
14-
},
11+
recess: {
12+
options: {
13+
compile: true
14+
},
1515

16-
slider: {
17-
src: ['src/rzslider.less'],
18-
dest: 'dist/rzslider.css'
19-
},
16+
slider: {
17+
src: ['src/rzslider.less'],
18+
dest: 'dist/rzslider.css'
19+
},
2020

21-
min: {
22-
options: {
23-
compress: true,
24-
banner: '<%= minBanner %>'
25-
},
26-
src: ['dist/rzslider.css'],
27-
dest: 'dist/rzslider.min.css'
28-
}
21+
min: {
22+
options: {
23+
compress: true,
24+
banner: '<%= minBanner %>'
2925
},
26+
src: ['dist/rzslider.css'],
27+
dest: 'dist/rzslider.min.css'
28+
}
29+
},
3030

31-
uglify: {
32-
options: {
33-
report: 'min',
34-
banner: '<%= minBanner %>'
35-
},
36-
rzslider: {
37-
files: {
38-
'dist/rzslider.min.js': [
39-
'dist/rzslider.js'
40-
]
41-
}
42-
}
43-
},
31+
uglify: {
32+
options: {
33+
report: 'min',
34+
banner: '<%= minBanner %>'
35+
},
36+
rzslider: {
37+
files: {
38+
'dist/rzslider.min.js': [
39+
'dist/rzslider.js'
40+
]
41+
}
42+
}
43+
},
4444

45-
ngtemplates: {
46-
app: {
47-
src: 'src/**.html',
48-
dest: 'temp/templates.js',
49-
options: {
50-
htmlmin: {
51-
collapseBooleanAttributes: true,
52-
collapseWhitespace: true,
53-
removeAttributeQuotes: true,
54-
removeComments: true, // Only if you don't use comment directives!
55-
removeEmptyAttributes: true,
56-
removeRedundantAttributes: true,
57-
removeScriptTypeAttributes: true,
58-
removeStyleLinkTypeAttributes: true
59-
},
60-
module: 'rzModule',
61-
url: function(url) {
62-
return url.replace('src/', '');
63-
},
64-
bootstrap: function(module, script) {
65-
return 'module.run(function($templateCache) {\n' + script + '\n});';
66-
}
67-
}
68-
}
69-
},
45+
ngtemplates: {
46+
app: {
47+
src: 'src/**.html',
48+
dest: 'temp/templates.js',
49+
options: {
50+
htmlmin: {
51+
collapseBooleanAttributes: true,
52+
collapseWhitespace: true,
53+
removeAttributeQuotes: true,
54+
removeComments: true, // Only if you don't use comment directives!
55+
removeEmptyAttributes: true,
56+
removeRedundantAttributes: true,
57+
removeScriptTypeAttributes: true,
58+
removeStyleLinkTypeAttributes: true
59+
},
60+
module: 'rzModule',
61+
url: function(url) {
62+
return url.replace('src/', '');
63+
},
64+
bootstrap: function(module, script) {
65+
return 'module.run(function($templateCache) {\n' + script + '\n});';
66+
}
67+
}
68+
}
69+
},
7070

71-
replace: {
72-
dist: {
73-
options: {
74-
patterns: [
75-
{
76-
match: /\/\*templateReplacement\*\//,
77-
replacement: '<%= grunt.file.read("temp/templates.js") %>'
78-
}
79-
]
80-
},
81-
files: [
82-
{expand: true, flatten: true, src: ['src/rzslider.js'], dest: 'dist/'}
83-
]
84-
}
71+
replace: {
72+
dist: {
73+
options: {
74+
patterns: [{
75+
match: /\/\*templateReplacement\*\//,
76+
replacement: '<%= grunt.file.read("temp/templates.js") %>'
77+
}]
8578
},
79+
files: [{
80+
expand: true,
81+
flatten: true,
82+
src: ['src/rzslider.js'],
83+
dest: 'dist/'
84+
}]
85+
}
86+
},
8687

87-
ngAnnotate: {
88-
options: {
89-
singleQuotes: true,
90-
},
91-
rzslider: {
92-
files: [{
93-
'dist/rzslider.js': 'dist/rzslider.js'
94-
}, {
95-
expand: true,
96-
src: ['dist/rzslider.js']
97-
}
98-
]
99-
}
100-
},
101-
watch: {
102-
all: {
103-
files: ['dist/*', 'demo/*'],
104-
options: {
105-
livereload: true
106-
}
107-
},
108-
js: {
109-
files: ['src/*js', 'src/*.html'],
110-
tasks: ['js']
111-
},
112-
less: {
113-
files: ['src/*.less'],
114-
tasks: ['css']
115-
}
116-
},
117-
serve: {
118-
options: {
119-
port: 9000
120-
}
88+
ngAnnotate: {
89+
options: {
90+
singleQuotes: true,
91+
},
92+
rzslider: {
93+
files: [{
94+
'dist/rzslider.js': 'dist/rzslider.js'
95+
}, {
96+
expand: true,
97+
src: ['dist/rzslider.js']
98+
}]
99+
}
100+
},
101+
watch: {
102+
all: {
103+
files: ['dist/*', 'demo/*'],
104+
options: {
105+
livereload: true
121106
}
107+
},
108+
js: {
109+
files: ['src/*js', 'src/*.html'],
110+
tasks: ['js']
111+
},
112+
less: {
113+
files: ['src/*.less'],
114+
tasks: ['css']
115+
}
116+
},
117+
serve: {
118+
options: {
119+
port: 9000
120+
}
121+
}
122122

123-
});
123+
});
124124

125-
grunt.loadNpmTasks('grunt-contrib-uglify');
126-
grunt.loadNpmTasks('grunt-recess');
127-
grunt.loadNpmTasks('grunt-angular-templates');
128-
grunt.loadNpmTasks('grunt-replace');
129-
grunt.loadNpmTasks('grunt-ng-annotate');
130-
grunt.loadNpmTasks('grunt-contrib-watch');
131-
grunt.loadNpmTasks('grunt-serve');
125+
grunt.loadNpmTasks('grunt-contrib-uglify');
126+
grunt.loadNpmTasks('grunt-recess');
127+
grunt.loadNpmTasks('grunt-angular-templates');
128+
grunt.loadNpmTasks('grunt-replace');
129+
grunt.loadNpmTasks('grunt-ng-annotate');
130+
grunt.loadNpmTasks('grunt-contrib-watch');
131+
grunt.loadNpmTasks('grunt-serve');
132132

133-
grunt.registerTask('default', ['css', 'js']);
133+
grunt.registerTask('default', ['css', 'js']);
134134

135-
grunt.registerTask('css', ['recess']);
136-
grunt.registerTask('js', ['ngtemplates', 'replace', 'ngAnnotate', 'uglify']);
135+
grunt.registerTask('css', ['recess']);
136+
grunt.registerTask('js', ['ngtemplates', 'replace', 'ngAnnotate', 'uglify']);
137137
};

0 commit comments

Comments
 (0)