Tobias Koppers
ad8f496745
arrow functions, remove or improve eslint-disable comments
2018-06-27 13:48:13 +02:00
Spencer Elliott
2b4ed3d942
require() webpack-cli/webpack-command's bin module
...
Rather than require()-ing the "main" module in webpack-cli/
webpack-command, require() the "bin" module.
This avoids the issue described in
https://github.com/webpack-contrib/webpack-command/pull/30
where installing packages in this order results in no output from
./node_modules/.bin/webpack:
$ npm install webpack-command
$ npm install webpack
$ ./node_modules/.bin/webpack
# exit 0 with no output
2018-06-25 10:24:52 -07:00
Tobias Koppers
92bcb81ede
wording, optimizations, types, cleanup
2018-05-15 17:06:30 +02:00
evilebottnawi
5230740f6f
feat(cli): support `webpack-command`
2018-05-14 17:31:12 +03:00
Tobias Koppers
30c35abb44
use shell mode for windows support
2018-03-29 17:06:10 +02:00
Tobias Koppers
8d8da4cdff
Merge branch 'master' into bump_prettier
2018-03-29 11:48:02 +02:00
Tobias Koppers
e500384bbd
Remove duplication
2018-03-13 09:36:10 +01:00
Tobias Koppers
dfc2396628
Set exit code when installation failed
2018-03-13 09:34:57 +01:00
Tobias Koppers
c086dfa14d
fix lint
2018-03-09 09:37:41 +01:00
PlayMa256
1abef28830
Replace requirer with node readline
...
Removing inquirer and updating package.json
2018-03-09 09:37:36 +01:00
PlayMa256
f7af10a0e1
* Pipe stdout and stderr from child_process to main process
...
* code refactoring and using promises
2018-03-09 09:33:43 +01:00
PlayMa256
18773b133a
Simplifying package manager choice and command options
2018-03-09 09:33:29 +01:00
PlayMa256
73d36c07f6
Refactor require statements
2018-03-09 09:33:28 +01:00
PlayMa256
180e2b7dd2
* Pipe stdout and stderr from child_process to main process
...
* code refactoring and using promises
2018-03-09 09:33:18 +01:00
PlayMa256
58b67248e8
Refactor to scope command detection inside question
2018-03-09 09:32:59 +01:00
PlayMa256
67651ae69d
small refactor over calls
...
Refactor back to resolve.request
Add installation if webpack-cli is not present
2018-03-09 09:32:54 +01:00
matheus.g.silva
d4115a65a7
Add installation if webpack-cli is not present
2018-03-09 09:13:33 +01:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Tobias Koppers
0d533b860f
replace tab with space
2018-01-03 21:06:04 +01:00
Tobias Koppers
e3f1002f90
fix linting
2018-01-03 19:56:23 +01:00
Tobias Koppers
1886b7a5cb
Merge branch 'master' into next
...
# Conflicts:
# bin/webpack.js
# lib/Compilation.js
# yarn.lock
2017-12-29 11:17:10 +01:00
Wèi Cōngruì
3823eae5b0
Use process.exitCode instead of process.exit in compilerCallback
2017-12-26 13:54:26 +08:00
Tobias Koppers
272a632ea7
webpack-cli should be added as devDependency
2017-12-13 15:05:12 +01:00
Tobias Koppers
079b5f6275
remove dependencies, ask for installing webpack-cli when using the CLI
2017-12-13 11:58:37 +01:00
Even Stensberg
cdefea844e
update dependency
2017-12-06 01:46:58 +01:00
Even Stensberg
4b0332d390
sync webpack-cli with changes in bin/* and binCases
...
remove old bin code
try using the cli folder for bInTestCases
update folders in binTestCases
increase callback timeout to see if that helps
update cli-dep
remove redundant console.log
2017-12-06 01:45:43 +01:00
Tobias Koppers
dae9de6595
Merge branch 'next' into feature/validate-plugin-options
...
# Conflicts:
# lib/SourceMapDevToolPlugin.js
# lib/optimize/AggressiveSplittingPlugin.js
# yarn.lock
2017-11-28 09:59:59 +01:00
Sergey Petushkov
6d7df9daad
Add marker fn; Refactor cutOff method; Check error when options are parsed
2017-11-27 08:43:27 +01:00
Sergey Petushkov
b0fe0138ee
Add error helpers; Add try-catch to options evaluation
2017-11-25 21:49:59 +01:00
Tobias Koppers
2201b860a5
Add mode option and choose defaults depending on mode
...
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers
b7c746d73f
Merge branch 'master' into next
2017-11-10 07:58:18 +01:00
Michael Ciniawsky
a88fdc74bf
refactor(bin/webpack): use `err.name` for error handling
2017-11-07 10:37:09 +01:00
Tobias Koppers
814c894168
Merge branch 'master' into next
...
# Conflicts:
# lib/optimize/CommonsChunkPlugin.js
# test/statsCases/limit-chunk-count-plugin/expected.txt
# test/statsCases/named-chunks-plugin-async/expected.txt
# test/statsCases/optimize-chunks/expected.txt
2017-10-16 10:47:17 +02:00
Joe Bottigliero
33223aa3d4
[ #4886 ] --env output
...
- Adds stats.env to enable the out put of --env arguments passed to the webpack configuration.
2017-10-11 20:37:30 -05:00
Tobias Koppers
65dfc15807
Merge branch 'master' into next
...
# Conflicts:
# test/statsCases/external/expected.txt
2017-09-22 19:52:31 +02:00
薛定谔的猫
5227452aae
Fix: incorrect comparing to undefined.
2017-09-20 22:39:22 +08:00
Tobias Koppers
1ff24a7bab
Merge pull request #5359 from esbenp/cli-prepend-plugins-4260
...
prepend plugins instead of append when defined through CLI
2017-09-14 09:24:10 +02:00
Gyandeep Singh
4f5e78bc0f
Use statsSync isDirectory to check dir
2017-09-05 21:25:41 -05:00
Gyandeep Singh
cedc09dbe6
Fix: Add path separator to avoid file and folder name mixup( fixes #5576 )
2017-09-04 15:23:54 -05:00
Civa Lin
5a2f7ead82
fix: cli --watch-poll not accept number correctly
...
The document say "--watch-poll" option can determine "The polling
interval for watching (also enable polling)". But the previous
implement only accept boolean value and no way to set the interval.
This patch try to fix this problem by allow number input like this:
"--watch-poll=100".
This patch also try to keep the original behavior not be changed as much
as possible. So "--watch-poll" and "--watch-poll=true" are still
acceptable (enable the polling ability).
But still has one incompatible change: original "--watch-poll=" mean
disable polling but after this fix it mean enable polling. It's due to
yargs can not differentiate the different between "--watch-poll" and
"--watch-poll=" when using string type option. So no way to workaround
for this problem.
2017-08-15 09:52:01 +08:00
Tobias Koppers
a569764060
Merge pull request #5457 from tomek-d/resolve-extensions-typo
...
Fixed bug in --resolve-extensions parameter documentation
2017-08-08 08:17:11 +02:00
tomek
29d1336cd2
Fixed bug in --resolve-extensions parameter documentation
2017-08-07 22:33:21 +02:00
Tobias Koppers
2acaf76dc3
Merge branch 'master' into fix-help-output-test-5345
...
# Conflicts:
# bin/webpack.js
2017-08-07 09:02:43 +02:00
Tobias Koppers
20d6f23d0a
stay with the old code style
2017-08-07 08:57:49 +02:00
Tobias Koppers
7a7c8372c3
Use yargs.parse instead of exitProcess(false)
...
This is simpler and less hacky
2017-08-07 08:55:56 +02:00
Esben Petersen
1fa2ba750c
fix beautify test
2017-08-04 10:17:07 +02:00
Esben Petersen
4b4de819f7
fix code style
2017-08-03 12:36:24 +02:00
Tomáš Polomský
bb7d69def0
Fix exit code and ELIFECYCLE error
...
Due to race condition (process.exit() called multiple times) sometimes process fails with error ELIFECYCLE. In that case process exits with exit code 0 but should exit with exit code 2. This change ensures that the race condition can not happened.
2017-07-25 17:20:16 +02:00
Esben Petersen
183e649e8d
ensure plugins array in addPlugin method
2017-07-25 13:58:45 +02:00
Esben Petersen
1daa844d56
add check for validation errors top stop normal cli flow
...
see #5345
2017-07-24 22:38:18 +02:00