Skip to content

Commit 03d3748

Browse files
committed
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2 parents 9014901 + a1dca89 commit 03d3748

306 files changed

Lines changed: 14800 additions & 6457 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.eslintrc‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"root": true,
3-
"extends": [
4-
"eslint:recommended"
5-
],
3+
"plugins": ["node"],
4+
"extends": ["eslint:recommended", "plugin:node/recommended"],
65
"env": {
7-
"node": true,
8-
"es6": true
6+
"node": true
97
},
108
"rules": {
119
"quotes": ["error", "double"],
@@ -21,7 +19,7 @@
2119
"space-in-parens": "error",
2220
"no-trailing-spaces": "error",
2321
"no-use-before-define": "off",
24-
"no-unused-vars": "off",
22+
"no-unused-vars": ["error", {"args": "none"}],
2523
"key-spacing": "error",
2624
"space-infix-ops": "error",
2725
"no-unsafe-negation": "error",
@@ -45,3 +43,4 @@
4543
"valid-jsdoc": "error"
4644
}
4745
}
46+

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/node_modules
22
/test/js
33
/test/browsertest/js
4+
/test/fixtures/temp-cache-fixture
45
/benchmark/js
56
/benchmark/fixtures
67
/examples/*/js
78
/coverage
89
.DS_Store
910
*.log
1011
.idea
11-
yarn.lock
1212
.vscode

‎.travis.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ matrix:
3333
- os: osx
3434
fast_finish: true
3535

36+
before_script:
37+
- bash ./ci/travis-install.sh
38+
3639
script: npm run travis:$JOB_PART
3740

38-
before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
39-
install:
40-
- bash ./ci/travis-install.sh
4141
after_success:
4242
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
4343
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js

‎appveyor.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ init:
77
# what combinations to test
88
environment:
99
matrix:
10+
- nodejs_version: 7
1011
- nodejs_version: 6
1112

1213
install:
13-
- ps: Install-Product node (Get-NodeJsLatestBuild $env:nodejs_version) x64
14+
- ps: Install-Product node $env:nodejs_version x64
1415
- npm install yarn -g
1516
- yarn install
1617
- yarn link

‎bin/config-optimist.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function(optimist) {
2626
.boolean("watch").alias("watch", "w").describe("watch", "Watch the filesystem for changes")
2727
.boolean("watch-stdin").alias("watch-stdin", "stdin").describe("Exit the process when stdin is closed")
2828
.describe("watch-aggregate-timeout", "Timeout for gathering changes while watching")
29-
.describe("watch-poll", "The polling intervall for watching (also enable polling)")
29+
.describe("watch-poll", "The polling interval for watching (also enable polling)")
3030
.boolean("hot").describe("hot", "Enables Hot Module Replacement")
3131
.boolean("debug").describe("debug", "Switch loaders to debug mode")
3232
.string("devtool").describe("devtool", "Enable devtool for better debugging experience")

‎bin/config-yargs.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ module.exports = function(yargs) {
154154
describe: "Watch the filesystem for changes",
155155
group: BASIC_GROUP
156156
},
157+
"save": {
158+
type: "boolean",
159+
alias: "s",
160+
describe: "Rebuilds on save regardless of changes in watch mode",
161+
group: BASIC_GROUP
162+
},
157163
"watch-stdin": {
158164
type: "boolean",
159165
alias: "stdin",
@@ -167,7 +173,7 @@ module.exports = function(yargs) {
167173
},
168174
"watch-poll": {
169175
type: "boolean",
170-
describe: "The polling intervall for watching (also enable polling)",
176+
describe: "The polling interval for watching (also enable polling)",
171177
group: ADVANCED_GROUP
172178
},
173179
"hot": {

‎bin/convert-argv.js‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var path = require("path");
22
var fs = require("fs");
33
fs.existsSync = fs.existsSync || path.existsSync;
44
var interpret = require("interpret");
5-
var WebpackOptionsDefaulter = require("../lib/WebpackOptionsDefaulter");
65

76
module.exports = function(yargs, argv, convertOptions) {
87

@@ -226,12 +225,6 @@ module.exports = function(yargs, argv, convertOptions) {
226225
});
227226
}
228227

229-
function mapArgToPath(name, optionName) {
230-
ifArg(name, function(str) {
231-
options[optionName || name] = path.resolve(str);
232-
});
233-
}
234-
235228
function loadPlugin(name) {
236229
var loadUtils = require("loader-utils");
237230
var args = null;
@@ -473,12 +466,6 @@ module.exports = function(yargs, argv, convertOptions) {
473466
options.plugins.push(new ProvidePlugin(name, value));
474467
});
475468

476-
ifBooleanArg("labeled-modules", function() {
477-
ensureArray(options, "plugins");
478-
var LabeledModulesPlugin = require("../lib/dependencies/LabeledModulesPlugin");
479-
options.plugins.push(new LabeledModulesPlugin());
480-
});
481-
482469
ifArg("plugin", function(value) {
483470
ensureArray(options, "plugins");
484471
options.plugins.push(loadPlugin(value));

‎bin/webpack.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function processOptions(options) {
175175
if(typeof options.then === "function") {
176176
options.then(processOptions).catch(function(err) {
177177
console.error(err.stack || err);
178-
process.exit(); // eslint-disable-line
178+
process.exit(1); // eslint-disable-line
179179
});
180180
return;
181181
}
@@ -341,13 +341,14 @@ function processOptions(options) {
341341
console.error(err.stack || err);
342342
if(err.details) console.error(err.details);
343343
process.exit(1); // eslint-disable-line
344-
return;
345344
}
346345
if(outputOptions.json) {
347346
process.stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
348347
} else if(stats.hash !== lastHash) {
349348
lastHash = stats.hash;
349+
process.stdout.write("\n" + new Date() + "\n" + "\n");
350350
process.stdout.write(stats.toString(outputOptions) + "\n");
351+
if(argv.s) lastHash = null;
351352
}
352353
if(!options.watch && stats.hasErrors()) {
353354
process.on("exit", function() {

‎buildin/.eslintrc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es6": false,
5+
"browser": true
6+
}
7+
}

‎buildin/amd-define.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module.exports = function() { throw new Error("define cannot be used indirect"); };
1+
module.exports = function() {
2+
throw new Error("define cannot be used indirect");
3+
};

0 commit comments

Comments
 (0)