Browse Source

Sort "require" calls by variable names and group them

This makes things consistent and reduces thinking about "require"
ordering.
redux
David Majda 5 years ago
parent
commit
60821bb80b
  1. 2
      benchmark/index.js
  2. 5
      benchmark/run
  3. 6
      benchmark/server
  4. 4
      lib/compiler/passes/generate-bytecode.js
  5. 2
      lib/compiler/passes/generate-js.js
  6. 6
      spec/server

2
benchmark/index.js

@ -2,8 +2,8 @@
/* eslint-env browser, jquery */
let benchmarks = require("./benchmarks.js");
let Runner = require("./runner.js");
let benchmarks = require("./benchmarks.js");
$("#run").click(() => {
// Results Table Manipulation

5
benchmark/run

@ -5,10 +5,9 @@
/* eslint-env node */
/* eslint no-console: 0*/
let fs = require("fs");
let benchmarks = require("./benchmarks.js");
let Runner = require("./runner.js");
let benchmarks = require("./benchmarks.js");
let fs = require("fs");
// Results Table Manipulation

6
benchmark/server

@ -9,11 +9,11 @@
// and the benchmark get passed through Babel & Browserify before they are
// served to the browser.
let babelify = require("babelify");
let browserify = require("browserify");
let express = require("express");
let logger = require("morgan");
let glob = require("glob");
let browserify = require("browserify");
let babelify = require("babelify");
let logger = require("morgan");
let app = express();

4
lib/compiler/passes/generate-bytecode.js

@ -1,9 +1,9 @@
"use strict";
let asts = require("../asts");
let visitor = require("../visitor");
let op = require("../opcodes");
let js = require("../js");
let op = require("../opcodes");
let visitor = require("../visitor");
// Generates bytecode.
//

2
lib/compiler/passes/generate-js.js

@ -1,8 +1,8 @@
"use strict";
let asts = require("../asts");
let op = require("../opcodes");
let js = require("../js");
let op = require("../opcodes");
// Generates parser JavaScript code.
function generateJS(ast, options) {

6
spec/server

@ -9,11 +9,11 @@
// the specs get passed through Babel & Browserify before they are served to the
// browser.
let babelify = require("babelify");
let browserify = require("browserify");
let express = require("express");
let logger = require("morgan");
let glob = require("glob");
let browserify = require("browserify");
let babelify = require("babelify");
let logger = require("morgan");
let app = express();

Loading…
Cancel
Save