-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
48 lines (48 loc) · 1.01 KB
/
grunt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = function (grunt) {
grunt.initConfig({
meta: {
version: '2.1.1',
banner: '/*! ReadWriteLock.js - v<%= meta.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* Part of the Canvace technology <http://www.canvace.com/>\n' +
'* Released under the MIT License\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> Canvace Srl */',
},
min: {
dist: {
src: [
'<banner:meta.banner>',
'<file_strip_banner:src/ReadWriteLock.js>'
],
dest: 'bin/rwlock.js'
}
},
lint: {
dist: 'src/ReadWriteLock.js'
},
jshint: {
options: {
camelcase: true,
curly: true,
immed: true,
indent: 4,
latedef: true,
newcap: true,
noarg: true,
quotmark: 'single',
undef: true,
unused: true,
strict: true,
trailing: true,
boss: true,
debug: true,
expr: true,
loopfunc: true,
multistr: true,
smarttabs: true,
supernew: true,
node: true
}
}
});
grunt.registerTask('default', 'lint min');
};