Skip to content

Commit d066fc3

Browse files
committed
update code quality
1 parent 0dcfb2b commit d066fc3

16 files changed

Lines changed: 676 additions & 661 deletions

File tree

Gruntfile.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/* jshint node: true */
2-
module.exports = function(grunt) {
2+
module.exports = function (grunt) {
33
"use strict";
44

55
// Project configuration.
66
grunt.initConfig({
77
// Metadata
88
pkg: grunt.file.readJSON('package.json'),
99
banner: '/**\n' +
10-
'* <%=pkg.name %> by <%= pkg.author.email %>\n' +
11-
'* Version : <%= pkg.version %> \n' +
12-
'* Author : <%= pkg.author.name %> \n' +
13-
'* Copyright <%= grunt.template.today("yyyy") %>\n' +
14-
'*/\n',
10+
'* <%=pkg.name %> by <%= pkg.author.email %>\n' +
11+
'* Version : <%= pkg.version %> \n' +
12+
'* Author : <%= pkg.author.name %> \n' +
13+
'* Copyright <%= grunt.template.today("yyyy") %>\n' +
14+
'*/\n',
1515
clean: {dist: ['dist']},
1616
concat: {
1717
options: {
@@ -32,7 +32,7 @@ module.exports = function(grunt) {
3232
'src/assets/js/metisMaps.js',
3333
'src/assets/js/metisTable.js',
3434
'src/assets/js/progress.js',
35-
'src/assets/js/button.js',
35+
'src/assets/js/button.js',
3636
'src/assets/js/metisSortable.js'
3737
],
3838
dest: 'dist/assets/js/main.js'
@@ -47,11 +47,11 @@ module.exports = function(grunt) {
4747
src: ['src/assets/js/style-switcher.js'],
4848
dest: 'dist/assets/js/style-switcher.js'
4949
},
50-
emberApp: {
51-
options: {banner: '<%= banner %>'},
50+
emberApp: {
51+
options: {banner: '<%= banner %>'},
5252
src: ['src/assets/js/app.js'],
5353
dest: 'dist/assets/js/app.js'
54-
}
54+
}
5555
},
5656
uglify: {
5757
options: {
@@ -76,14 +76,14 @@ module.exports = function(grunt) {
7676
},
7777
main: {
7878
files: {
79-
'dist/assets/css/main.css': ['src/assets/less/style.less']
80-
}
79+
'dist/assets/css/main.css': ['src/assets/less/style.less']
80+
}
8181
},
8282
min: {
8383
options: {compress: true},
84-
files: {
85-
'dist/assets/css/main.min.css': ['src/assets/less/style.less']
86-
}
84+
files: {
85+
'dist/assets/css/main.min.css': ['src/assets/less/style.less']
86+
}
8787
}
8888
},
8989
assemble: {
@@ -160,7 +160,7 @@ module.exports = function(grunt) {
160160
{
161161
expand: true,
162162
cwd: 'src/assets/less',
163-
src: ['theme.less','mixins.less'],
163+
src: ['theme.less', 'mixins.less'],
164164
dest: 'dist/assets/less'
165165
},
166166
{
@@ -172,13 +172,13 @@ module.exports = function(grunt) {
172172
]
173173
}
174174
},
175-
176-
watch: {
177-
scripts: {
178-
files: ['**/*.js','**/*.less','**/*.hbs','**/*.html'],
179-
tasks: ['default']
180-
},
181-
}
175+
176+
watch: {
177+
scripts: {
178+
files: ['**/*.js', '**/*.less', '**/*.hbs', '**/*.html'],
179+
tasks: ['default']
180+
},
181+
}
182182

183183
});
184184

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ http://demo.onokumus.com/metis/v12
3636

3737
Bootstrap Admin template is open-sourced software licensed under the [MIT License](http://opensource.org/licenses/MIT)
3838

39-
[Buy me a coffee?](https://wrapbootstrap.com/theme/nuro-theme-WB0628X10)
39+
[Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EYSUBWWDTCYKU)

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
"url": "https://github.com/onokumus/Bootstrap-Admin-Template/issues"
1717
},
1818
"licenses": {
19-
"type":"MIT",
20-
"url":"https://github.com/onokumus/Bootstrap-Admin-Template/blob/master/README.md"
19+
"type": "MIT",
20+
"url": "https://github.com/onokumus/Bootstrap-Admin-Template/blob/master/README.md"
2121
},
2222
"devDependencies": {
2323
"grunt": "~0.4.1",
24-
"assemble": "~0.4.12",
25-
"grunt-contrib-connect": "~0.5.0",
26-
"grunt-contrib-clean": "~0.5.0",
27-
"grunt-contrib-concat": "~0.3.0",
28-
"grunt-contrib-jshint": "~0.6.4",
29-
"grunt-contrib-uglify": "~0.2.4",
30-
"grunt-contrib-qunit": "~0.3.0",
31-
"grunt-contrib-watch": "~0.5.3",
32-
"grunt-recess": "~0.4.0",
33-
"grunt-contrib-copy": "~0.4.1"
24+
"assemble": "~0.4.13",
25+
"grunt-contrib-connect": "~0.5.0",
26+
"grunt-contrib-clean": "~0.5.0",
27+
"grunt-contrib-concat": "~0.3.0",
28+
"grunt-contrib-jshint": "~0.6.4",
29+
"grunt-contrib-uglify": "~0.2.4",
30+
"grunt-contrib-qunit": "~0.3.0",
31+
"grunt-contrib-watch": "~0.5.3",
32+
"grunt-recess": "~0.4.0",
33+
"grunt-contrib-copy": "~0.4.1"
3434
}
3535
}

src/assets/js/.jshintrc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"validthis": true,
3-
"laxcomma" : true,
4-
"laxbreak" : true,
5-
"browser" : true,
6-
"eqeqeq" : false,
7-
"eqnull" : true,
8-
"debug" : true,
9-
"devel" : true,
10-
"curly" : false,
11-
"boss" : true,
12-
"expr" : true,
13-
"asi" : true
2+
"validthis": true,
3+
"laxcomma": true,
4+
"laxbreak": true,
5+
"browser": true,
6+
"eqeqeq": false,
7+
"eqnull": true,
8+
"debug": true,
9+
"devel": true,
10+
"curly": false,
11+
"boss": true,
12+
"expr": true,
13+
"asi": true
1414
}

0 commit comments

Comments
 (0)