Skip to content

Commit de13e95

Browse files
committed
use webpack for the browser
* add webpack bundling * clean bower dependencies since we are using webpack * add jscs node style support
1 parent 9b165a9 commit de13e95

17 files changed

+1881
-2504
lines changed

bin/diff2html

Lines changed: 0 additions & 3 deletions
This file was deleted.

bower.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff2html",
3-
"version": "0.2.5-1",
3+
"version": "1.0.0-1",
44
"homepage": "http://rtfpessoa.github.io/diff2html/",
55
"description": "Fast Diff to colorized HTML",
66
"keywords": [
@@ -20,37 +20,25 @@
2020
"difftohtml",
2121
"colorized"
2222
],
23-
2423
"authors": [
2524
"Rodrigo Fernandes <[email protected]>"
2625
],
27-
2826
"repository": {
2927
"type": "git",
3028
"url": "git://github.com/rtfpessoa/diff2html.git"
3129
},
32-
3330
"main": "./src/diff2html.js",
34-
3531
"license": "MIT",
36-
3732
"moduleType": [
3833
"globals",
3934
"node"
4035
],
41-
42-
"dependencies": {
43-
"jsdiff": ">= 1.4.0"
44-
},
45-
4636
"ignore": [
4737
"**/.*",
4838
"node_modules",
4939
"bower_components",
50-
"test",
51-
"tests",
52-
"bin",
5340
"package.json",
54-
"release.sh"
41+
"release.sh",
42+
"config.jscs.json"
5543
]
5644
}

config.jscs.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"disallowKeywords": [
3+
"with"
4+
],
5+
"disallowKeywordsOnNewLine": [
6+
"else"
7+
],
8+
"disallowMixedSpacesAndTabs": true,
9+
"disallowMultipleVarDecl": "exceptUndefined",
10+
"disallowNewlineBeforeBlockStatements": true,
11+
"disallowQuotedKeysInObjects": true,
12+
"disallowSpaceAfterObjectKeys": true,
13+
"disallowSpaceAfterPrefixUnaryOperators": true,
14+
"disallowSpacesInFunction": {
15+
"beforeOpeningRoundBrace": true
16+
},
17+
"disallowSpacesInsideParentheses": true,
18+
"disallowTrailingWhitespace": true,
19+
"maximumLineLength": 120,
20+
"requireCamelCaseOrUpperCaseIdentifiers": true,
21+
"requireCapitalizedComments": true,
22+
"requireCapitalizedConstructors": true,
23+
"requireCurlyBraces": true,
24+
"requireSpaceAfterKeywords": [
25+
"if",
26+
"else",
27+
"for",
28+
"while",
29+
"do",
30+
"switch",
31+
"case",
32+
"return",
33+
"try",
34+
"catch",
35+
"typeof"
36+
],
37+
"requireSpaceAfterLineComment": true,
38+
"requireSpaceAfterBinaryOperators": true,
39+
"requireSpaceBeforeBinaryOperators": true,
40+
"requireSpaceBeforeBlockStatements": true,
41+
"requireSpaceBeforeObjectValues": true,
42+
"requireSpacesInFunction": {
43+
"beforeOpeningCurlyBrace": true
44+
},
45+
"requireTrailingComma": null,
46+
"validateIndentation": 2,
47+
"validateLineBreaks": "LF",
48+
"validateQuoteMarks": "'"
49+
}

0 commit comments

Comments
 (0)