Commit Graph

157 Commits

Author SHA1 Message Date
Bazyli Brzóska 75253e7154 Merge branch 'master' of https://github.com/webpack/webpack into jest
# Conflicts:
#	.eslintrc.js
#	package.json
#	test/BenchmarkTestCases.benchmark.js
#	test/ConfigTestCases.test.js
#	test/NodeWatchFileSystem.unittest.js
#	test/TestCases.test.js
#	test/WatcherEvents.test.js
#	test/cases/parsing/extract-require/index.js
#	test/configCases/parsing/harmony-this/index.js
#	test/statsCases/async-commons-chunk/expected.txt
#	yarn.lock
2018-04-10 23:36:20 +02:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
byzyk f513065227 fix: throw validation error when exclamation mark was found in path 2018-03-15 12:24:40 +04:00
Bazyli Brzóska b579658d22 Merge branch 'profiling-race' into jest
# Conflicts:
#	lib/debug/ProfilingPlugin.js
#	test/ConfigTestCases.test.js
#	test/DependenciesBlockVariable.unittest.js
#	test/Examples.test.js
#	test/ExternalModule.unittest.js
#	test/HotTestCases.test.js
#	test/Schemas.lint.js
#	test/WebEnvironmentPlugin.unittest.js
#	test/cases/mjs/non-mjs-namespace-object-lazy/index.js
#	test/cases/runtime/module-caching/index.js
#	test/compareLocations.unittest.js
#	test/configCases/library/1-use-library/index.js
#	test/configCases/plugins/define-plugin/index.js
#	yarn.lock
2018-03-07 21:56:06 +01:00
kvrlk 97c9a6d84b
fix 2018-02-27 22:41:31 +02:00
kvrlk 95adc93452
tests 2018-02-27 22:31:58 +02:00
Josh Soref 2c30ef37f8 spelling: passer 2018-02-26 02:39:15 +00:00
Bazyli Brzóska 36e8e30875 run prettier on existing code 2018-02-25 11:46:17 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol cd419d0546 Migrate integration tests to Jest 2018-01-24 17:29:57 +01:00
Sean Larkin 4b381b1eaa Merge branch 'next' into feature/add-entry-default-value 2017-12-30 18:23:53 -06: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
jaketodaro fb4070442a support functions for templated string config properties
Any config property that accepts a templated string (e.g. '[name].js')
can now accept a function that returns a templated string.

```
{
    output: {
        filename: () => '[name].js'
    }
}
```

