Skip to content

Commit

Permalink
No issue: Remove /stable/ subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
valueof committed Aug 3, 2013
1 parent 1a3c47f commit 83374ad
Show file tree
Hide file tree
Showing 114 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"use strict";

var browserify = require("browserify");
var bundle = browserify("./src/stable/jshint.js");
var bundle = browserify("./src/jshint.js");
var version = require("../package.json").version;
require("shelljs/make");

if (!test("-e", "../dist"))
mkdir("../dist");

bundle.require("./src/stable/jshint.js", { expose: "jshint" });
bundle.require("./src/jshint.js", { expose: "jshint" });
bundle.bundle({}, function (err, src) {
var web = "./dist/jshint-" + version + ".js";
var rhino = "./dist/jshint-rhino-" + version + ".js";
Expand Down
2 changes: 1 addition & 1 deletion bin/jshint
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node

require("./../src/cli/cli.js").interpret(process.argv);
require("../src/cli.js").interpret(process.argv);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

"scripts": {
"build": "node make.js build",
"test": "nodeunit tests tests/stable/regression tests/stable/unit",
"test": "nodeunit tests tests/regression tests/unit",
"pretest": "jshint src"
},

"main": "./src/stable/jshint.js",
"main": "./src/jshint.js",

"dependencies": {
"shelljs": "0.1.x",
Expand Down
20 changes: 10 additions & 10 deletions src/cli/cli.js → src/cli.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use strict";

var cli = require("cli");
var path = require("path");
var shjs = require("shelljs");
var minimatch = require("minimatch");
var JSHINT = require("../stable/jshint.js").JSHINT;
var defReporter = require("../reporters/default").reporter;
var cli = require("cli");
var path = require("path");
var shjs = require("shelljs");
var minimatch = require("minimatch");
var JSHINT = require("./jshint.js").JSHINT;
var defReporter = require("./reporters/default").reporter;

var OPTIONS = {
"config": ["c", "Custom configuration file", "string", false ],
Expand Down Expand Up @@ -424,7 +424,7 @@ var exports = {
cli.options = {};

cli.enable("version", "glob", "help");
cli.setApp(path.resolve(__dirname + "/../../package.json"));
cli.setApp(path.resolve(__dirname + "/../package.json"));

var options = cli.parse(OPTIONS);
// Use config file if specified
Expand All @@ -437,18 +437,18 @@ var exports = {
// JSLint reporter
case options.reporter === "jslint":
case options["jslint-reporter"]:
options.reporter = "../reporters/jslint_xml.js";
options.reporter = "./reporters/jslint_xml.js";
break;

// CheckStyle (XML) reporter
case options.reporter === "checkstyle":
case options["checkstyle-reporter"]:
options.reporter = "../reporters/checkstyle.js";
options.reporter = "./reporters/checkstyle.js";
break;

// Reporter that displays additional JSHint data
case options["show-non-errors"]:
options.reporter = "../reporters/non_error.js";
options.reporter = "./reporters/non_error.js";
break;

// Custom reporter
Expand Down
4 changes: 2 additions & 2 deletions src/stable/jshint.js → src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

var _ = require("underscore");
var events = require("events");
var vars = require("../shared/vars.js");
var messages = require("../shared/messages.js");
var vars = require("./vars.js");
var messages = require("./messages.js");
var Lexer = require("./lex.js").Lexer;
var reg = require("./reg.js");
var state = require("./state.js").state;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/cli.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";

var path = require("path");
var shjs = require("shelljs");
var path = require("path");
var shjs = require("shelljs");
var sinon = require("sinon");
var cli = require("../src/cli/cli.js");
var cli = require("../src/cli.js");

exports.group = {
setUp: function (cb) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/*jshint node: true, eqnull: true*/

var JSHINT = require('../../../src/stable/jshint.js').JSHINT;
var JSHINT = require('../../src/jshint.js').JSHINT;

if (exports.setup === undefined || exports.setup === null) {
exports.setup = {};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/stable/regression/npm.js → tests/regression/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports.npm = function (test) {
var jshint;
test.ok(jshint = require(__dirname + '/../../../'));
test.ok(jshint = require(__dirname + '/../../'));
test.equal(typeof(jshint.JSHINT), 'function');
test.done();
};
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/stable/unit/core.js → tests/unit/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var JSHINT = require('../../../src/stable/jshint.js').JSHINT;
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;

Expand Down
2 changes: 1 addition & 1 deletion tests/stable/unit/envs.js → tests/unit/envs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

var JSHINT = require('../../../src/stable/jshint.js').JSHINT;
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/stable/unit/options.js → tests/unit/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"use strict";

var JSHINT = require('../../../src/stable/jshint.js').JSHINT;
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require('../helpers/testhelper').setup.testRun;
var fixture = require('../helpers/fixture').fixture;
Expand Down
2 changes: 1 addition & 1 deletion tests/stable/unit/parser.js → tests/unit/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

var JSHINT = require('../../../src/stable/jshint.js').JSHINT;
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;
var path = require("path");
Expand Down

0 comments on commit 83374ad

Please sign in to comment.