Skip to content

Commit 6f14a28

Browse files
committed
jshint
1 parent e05155c commit 6f14a28

File tree

11 files changed

+752
-1332
lines changed

11 files changed

+752
-1332
lines changed

Diff for: .jshintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"browser": true,
44
"es5": true,
55
"esnext": true,
6-
"bitwise": true,
6+
"bitwise": false,
77
"camelcase": true,
88
"curly": true,
99
"eqeqeq": true,
10-
"immed": true,
10+
"immed": false,
1111
"indent": 2,
1212
"latedef": true,
1313
"newcap": true,

Diff for: Gruntfile.js

+54-52
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (grunt) {
1010

1111
// configurable paths
1212
var yeomanConfig = {
13-
app : 'app',
13+
app: 'app',
1414
dist: 'dist'
1515
};
1616

@@ -20,12 +20,12 @@ module.exports = function (grunt) {
2020
}
2121

2222
grunt.initConfig({
23-
yeoman : yeomanConfig,
24-
watch : {
23+
yeoman: yeomanConfig,
24+
watch: {
2525
less: {
2626
files: ['<%= yeoman.app %>/styles/{,*/}*.less'],
2727
tasks: ['recess', 'copy:styles'],
28-
options:{
28+
options: {
2929
nospawn: true
3030
}
3131
},
@@ -44,22 +44,24 @@ module.exports = function (grunt) {
4444
}
4545
},
4646
recess: {
47-
options: {
48-
compile: true
49-
},
50-
dist: {
51-
files: [{
52-
expand: true,
53-
cwd: '<%= yeoman.app %>/styles',
54-
src: 'style.less',
55-
dest: '.tmp/styles/',
56-
ext: '.css'
57-
}]
58-
}
47+
options: {
48+
compile: true
49+
},
50+
dist: {
51+
files: [
52+
{
53+
expand: true,
54+
cwd: '<%= yeoman.app %>/styles',
55+
src: 'style.less',
56+
dest: '.tmp/styles/',
57+
ext: '.css'
58+
}
59+
]
60+
}
5961
},
6062
connect: {
61-
options : {
62-
port : 9000,
63+
options: {
64+
port: 9000,
6365
// Change this to '0.0.0.0' to access the server from outside.
6466
hostname: 'localhost'
6567
},
@@ -74,7 +76,7 @@ module.exports = function (grunt) {
7476
}
7577
}
7678
},
77-
test : {
79+
test: {
7880
options: {
7981
middleware: function (connect) {
8082
return [
@@ -85,13 +87,13 @@ module.exports = function (grunt) {
8587
}
8688
}
8789
},
88-
open : {
90+
open: {
8991
server: {
9092
url: 'http://localhost:<%= connect.options.port %>'
9193
}
9294
},
93-
clean : {
94-
dist : {
95+
clean: {
96+
dist: {
9597
files: [
9698
{
9799
dot: false,
@@ -104,49 +106,49 @@ module.exports = function (grunt) {
104106
},
105107
server: '.tmp'
106108
},
107-
jshint : {
109+
jshint: {
108110
options: {
109111
jshintrc: '.jshintrc'
110112
},
111-
all : [
113+
all: [
112114
'Gruntfile.js',
113115
'<%= yeoman.app %>/scripts/{,*/}*.js'
114116
]
115117
},
116-
karma : {
118+
karma: {
117119
unit: {
118120
configFile: 'karma.conf.js',
119-
singleRun : true
121+
singleRun: true
120122
}
121123
},
122-
cssmin : {
124+
cssmin: {
123125
dist: {
124126
expand: true,
125-
cwd : '<%= yeoman.dist %>',
126-
src : ['*.css', '!*.min.css'],
127-
dest : '<%= yeoman.dist %>',
128-
ext : '.min.css'
127+
cwd: '<%= yeoman.dist %>',
128+
src: ['*.css', '!*.min.css'],
129+
dest: '<%= yeoman.dist %>',
130+
ext: '.min.css'
129131
}
130132
},
131-
ngmin : {
133+
ngmin: {
132134
dist: {
133135
expand: true,
134-
cwd : '<%= yeoman.dist %>',
135-
src : ['*.js', '!*.min.js'],
136-
dest : '<%= yeoman.dist %>',
137-
ext : '.min.js'
136+
cwd: '<%= yeoman.dist %>',
137+
src: ['*.js', '!*.min.js'],
138+
dest: '<%= yeoman.dist %>',
139+
ext: '.min.js'
138140
}
139141
},
140-
uglify : {
142+
uglify: {
141143
dist: {
142144
expand: true,
143-
cwd : '<%= yeoman.dist %>',
144-
src : ['*.min.js'],
145-
dest : '<%= yeoman.dist %>',
146-
ext : '.min.js'
145+
cwd: '<%= yeoman.dist %>',
146+
src: ['*.min.js'],
147+
dest: '<%= yeoman.dist %>',
148+
ext: '.min.js'
147149
}
148150
},
149-
copy : {
151+
copy: {
150152
styles: {
151153
expand: true,
152154
cwd: '<%= yeoman.app %>/styles',
@@ -156,11 +158,11 @@ module.exports = function (grunt) {
156158
dist: {
157159
files: [
158160
{
159-
expand : true,
161+
expand: true,
160162
flatten: true,
161-
dot : true,
162-
dest : '<%= yeoman.dist %>',
163-
src : [
163+
dot: true,
164+
dest: '<%= yeoman.dist %>',
165+
src: [
164166
'README.md',
165167
'bower.json'
166168
]
@@ -171,11 +173,11 @@ module.exports = function (grunt) {
171173
ngtemplates: {
172174
dist: {
173175
options: {
174-
base : '<%= yeoman.app %>',
175-
module: 'datePicker'
176+
base: '<%= yeoman.app %>',
177+
module: 'datePicker'
176178
},
177-
src : '<%= yeoman.app %>/templates/*.html',
178-
dest : '.tmp/templates.js'
179+
src: '<%= yeoman.app %>/templates/*.html',
180+
dest: '.tmp/templates.js'
179181
}
180182
},
181183
concurrent: {
@@ -195,11 +197,11 @@ module.exports = function (grunt) {
195197
separator: '\n'
196198
},
197199
js: {
198-
src: ['<%= yeoman.app %>/scripts/module.js','.tmp/templates.js'],
200+
src: ['<%= yeoman.app %>/scripts/*.js', '.tmp/templates.js'],
199201
dest: '<%= yeoman.dist %>/index.js'
200202
},
201203
css: {
202-
src: ['<%= yeoman.app %>/styles/date.css'],
204+
src: ['.tmp/{,*/}*.css'],
203205
dest: '<%= yeoman.dist %>/index.css'
204206
}
205207
}

0 commit comments

Comments
 (0)