Skip to content

Commit

Permalink
chore: better output (#1196)
Browse files Browse the repository at this point in the history
* feat: apply a better output that is confirm to `stats.toString(options.stats)`

* chore(lint): removed some typescript rules affecting js files

* fix(test): regression of webpack dev server

* chore: update compiler output

* test: added tests for pretty output

Co-authored-by: Rishabh Chawla <rishabh31121999@gmail.com>
  • Loading branch information
ematipico and rishabh3112 committed Feb 3, 2020
1 parent f25c557 commit d72f9f8
Show file tree
Hide file tree
Showing 36 changed files with 379 additions and 474 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'],
env: {
node: true,
es6: true,
Expand Down Expand Up @@ -35,8 +35,6 @@ module.exports = {
'no-unused-vars': ['error', { args: 'none' }],
'no-unsafe-negation': 'error',
'no-loop-func': 'warn',
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': 'error',
'object-curly-spacing': ['error', 'always'],
'object-curly-newline': ['error', { consistent: true }],
'@typescript-eslint/no-var-requires': 'off',
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const logger = require('../lib/utils/logger');

// Prefer the local installation of webpack-cli
if (importLocal(__filename)) {
return;
// return;
}
process.title = 'webpack';

Expand Down
94 changes: 0 additions & 94 deletions build/changelog-generator/index.js

This file was deleted.

28 changes: 0 additions & 28 deletions build/changelog-generator/templates/commit.hbs

This file was deleted.

13 changes: 0 additions & 13 deletions build/changelog-generator/templates/header.hbs

This file was deleted.

22 changes: 0 additions & 22 deletions build/changelog-generator/templates/template.hbs

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const execa = require('execa');
const WebpackCLI = require('./webpack-cli');
const { core, commands } = require('./utils/cli-flags');
Expand Down
1 change: 0 additions & 1 deletion lib/commands/external.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
// const { prompt } = require('inquirer');
// const chalk = require('chalk');
// const logger = require('../utils/logger');
Expand Down
1 change: 0 additions & 1 deletion lib/groups/advanced.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const GroupHelper = require('../utils/group-helper');
const logger = require('../utils/logger');

Expand Down
1 change: 0 additions & 1 deletion lib/groups/basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const GroupHelper = require('../utils/group-helper');

class BasicGroup extends GroupHelper {
Expand Down
1 change: 0 additions & 1 deletion lib/groups/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const { existsSync } = require('fs');
const { resolve, sep, dirname, parse } = require('path');
const { extensions } = require('interpret');
Expand Down
1 change: 0 additions & 1 deletion lib/groups/help.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const chalk = require('chalk');
const commandLineUsage = require('command-line-usage');

Expand Down
1 change: 0 additions & 1 deletion lib/groups/output.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const path = require('path');
const GroupHelper = require('../utils/group-helper');

Expand Down
1 change: 0 additions & 1 deletion lib/groups/stats.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const GroupHelper = require('../utils/group-helper');

class StatsGroup extends GroupHelper {
Expand Down
Loading

0 comments on commit d72f9f8

Please sign in to comment.