Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jul 6, 2019
1 parent 1b5e25c commit 2d7d1d5
Show file tree
Hide file tree
Showing 5 changed files with 517 additions and 212 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"homepage": "https://github.com/textlint/textlint-scripts",
"devDependencies": {
"husky": "^2.7.0",
"lint-staged": "^8.2.1",
"husky": "^3.0.0",
"lint-staged": "^9.0.2",
"prettier": "^1.8.1"
},
"dependencies": {
Expand All @@ -43,7 +43,7 @@
"@babel/register": "^7.4.4",
"confirmer": "^1.1.2",
"cross-spawn": "^6.0.5",
"mocha": "^5.2.0",
"mocha": "^6.1.4",
"pkg-to-readme": "^1.1.0",
"textlint-tester": "^5.1.7"
},
Expand Down
10 changes: 5 additions & 5 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
// Do this as the first thing so that any code reading it knows the right env.
process.env.NODE_ENV = "production";

var spawn = require("cross-spawn");
var args = process.argv.slice(2);
var babel = require.resolve(".bin/babel");
var babelrc = require("../configs/babelrc");
const spawn = require("cross-spawn");
const args = process.argv.slice(2);
const babel = require.resolve(".bin/babel");
const babelrc = require("../configs/babelrc");
// babel src --out-dir lib --watch --source-maps
var child = spawn(
const child = spawn(
babel,
["--presets", babelrc.presets.join(","), "--source-maps", "--out-dir", "lib", "src"].concat(args)
);
Expand Down
10 changes: 5 additions & 5 deletions scripts/init.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// LICENSE : MIT
"use strict";
var path = require("path");
var confirmer = require("confirmer");
var pkgToReadme = require("pkg-to-readme");
var fs = require("fs");
const fs = require("fs");
const path = require("path");
const confirmer = require("confirmer");
const pkgToReadme = require("pkg-to-readme");
// Update README.md
var templatePath = path.resolve(__dirname, "..", "configs", "README.md.template");
const templatePath = path.resolve(__dirname, "..", "configs", "README.md.template");
Promise.resolve()
.then(function() {
if (!fs.existsSync(path.resolve("README.md"))) {
Expand Down
10 changes: 5 additions & 5 deletions scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// LICENSE : MIT
"use strict";
process.env.NODE_ENV = "test";
var spawn = require("cross-spawn");
var args = process.argv.slice(2);
var mocha = require.resolve(".bin/mocha");
const spawn = require("cross-spawn");
const args = process.argv.slice(2);
const mocha = require.resolve(".bin/mocha");
// mocha
var babelRegisterPath = require.resolve("../configs/babel-register");
var child = spawn(mocha, ["--require", babelRegisterPath, "--timeout", "5000", "--recursive", "test/"].concat(args));
const babelRegisterPath = require.resolve("../configs/babel-register");
const child = spawn(mocha, ["--require", babelRegisterPath, "--timeout", "10000", "--recursive", "test/"].concat(args));

child.stderr.on("data", function(data) {
process.stderr.write(data);
Expand Down
Loading

0 comments on commit 2d7d1d5

Please sign in to comment.