File tree 7 files changed +52
-35
lines changed
7 files changed +52
-35
lines changed Original file line number Diff line number Diff line change
1
+ # This file is for unifying the coding style for different editors and IDEs
2
+ # editorconfig.org
3
+
4
+ root = true
5
+
6
+ [* ]
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+ indent_style = space
12
+ indent_size = 2
13
+ max_line_length = 120
14
+
15
+ [Makefile ]
16
+ indent_style = tab
Original file line number Diff line number Diff line change @@ -18,3 +18,6 @@ target/
18
18
# Node
19
19
node_modules /
20
20
npm-debug.log
21
+
22
+ # Istanbul
23
+ coverage /
Original file line number Diff line number Diff line change 21
21
"disallowTrailingWhitespace" : true ,
22
22
"maximumLineLength" : 130 ,
23
23
"requireCamelCaseOrUpperCaseIdentifiers" : true ,
24
- "requireCapitalizedComments" : true ,
25
24
"requireCapitalizedConstructors" : true ,
26
25
"requireSpaceAfterKeywords" : [
27
26
" if" ,
Original file line number Diff line number Diff line change 5
5
- nvm install 5 && npm test
6
6
post :
7
7
- npm install
8
- - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec
8
+ - npm test
9
9
- cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage
10
- - rm -rf ./coverage
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
- < meta charset ="utf-8 ">
5
- < title > Diff to HTML by rtfpessoa</ title >
4
+ < meta charset ="utf-8 ">
5
+ < title > Diff to HTML by rtfpessoa</ title >
6
6
7
- <!--
8
- Diff to HTML (template.html)
9
- Author: rtfpessoa
10
- -->
7
+ <!--
8
+ Diff to HTML (template.html)
9
+ Author: rtfpessoa
10
+ -->
11
11
12
- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1 .0/styles/github.min.css ">
12
+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3 .0/styles/github.min.css ">
13
13
14
- <!--diff2html-css-->
14
+ <!--diff2html-css-->
15
15
16
- < script src ="https://ajax.googleapis .com/ajax/libs/jquery/2.2.0 /jquery.min .js "> </ script >
16
+ < script src ="https://cdnjs.cloudflare .com/ajax/libs/jquery/2.2.3 /jquery.js "> </ script >
17
17
18
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1 .0/highlight.min.js "> </ script >
19
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1 .0/languages/scala.min.js "> </ script >
18
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3 .0/highlight.min.js "> </ script >
19
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3 .0/languages/scala.min.js "> </ script >
20
20
21
- <!--diff2html-js-ui-->
21
+ <!--diff2html-js-ui-->
22
22
23
- < script >
24
- $ ( document ) . ready ( function ( ) {
25
- var diff2htmlUi = new Diff2HtmlUI ( ) ;
26
- //diff2html-fileListCloseable
27
- diff2htmlUi . highlightCode ( '#diff' ) ;
28
- } ) ;
29
- </ script >
23
+ < script >
24
+ $ ( document ) . ready ( function ( ) {
25
+ var diff2htmlUi = new Diff2HtmlUI ( ) ;
26
+ //diff2html-fileListCloseable
27
+ diff2htmlUi . highlightCode ( '#diff' ) ;
28
+ } ) ;
29
+ </ script >
30
30
</ head >
31
31
< body style ="text-align: center; font-family: 'Source Sans Pro',sans-serif; ">
32
32
< h1 > Diff to HTML by < a href ="https://github.com/rtfpessoa "> rtfpessoa</ a > </ h1 >
33
33
34
34
< div id ="diff ">
35
- <!--diff2html-diff-->
35
+ <!--diff2html-diff-->
36
36
</ div >
37
37
</ body >
38
38
</ html >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " diff2html-cli" ,
3
- "version" : " 1.4.6-beta4 " ,
3
+ "version" : " 1.4.6-beta6 " ,
4
4
"homepage" : " https://www.github.com/rtfpessoa/diff2html-cli" ,
5
5
"description" : " Fast Diff to colorized HTML" ,
6
6
"keywords" : [
34
34
"engines" : {
35
35
"node" : " >=0.12.0"
36
36
},
37
- "preferGlobal" : " true" ,
37
+ "preferGlobal" : true ,
38
38
"scripts" : {
39
- "test" : " mocha " ,
40
- "style" : " jscs src test " ,
41
- "codacy" : " istanbul cover ./node_modules/mocha/bin/ _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/ codacy-coverage && rm -rf ./ coverage"
39
+ "test" : " jscs src/*.js && istanbul cover _mocha -- -u exports -R spec ./test/**/* " ,
40
+ "style" : " jscs src/*.js " ,
41
+ "codacy" : " istanbul cover _mocha -- -u exports -R spec ./test/**/* && cat ./coverage/lcov.info | codacy-coverage"
42
42
},
43
43
"bin" : {
44
44
"diff2html" : " ./bin/diff2html"
45
45
},
46
46
"main" : " ./src/main.js" ,
47
47
"dependencies" : {
48
- "copy-paste" : " ^1.1.4 " ,
49
- "diff2html" : " ^2.0.0-beta10 " ,
48
+ "copy-paste" : " ^1.2.0 " ,
49
+ "diff2html" : " ^2.0.0-beta18 " ,
50
50
"extend" : " ^3.0.0" ,
51
51
"open" : " 0.0.5" ,
52
- "request" : " ^2.69 .0" ,
53
- "yargs" : " ^4.3.2 "
52
+ "request" : " ^2.72 .0" ,
53
+ "yargs" : " ^4.7.0 "
54
54
},
55
55
"devDependencies" : {
56
56
"codacy-coverage" : " ^1.1.3" ,
57
- "istanbul" : " ^0.4.2 " ,
58
- "jscs" : " ^2.11.0 " ,
57
+ "istanbul" : " ^0.4.3 " ,
58
+ "jscs" : " ^3.0.3 " ,
59
59
"mocha" : " ^2.4.5"
60
60
},
61
61
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
129
129
} )
130
130
. help ( 'h' )
131
131
. alias ( 'h' , 'help' )
132
- . epilog ( '© 2014 rtfpessoa\n' +
132
+ . epilog ( '© 2014-2016 rtfpessoa\n' +
133
133
'For support, check out https://github.com/rtfpessoa/diff2html-cli' )
134
134
. argv ;
135
135
You can’t perform that action at this time.
0 commit comments