Skip to content

Commit 3080f2d

Browse files
committed
Build site with JSHint from git submodule
This ensures that the site's documentation stays in sync with the version of JSHint used in the site's interactive editor.
1 parent 7eacf00 commit 3080f2d

File tree

6 files changed

+5
-10537
lines changed

6 files changed

+5
-10537
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "jshint"]
2-
path = jshint
2+
path = res/jshint
33
url = [email protected]:jshint/jshint.git

plugins/minify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (site, handlebars) {
1010
var index = [ "bootstrap.css", "codemirror.css", "styles.css" ]
1111
var docs = [ "bootstrap.css", "docs.css" ]
1212
var scripts = [ "codemirror.js", "javascript.js", "index.js" ]
13-
var jshint = [ "jshint.js" ]
13+
var jshint = [ "jshint/dist/jshint.js" ]
1414

1515
function combine(names) {
1616
var out = ""
@@ -39,7 +39,7 @@ module.exports = function (site, handlebars) {
3939
},
4040

4141
{
42-
meta: { path: "jshint.js", binary: true },
42+
meta: { path: "jshint/dist/jshint.js", binary: true },
4343
data: uglify.minify(combine(jshint), { fromString: true, output: { ascii_only: true }}).code
4444
}
4545
);

plugins/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var fs = require("fs")
33
var dox = require("dox");
44

5-
var optionsSrc = __dirname + "/../jshint/src/options.js";
5+
var optionsSrc = __dirname + "/../res/jshint/src/options.js";
66

77
dox.setMarkedOptions({
88
breaks: false

jshint renamed to res/jshint

res/jshint.js

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

res/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
importScripts("/res/jshint.js")
1+
importScripts("/res/jshint/dist/jshint.js")
22

33
self.onmessage = function (ev) {
44
var ret, req = ev.data

0 commit comments

Comments
 (0)