Closes #6098
2017-12-22 07:28:16 -08:00
Sean Larkin 5e8700f5c5 feat(defaults): add fixed defaults 2017-12-18 12:18:07 -08:00
Tobias Koppers 5cbd6b20dd allow to set sideEffects from rules 2017-12-14 13:08:57 +01:00
Tobias Koppers 9870165069
Merge pull request #6008 from EugeneHlushko/bugfix-issue-6003
Lookup the provided plugins on the options, throw for invalid arguments.
2017-11-27 07:48:07 +01:00
EugeneHlushko 89ef8e084d Add options.plugins schema validation: Make beautifier happy again 2017-11-26 13:43:14 +02:00
EugeneHlushko 0c9707f832 Add options.plugins schema validation: CR changes on wording 2017-11-26 13:42:18 +02:00
EugeneHlushko 0677c6e411 Add options.plugins schema validatio: Move away from error parsing to comparing the whole message 2017-11-24 19:52:47 +02:00
EugeneHlushko 70c50ea8f1 Add options.plugins schema validation, ensure apply method is present. Add tests 2017-11-24 18:54:48 +02: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 5e39ec46ee Allow to override resolve configuration 2017-11-18 08:12:35 +01:00
Tobias Koppers a53672d1a2 Merge branch 'master' into next
# Conflicts:
#	lib/EvalSourceMapDevToolModuleTemplatePlugin.js
#	lib/dependencies/HarmonyDetectionParserPlugin.js
#	lib/dependencies/HarmonyImportDependency.js
#	package.json
#	schemas/webpackOptionsSchema.json
#	test/Validation.test.js
2017-11-17 16:03:46 +01:00
Tobias Koppers a97b120e5a
Merge pull request #5963 from webpack/lint/add-missing-files
add linting for test/*.js too
2017-11-16 14:07:52 +01:00
Tobias Koppers e481ea53fd add linting for schemas
add missing descriptions in schema
2017-11-16 13:15:15 +01:00
Tobias Koppers 5941ab0d0c fix linting errors 2017-11-15 14:08:11 +01:00
Tobias Koppers 65e855c636 fix deprecations 2017-11-11 11:27:02 +01:00
Michael Ciniawsky a88fdc74bf refactor(bin/webpack): use `err.name` for error handling 2017-11-07 10:37:09 +01:00
Joe Bottigliero e0d4501fab [fix] webpackOptionsSchema
- Updates webpackOptionsSchema "stats" object to include "additionalProperties: false"
- Adds missing stats options
- Adds test for ensuring new stats options fail the schema check (if not included)
2017-10-13 17:12:24 -05:00
Tobias Koppers 930c019bef fix validation output test 2017-08-11 16:22:46 +02:00
Tobias Koppers 2fe82af05d Suggest course of action 2017-03-24 22:29:55 +01:00
Tobias Koppers 10c44e5a94 fix extra newline in validation 2017-03-22 12:24:18 +01:00
Tobias Koppers fbf84d51f2 allow to apply plugins to child compiler
allow to match on compiler name in rules

#4177
2017-02-22 11:49:49 +01:00
Tobias Koppers 2932a5aa00 Merge pull request #4051 from shubheksha/refactor-test-Validation
refactor(ES6): Validation.test.js
2017-02-09 23:36:21 +01:00
Tim Sebastian b32054d4c0 rename `non-absolut` to `relative` 2017-02-10 07:47:46 +11:00
Tim Sebastian 8ecae31c67 clean up schema check output by adding absolutePath explicitly to WebpackOptionsValidationError 2017-02-08 22:54:55 +11:00
Tim Sebastian 7d0a442183 add two tests for non-absolute and absolute paths check 2017-02-04 00:49:38 +11:00
Shubheksha Jalan 83a084c43f refactor(ES6): Validation.test.js 2017-02-03 14:21:25 +01:00
Tim Sebastian 8ccf068c59 fix linting issues of touched files 2017-02-02 22:56:41 +11:00
Tim Sebastian 3ba9ed99c0 fix existing tests that failed schema validaton 2017-02-02 22:36:15 +11:00
songawee fe217ab7e7 refactor of ValidateSchema and Validation.test to es6 2017-01-21 10:43:22 -07:00
Naoyuki Kanezawa a22b00e23d Dynamic entry support (#3634)
* enable to set a function to entry option

* add tests for entry function

* fix style

* fix identifier and readableIdentifier of MultiModule

* use arrow functions

* use arrow function

* remove incorrect new operators

* fix Validation tests
2017-01-09 01:31:49 -06:00
Eduard Kyvenko 29a1b54564 Added better validation for entry in option schema (#3567)
Added better validation for entry in option schema (#3567)

* Added better validation for entry in option schema

* Fixed option validation schema

* Improved error reporting for empty entry bundle

* Added a test for empty entry bundle
2017-01-03 23:23:57 -06:00
Tobias Koppers 9598f6484e add another test case 2016-12-14 13:34:30 +01:00
Tobias Koppers 3c1086303f Improve validation errors 2016-12-14 11:34:57 +01:00
Sean Larkin 000dae1889 fix(tests): Updated tests across the board to work with perf budgets 2016-12-07 17:22:13 +01:00
Tobias Koppers efa3fc058b added resourceQuery condition
added function use to schema
2016-11-23 12:12:32 +01:00
Kees Kluskens 9158378f44 ... and update tests too 2016-11-04 00:31:49 +01:00
Kees Kluskens c8fd638036 Fix validation schema accepting invalid values when `instanceof` is used 2016-11-03 23:52:59 +01:00
Kostas Manionis 36b7f21b92 Fix plugin typos in options validation 2016-09-28 13:54:46 +03:00
Tobias Koppers 99a34ccb8a fix test 2016-09-21 17:44:57 +02:00
Tobias Koppers c231fe3e9d fixed Validation message 2016-09-21 17:27:07 +02:00
Tobias Koppers a9d0319a40 beautify 2016-09-20 20:54:09 +02:00
Tobias Koppers 28498b7376 fixed max line length 2016-09-20 20:29:07 +02:00
Tobias Koppers 7f31a49581 special error message for custom properties in configuration 2016-09-20 20:18:52 +02:00
Tobias Koppers a6a389c5c0 fixed order in test 2016-09-20 19:53:42 +02:00
Tobias Koppers 8c3d97d933 add test
better error messages
validate array
more options in schema
stricter schema
fix some old configs
2016-09-19 00:54:35 +02:00