Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #250 from PolymerX/chore/deps-news
Browse files Browse the repository at this point in the history
Chore/deps news
  • Loading branch information
LasaleFamine authored Oct 5, 2019
2 parents 74695cf + 56d929f commit 016c910
Show file tree
Hide file tree
Showing 10 changed files with 2,596 additions and 1,714 deletions.
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@
"polymer-workbox"
],
"dependencies": {
"@babel/core": "7.4.3",
"@babel/core": "7.6.2",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-syntax-object-rest-spread": "7.2.0",
"@babel/preset-env": "7.4.3",
"@babel/register": "7.4.0",
"babel-loader": "8.0.5",
"@babel/preset-env": "7.6.2",
"@babel/register": "7.6.2",
"babel-loader": "8.0.6",
"chalk": "2.4.2",
"clean-webpack-plugin": "1.0.1",
"clean-webpack-plugin": "1.0.0",
"cli-table": "0.3.1",
"console-clear": "1.1.1",
"copy-webpack-plugin": "5.0.3",
"devcert-san": "0.3.3",
"ejs-loader": "0.3.1",
"ejs-loader": "0.3.5",
"execa": "1.0.0",
"find-node-modules": "2.0.0",
"get-port": "5.0.0",
Expand All @@ -76,30 +76,30 @@
"phunctional": "0.2.1",
"pify": "4.0.1",
"postcss-loader": "3.0.0",
"raw-loader": "2.0.0",
"replace-in-file": "3.4.3",
"script-ext-html-webpack-plugin": "2.1.3",
"raw-loader": "1.0.0",
"replace-in-file": "3.4.2",
"script-ext-html-webpack-plugin": "2.1.4",
"update-notifier": "2.5.0",
"validate-npm-package-name": "3.0.0",
"webpack": "4.35.2",
"webpack-dev-server": "3.2.1",
"webpack-merge": "4.2.1",
"webpack": "4.41.0",
"webpack-dev-server": "3.8.2",
"webpack-merge": "4.2.2",
"which": "1.3.1",
"workbox-webpack-plugin": "3.6.3",
"yargs": "13.2.2"
},
"devDependencies": {
"@babel/cli": "7.4.3",
"ava": "1.2.1",
"codecov": "3.3.0",
"@babel/cli": "7.6.2",
"ava": "2.4.0",
"codecov": "3.6.1",
"glob": "7.1.4",
"ncp": "2.0.0",
"nyc": "13.3.0",
"puppeteer": "1.13.0",
"rimraf": "2.6.3",
"standard-version": "6.0.1",
"uuid": "3.3.2",
"xo": "0.24.0"
"nyc": "14.1.1",
"puppeteer": "1.20.0",
"rimraf": "3.0.0",
"standard-version": "7.0.0",
"uuid": "3.3.3",
"xo": "0.25.3"
},
"ava": {
"files": [
Expand All @@ -109,6 +109,7 @@
"xo": {
"space": true,
"rules": {
"require-atomic-updates": 0,
"max-len": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion src/check-version.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const colors = require('chalk');
const pkg = require('./../package.json');

const version = parseFloat(process.version.substr(1), 10);
const version = parseFloat(process.version.slice(1), 10);
const minimum = parseFloat(pkg.engines.node.match(/\d+/g).join('.'), 10);

const write = message => process.stdout.write(message) + '\n';
Expand Down
4 changes: 2 additions & 2 deletions src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export default asyncCommand({
// Be sure to show errors/warnings if present
showStats(results);
endMessage(results.toJson().assets);
} catch (error) {
console.error('\n' + error);
} catch (error_) {
console.error('\n' + error_);
}

// if (argv.json) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getAuthor = async () => {
return `${user ? user.name : ''} <${user ? user.email : ''}>`;
};

const capitalize = str => str.charAt(0).toUpperCase() + str.substring(1);
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1);
const completeData = async (argv, spinner) => {
const questions = isMissing(argv);
if (questions.length > 0) {
Expand Down
5 changes: 2 additions & 3 deletions src/lib/async-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

const done = (err, result) => {
return err ?
process.stderr.write(String(err) + '\n') &&
process.exit(err.exitCode || 1) :
result ? process.stdout.write(result + '\n') : process.exit(0);
(process.stderr.write(String(err) + '\n') && process.exit(err.exitCode || 1)) :
(result ? process.stdout.write(result + '\n') : process.exit(0));
};

export default function asyncCommand(options) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const textify = (logoASCII, text, useColor) => {
const index = words[i].indexOf('\n');
if (~index) {
words
.splice(i, 1, words[i].substring(0, index), '\n', words[i].substring(index + 1));
.splice(i, 1, words[i].slice(0, index), '\n', words[i].slice(index + 1));
i += 2;
}
}
Expand Down Expand Up @@ -66,7 +66,7 @@ const textify = (logoASCII, text, useColor) => {
if (useColor) {
for (let index = 3; index <= height; index++) {
logo[index] = color(
COLOR_CODE, logo[index].substring(0, start)) + color(0, logo[index].substring(start)
COLOR_CODE, logo[index].slice(0, start)) + color(0, logo[index].slice(start)
);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/replace-owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default (keeps, name, author) => {
['name', 'short_name'].forEach(str => {
dict.set(new RegExp(`"${str}": ".+"`, 'g'), `"${str}": "${name}"`);
});

/* eslint-disable-next-line prefer-regex-literals */
dict.set(new RegExp('"author": ".+"', 'g'), `"author": "${author}"`);

for (const entry of keeps) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/webpack/helpers/WebpackConfigHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default class WebpackConfigHelpers {
try {
fs.statSync(template);
isPath = true;
} catch (error) {}
} catch (_) {}

const templatePath = isPath ? `!!ejs-loader!${path.resolve(this._cwd, template)}` : template;
const {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/webpack/transform-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function (env, config) {

try {
await fs.stat(transformerPath);
} catch (error) {
} catch (_) {
if (env.config) {
throw new Error(`polymerx-cli config could not be loaded!\nFile ${env.config} not found.`);
}
Expand Down
Loading

0 comments on commit 016c910

Please sign in to comment.