package/package.json000644 0000011527 3560116604 011554 0ustar00000000 000000 { "name": "webpack-cli", "version": "3.3.10", "description": "CLI for webpack & friends", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/webpack/webpack-cli.git" }, "bin": { "webpack-cli": "./bin/cli.js" }, "main": "./bin/cli.js", "engines": { "node": ">=6.11.5" }, "keywords": [ "webpack", "cli", "scaffolding", "module", "bundler", "web" ], "files": [ "bin", "scripts" ], "scripts": { "bootstrap": "npm run clean:all && npm install && lerna bootstrap", "build": "tsc", "changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile CHANGELOG.md --same-file", "clean:all": "rimraf node_modules packages/*/{node_modules}", "format": "npm run format:js && npm run format:ts", "format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write", "format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write", "lint": "eslint \"./bin/*.js\" \"./bin/**/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.ts\" \"packages/**/!(node_modules)/**/*.ts\"", "pretest": "npm run build && npm run lint", "reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov", "test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit", "test:cli": "nyc jest test/ --maxWorkers=4 --reporters=default --reporters=jest-junit", "test:packages": "nyc jest packages/ --maxWorkers=4 --reporters=default --reporters=jest-junit", "test:ci": "nyc jest --maxWorkers=$(nproc) --reporters=default --reporters=jest-junit", "travis:integration": "npm run build && npm run test && npm run reportCoverage", "travis:lint": "npm run build && npm run lint", "watch": "npm run build && tsc -w", "publish:monorepo": "npm run format && npm run test && lerna publish -m \"chore: monorepo version update\"" }, "husky": { "hooks": { "pre-commit": "lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { "*.md": [ "prettier --parser markdown --write", "git add" ], "{packages,bin}/**/!(__testfixtures__)/**.js": [ "eslint --fix", "git add" ], "*.ts": [ "npm run format:ts", "git add" ], "*.js": [ "npm run format:js", "git add" ] }, "jest": { "testPathIgnorePatterns": [ "/node_modules/" ], "testEnvironment": "node", "collectCoverage": true, "coverageReporters": [ "json", "html", "cobertura" ], "transform": { "^.+\\.(ts)?$": "ts-jest" }, "testRegex": [ "/__tests__/.*\\.(test.js|test.ts)$", "/test/.*\\.(test.js|test.ts)$" ], "moduleFileExtensions": [ "ts", "js", "json" ] }, "nyc": { "include": [ "bin/**.js", "packages/**/*.js" ], "reporter": [ "lcov" ], "all": true }, "config": { "commitizen": { "path": "./node_modules/cz-customizable" }, "cz-customizable": { "config": "./.cz-config.js" } }, "dependencies": { "chalk": "2.4.2", "cross-spawn": "6.0.5", "enhanced-resolve": "4.1.0", "findup-sync": "3.0.0", "global-modules": "2.0.0", "import-local": "2.0.0", "interpret": "1.2.0", "loader-utils": "1.2.3", "supports-color": "6.1.0", "v8-compile-cache": "2.0.3", "yargs": "13.2.4" }, "peerDependencies": { "webpack": "4.x.x" }, "devDependencies": { "@babel/preset-env": "7.4.5", "@babel/register": "7.4.4", "@commitlint/cli": "8.1.0", "@commitlint/config-lerna-scopes": "8.0.0", "@commitlint/travis-cli": "8.0.0", "@strictsoftware/typedoc-plugin-monorepo": "0.2.1", "@types/jest": "24.0.15", "@types/node": "12.0.8", "@typescript-eslint/eslint-plugin": "1.10.2", "@typescript-eslint/parser": "1.10.2", "babel-preset-env": "1.7.0", "babel-preset-jest": "24.6.0", "codecov": "3.5.0", "commitizen": "4.0.3", "commitlint": "^8.1.0", "commitlint-config-cz": "0.12.0", "conventional-changelog-cli": "2.0.21", "cz-customizable": "6.2.0", "eslint": "5.16.0", "eslint-config-prettier": "5.0.0", "eslint-plugin-node": "9.1.0", "eslint-plugin-prettier": "3.1.0", "esm": "3.2.25", "execa": "1.0.0", "husky": "2.4.1", "jest": "24.8.0", "jest-cli": "24.8.0", "jest-junit": "6.4.0", "lerna": "3.15.0", "lint-staged": "8.2.1", "nyc": "14.1.1", "prettier": "1.18.2", "prettier-eslint-cli": "5.0.0", "readable-stream": "3.4.0", "rimraf": "2.6.3", "schema-utils": "1.0.0", "ts-jest": "24.0.2", "ts-node": "8.3.0", "typescript": "3.5.2", "webpack": "4.x.x", "webpack-dev-server": "3.7.2" } } package/CHANGELOG.md000644 0000275106 3560116604 011104 0ustar00000000 000000 # 3.3.10 (2019-10-31) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.9...v3.3.10) ## New Features - add new flag and patch sec dep ([#1102](https://github.com/webpack/webpack-cli/pull/1102)) ## Chore - remove un-synced tests ([08a7650](https://github.com/webpack/webpack-cli/commit/08a7650)) - sec patch ([6ad6099](https://github.com/webpack/webpack-cli/commit/6ad6099)) # 3.3.9 (2019-09-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.8...v3.3.9) ## Fix - use process.exitCode instead of process.exit in compilerCallback ([ee001bd](https://github.com/webpack/webpack-cli/commit/ee001bd)) # 3.3.8 (2019-09-05) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.7...v3.3.8) ## Chore - remove lint err ([4275fd5](https://github.com/webpack/webpack-cli/commit/4275fd5)) - abstract validation ([065e87e](https://github.com/webpack/webpack-cli/commit/065e87e)) - vuln patch ([55b770c](https://github.com/webpack/webpack-cli/commit/55b770c)) ## Fix - support both webpack versions ([d28f9f5](https://github.com/webpack/webpack-cli/commit/d28f9f5)) ## Tests - add schema tests ([70bf934](https://github.com/webpack/webpack-cli/commit/70bf934)) # 3.3.7 (2019-08-18) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.6...v3.3.7) ## Chore - resolve differently ([45b9127](https://github.com/webpack/webpack-cli/commit/45b9127)) - update lockfile & pass nil ([43fc033](https://github.com/webpack/webpack-cli/commit/43fc033)) - lock deps ([97d5c75](https://github.com/webpack/webpack-cli/commit/97d5c75)) - lock deps ([635bfa3](https://github.com/webpack/webpack-cli/commit/635bfa3)) ## Fix - resolve opts when no-config ([fb31cc4](https://github.com/webpack/webpack-cli/commit/fb31cc4)) # 3.3.6 (2019-07-14) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.5...v3.3.6) ## Chore - serve: refactor code to be more concise ([d2e3e80](https://github.com/webpack/webpack-cli/commit/d2e3e80)) - utils: fixes typo in scaffold ([bd5c1ce](https://github.com/webpack/webpack-cli/commit/bd5c1ce)) - fix sec vuln ([110fa5e](https://github.com/webpack/webpack-cli/commit/110fa5e)) - prevent weird behaviour of pre-commit hook ([#973](https://github.com/webpack/webpack-cli/pull/973)) - include comments ([941da90](https://github.com/webpack/webpack-cli/commit/941da90)) ## Docs - remove deprecated packages description ([#979](https://github.com/webpack/webpack-cli/pull/979)) ## Fix - minor refactor ([a30a027](https://github.com/webpack/webpack-cli/commit/a30a027)) - update comments ([7553ae7](https://github.com/webpack/webpack-cli/commit/7553ae7)) - minor fix ([0d9aa9a](https://github.com/webpack/webpack-cli/commit/0d9aa9a)) # 3.3.5 (2019-06-23) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.4...v3.3.5) ## Chore - remove donation section ([76b75ac](https://github.com/webpack/webpack-cli/commit/76b75ac)) - update pkg lock ([8913928](https://github.com/webpack/webpack-cli/commit/8913928)) - deps: update major versions ([#969](https://github.com/webpack/webpack-cli/pull/969)) - packages: lock dependencies versions ([#958](https://github.com/webpack/webpack-cli/pull/958)) - scripts: clean opencollective ([cd54ba5](https://github.com/webpack/webpack-cli/commit/cd54ba5)) - scripts: clean postinstall ([0c1f6b6](https://github.com/webpack/webpack-cli/commit/0c1f6b6)) - ts: enables source map in the ts ([#961](https://github.com/webpack/webpack-cli/pull/961)) - added await in order to resolve the pending promise ([#948](https://github.com/webpack/webpack-cli/pull/948)) ## CLI - remove donation prompt ([a37477d](https://github.com/webpack/webpack-cli/commit/a37477d)) ## Fix - deps: move prettier from dependencies to devDependencies ([#968](https://github.com/webpack/webpack-cli/pull/968)) - change "usr strict" to "use strict" ([670efc7](https://github.com/webpack/webpack-cli/commit/670efc7)) - update deps ([69f364e](https://github.com/webpack/webpack-cli/commit/69f364e)) # 3.3.4 (2019-06-11) [Full Changelog](https://github.com/webpack/webpack-cli/compare/3.3.3...3.3.4) ## New Features - add workbox + offline support ([589253e](https://github.com/webpack/webpack-cli/commit/589253e)) - better defaults ([77bf564](https://github.com/webpack/webpack-cli/commit/77bf564)) ## Chore - fix prompt ([478340d](https://github.com/webpack/webpack-cli/commit/478340d)) - improved err msg ([23eddcb](https://github.com/webpack/webpack-cli/commit/23eddcb)) - removed the commented statement ([bf0efa5](https://github.com/webpack/webpack-cli/commit/bf0efa5)) - remove unused dep ([7dd8ff2](https://github.com/webpack/webpack-cli/commit/7dd8ff2)) - fix sec vuln ([545ef3a](https://github.com/webpack/webpack-cli/commit/545ef3a)) - fix sec vuln ([4760125](https://github.com/webpack/webpack-cli/commit/4760125)) - readd docs ([830eaf3](https://github.com/webpack/webpack-cli/commit/830eaf3)) - reset prompting for cmd ([a16f8dc](https://github.com/webpack/webpack-cli/commit/a16f8dc)) - remove unused file ([a0a06b3](https://github.com/webpack/webpack-cli/commit/a0a06b3)) ## Docs - added auto flag in docs for init command ([dede7d8](https://github.com/webpack/webpack-cli/commit/dede7d8)) ## Fix - module not found error ([a2062f2](https://github.com/webpack/webpack-cli/commit/a2062f2)) - remove unused pkgs and refactor init generator ([7608d4b](https://github.com/webpack/webpack-cli/commit/7608d4b)) ## Tests - fix failing ones ([d154d0e](https://github.com/webpack/webpack-cli/commit/d154d0e)) ## Misc - finetune 0cjs ([bd2cd86](https://github.com/webpack/webpack-cli/commit/bd2cd86)) - improve cjs ([60ecc02](https://github.com/webpack/webpack-cli/commit/60ecc02)) # 3.3.3 (2019-06-07) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.2...v3.3.3) ## New Features - chore: Added type definitions for the data returned by envinfo ([#921](https://github.com/webpack/webpack-cli/pull/921)) - add htmlWebpackPlugin in development ([88fcfa8](https://github.com/webpack/webpack-cli/commit/88fcfa8)) - add mergeHandler ([248b9cc](https://github.com/webpack/webpack-cli/commit/248b9cc)) - generators: add generated file templates ([6be9291](https://github.com/webpack/webpack-cli/commit/6be9291)) - init: generate README ([c090b17](https://github.com/webpack/webpack-cli/commit/c090b17)) - init: generate tsconfig ([25ab7e6](https://github.com/webpack/webpack-cli/commit/25ab7e6)) - init: support ts in configuration ([283e089](https://github.com/webpack/webpack-cli/commit/283e089)) - init: wip typescript support ([093a36d](https://github.com/webpack/webpack-cli/commit/093a36d)) - md: formats md before committing ([#851](https://github.com/webpack/webpack-cli/pull/851)) - webpack-scaffold: adds Input defaults, doc & tests ([0a648f7](https://github.com/webpack/webpack-cli/commit/0a648f7)) ## Chore - monorepo version update ([69f7683](https://github.com/webpack/webpack-cli/commit/69f7683)) - update jest snapshots ([efe8c2a](https://github.com/webpack/webpack-cli/commit/efe8c2a)) - monorepo version update ([12a38be](https://github.com/webpack/webpack-cli/commit/12a38be)) - lockfile updates ([2608179](https://github.com/webpack/webpack-cli/commit/2608179)) - v.3.2.2 until mnorepo versioning ([25c6e7b](https://github.com/webpack/webpack-cli/commit/25c6e7b)) - update utils version for init pkg ([67b3dc7](https://github.com/webpack/webpack-cli/commit/67b3dc7)) - monorepo version update ([ace0d4a](https://github.com/webpack/webpack-cli/commit/ace0d4a)) - lerna independent ([16079a1](https://github.com/webpack/webpack-cli/commit/16079a1)) - sec fixes ([b9711e8](https://github.com/webpack/webpack-cli/commit/b9711e8)) - sec patch monorepo ([9b78911](https://github.com/webpack/webpack-cli/commit/9b78911)) - v.3.3.3 ([d577b0c](https://github.com/webpack/webpack-cli/commit/d577b0c)) - ast-utils: undo return statements as per review ([418c72c](https://github.com/webpack/webpack-cli/commit/418c72c)) - dep: commit lock ([5a28a77](https://github.com/webpack/webpack-cli/commit/5a28a77)) - dep: add eslint-plugin-prettier as dev dep ([98ccd6f](https://github.com/webpack/webpack-cli/commit/98ccd6f)) - eslint: add eslint-prettier plugin ([671abd5](https://github.com/webpack/webpack-cli/commit/671abd5)) - interfaces: minor modifications based on reviews ([abb1a48](https://github.com/webpack/webpack-cli/commit/abb1a48)) - lint: rm unused lint disables ([ae4260a](https://github.com/webpack/webpack-cli/commit/ae4260a)) - group imports ([7fe04e9](https://github.com/webpack/webpack-cli/commit/7fe04e9)) - lint: fix code as per conflicting config ([5bf847c](https://github.com/webpack/webpack-cli/commit/5bf847c)) - reorder imports ([0e0ba8a](https://github.com/webpack/webpack-cli/commit/0e0ba8a)) - reorder imports ([8a66c21](https://github.com/webpack/webpack-cli/commit/8a66c21)) - reorder imports ([57b47c3](https://github.com/webpack/webpack-cli/commit/57b47c3)) - add some comments ([95275ac](https://github.com/webpack/webpack-cli/commit/95275ac)) - lint: extend prettier config ([5943f26](https://github.com/webpack/webpack-cli/commit/5943f26)) - lint: add eslint-config-prettier ([4019049](https://github.com/webpack/webpack-cli/commit/4019049)) - linting ([ba0116a](https://github.com/webpack/webpack-cli/commit/ba0116a)) - revise typo ([a4597dd](https://github.com/webpack/webpack-cli/commit/a4597dd)) - lint: format all files as per prettier plugin ([f6992e6](https://github.com/webpack/webpack-cli/commit/f6992e6)) - remove eslint disable comments ([d72ac08](https://github.com/webpack/webpack-cli/commit/d72ac08)) - use import instead of require ([5ee4169](https://github.com/webpack/webpack-cli/commit/5ee4169)) - update variable name ([8e3f4ae](https://github.com/webpack/webpack-cli/commit/8e3f4ae)) - update error message ([8609b2b](https://github.com/webpack/webpack-cli/commit/8609b2b)) - create questions.ts ([7481974](https://github.com/webpack/webpack-cli/commit/7481974)) - revise typo ([be88ca9](https://github.com/webpack/webpack-cli/commit/be88ca9)) - update lockfiles ([a0216fe](https://github.com/webpack/webpack-cli/commit/a0216fe)) - deps: update lock file ([ea55cd5](https://github.com/webpack/webpack-cli/commit/ea55cd5)) - format: fix formatting using prettier ([0b6437e](https://github.com/webpack/webpack-cli/commit/0b6437e)) - infra: fix typo ([98466d6](https://github.com/webpack/webpack-cli/commit/98466d6)) - infra: format all staged files on precommit ([2a2e9a1](https://github.com/webpack/webpack-cli/commit/2a2e9a1)) - infra: fix scripts to format files ([876471c](https://github.com/webpack/webpack-cli/commit/876471c)) - lint: fix lint warnings ([#926](https://github.com/webpack/webpack-cli/pull/926)) - refactored the add-generator ([80713fc](https://github.com/webpack/webpack-cli/commit/80713fc)) - migrate: replaces console with process stream ([1df301d](https://github.com/webpack/webpack-cli/commit/1df301d)) - refactor: use all utils from the root file in generators ([faabbfb](https://github.com/webpack/webpack-cli/commit/faabbfb)) - utils: add valueType ([43040fe](https://github.com/webpack/webpack-cli/commit/43040fe)) - utils: refactor util types ([e7c5170](https://github.com/webpack/webpack-cli/commit/e7c5170)) - fix azure ([19e039f](https://github.com/webpack/webpack-cli/commit/19e039f)) - utils: refactors modify config helper ([39be039](https://github.com/webpack/webpack-cli/commit/39be039)) - utils: refactors ast utils ([9f35073](https://github.com/webpack/webpack-cli/commit/9f35073)) - add types to import functions ([8b88980](https://github.com/webpack/webpack-cli/commit/8b88980)) - refactor serve command action handler ([d2c7ae4](https://github.com/webpack/webpack-cli/commit/d2c7ae4)) - keep lowercase ([c01a80b](https://github.com/webpack/webpack-cli/commit/c01a80b)) - formatting ([20ff530](https://github.com/webpack/webpack-cli/commit/20ff530)) - add errors for invalid params ([27c6198](https://github.com/webpack/webpack-cli/commit/27c6198)) - cli: fixes linting err ([9f1deb2](https://github.com/webpack/webpack-cli/commit/9f1deb2)) - utils: seperates interfaces from the core module ([d0a4177](https://github.com/webpack/webpack-cli/commit/d0a4177)) - remove trivial type ([5e23da2](https://github.com/webpack/webpack-cli/commit/5e23da2)) - create isImportPresent ([a89645a](https://github.com/webpack/webpack-cli/commit/a89645a)) - use replaceWith ([6a7e662](https://github.com/webpack/webpack-cli/commit/6a7e662)) - update prop name ([55d237b](https://github.com/webpack/webpack-cli/commit/55d237b)) - update parseMerge ([b6a438d](https://github.com/webpack/webpack-cli/commit/b6a438d)) - fix linting ([c7c1a83](https://github.com/webpack/webpack-cli/commit/c7c1a83)) - format and revise code w.r.t style ([e9d426d](https://github.com/webpack/webpack-cli/commit/e9d426d)) - make config const ([445ab31](https://github.com/webpack/webpack-cli/commit/445ab31)) - update parseMerge ([cf85535](https://github.com/webpack/webpack-cli/commit/cf85535)) - pluginarrlength for length of the plugin ([4872416](https://github.com/webpack/webpack-cli/commit/4872416)) - made condition strict ([88eec7c](https://github.com/webpack/webpack-cli/commit/88eec7c)) - update types of the config ([a2c49e2](https://github.com/webpack/webpack-cli/commit/a2c49e2)) - update variable name ([1323bbf](https://github.com/webpack/webpack-cli/commit/1323bbf)) - revise SECURITY.md ([2a9e304](https://github.com/webpack/webpack-cli/commit/2a9e304)) - revise SECURITY.md ([9cdc357](https://github.com/webpack/webpack-cli/commit/9cdc357)) - revise version support ([90f397c](https://github.com/webpack/webpack-cli/commit/90f397c)) - add JSDoc descriptions ([e023d23](https://github.com/webpack/webpack-cli/commit/e023d23)) - lint ([cb5a15f](https://github.com/webpack/webpack-cli/commit/cb5a15f)) - lint ([0782944](https://github.com/webpack/webpack-cli/commit/0782944)) - lint ([5778bdf](https://github.com/webpack/webpack-cli/commit/5778bdf)) - ci: add node 12 ([#872](https://github.com/webpack/webpack-cli/pull/872)) - cli: fixes code indentation ([ff263f9](https://github.com/webpack/webpack-cli/commit/ff263f9)) - cli: cleanup ([ed4095f](https://github.com/webpack/webpack-cli/commit/ed4095f)) - cli: remove findup-sync from package dir and move to utils ([fe9c289](https://github.com/webpack/webpack-cli/commit/fe9c289)) - cli: move constants to a separate file ([#798](https://github.com/webpack/webpack-cli/pull/798)) - plugins.ts: added if-stmt for native plugins ([fc9e259](https://github.com/webpack/webpack-cli/commit/fc9e259)) - refactor: move questions to utils ([915c4ab](https://github.com/webpack/webpack-cli/commit/915c4ab)) - refactor: add generator ([66bde9f](https://github.com/webpack/webpack-cli/commit/66bde9f)) - utils: fix deprecated babylon ([99304c4](https://github.com/webpack/webpack-cli/commit/99304c4)) - loop change ([818e43e](https://github.com/webpack/webpack-cli/commit/818e43e)) - add sec & versioning policy ([5e33f8a](https://github.com/webpack/webpack-cli/commit/5e33f8a)) - add-generator: changed the naming of the plugin in config file ([7fbc3a4](https://github.com/webpack/webpack-cli/commit/7fbc3a4)) - github: add sponsor button ([88f2408](https://github.com/webpack/webpack-cli/commit/88f2408)) - refactor: update package list ([e5c7f67](https://github.com/webpack/webpack-cli/commit/e5c7f67)) - style: fixed the indentation ([e583aab](https://github.com/webpack/webpack-cli/commit/e583aab)) - added a generatePluginName method in generators utils ([7d83453](https://github.com/webpack/webpack-cli/commit/7d83453)) - refactor: move schema to utils ([2299848](https://github.com/webpack/webpack-cli/commit/2299848)) - refactor: add generator ([d901d49](https://github.com/webpack/webpack-cli/commit/d901d49)) - util: use relative for now ([5a0952e](https://github.com/webpack/webpack-cli/commit/5a0952e)) - utils: use absolute path ([00a6348](https://github.com/webpack/webpack-cli/commit/00a6348)) ## CLI - fix watch options for array config ([#892](https://github.com/webpack/webpack-cli/pull/892)) ## Docs - contribute: adds section seperator ([cff0c55](https://github.com/webpack/webpack-cli/commit/cff0c55)) - contribute: combines seperate sections for npm and yarn ([aefa8eb](https://github.com/webpack/webpack-cli/commit/aefa8eb)) - contributing: updates the docs for the test ([7656637](https://github.com/webpack/webpack-cli/commit/7656637)) - fix link to webpack-scaffold ([de0b4a0](https://github.com/webpack/webpack-cli/commit/de0b4a0)) - init: improve description ([9856bab](https://github.com/webpack/webpack-cli/commit/9856bab)) - utils: update prettier ([8b6d47b](https://github.com/webpack/webpack-cli/commit/8b6d47b)) ## Fix - improve checking file permission ([de41351](https://github.com/webpack/webpack-cli/commit/de41351)) - chore: Minor fix ([6810182](https://github.com/webpack/webpack-cli/commit/6810182)) - use fork cause original repo is unmaintained ([383125a](https://github.com/webpack/webpack-cli/commit/383125a)) - add: apply suggestions ([ccf0dce](https://github.com/webpack/webpack-cli/commit/ccf0dce)) - add: add handling of merge option ([eb43443](https://github.com/webpack/webpack-cli/commit/eb43443)) - add: add handling of merge option ([ce51a0a](https://github.com/webpack/webpack-cli/commit/ce51a0a)) - ci: fixes linting error in ci ([cfc0117](https://github.com/webpack/webpack-cli/commit/cfc0117)) - cli: updates err message ([b5e1913](https://github.com/webpack/webpack-cli/commit/b5e1913)) - cli: removes the comment before err handling block ([ac5a53f](https://github.com/webpack/webpack-cli/commit/ac5a53f)) - cli: --config-register resolves relative to root ([23375bd](https://github.com/webpack/webpack-cli/commit/23375bd)) - cli: removes func return in catch instance ([7d31321](https://github.com/webpack/webpack-cli/commit/7d31321)) - cli: sets stack trace limit ([869024f](https://github.com/webpack/webpack-cli/commit/869024f)) - cli: err when no args passed, refactored nested conditional blocks ([a9bc0bd](https://github.com/webpack/webpack-cli/commit/a9bc0bd)) - cli: shows error message based on package manager ([a3ce273](https://github.com/webpack/webpack-cli/commit/a3ce273)) - cli: error when no webpack and args found ([2250af0](https://github.com/webpack/webpack-cli/commit/2250af0)) - generator: fixed the support of native plugins in add command ([123a150](https://github.com/webpack/webpack-cli/commit/123a150)) - infra: fixes npm run docs ([65c08e2](https://github.com/webpack/webpack-cli/commit/65c08e2)) - formatting files ([eb3909b](https://github.com/webpack/webpack-cli/commit/eb3909b)) - remove type from inherited type ([960e73a](https://github.com/webpack/webpack-cli/commit/960e73a)) - remove type from inherited type ([0552f76](https://github.com/webpack/webpack-cli/commit/0552f76)) - change parser options ([4e8bc76](https://github.com/webpack/webpack-cli/commit/4e8bc76)) - json module resolve ([61697b8](https://github.com/webpack/webpack-cli/commit/61697b8)) - cli: improves error handling with args ([cc64955](https://github.com/webpack/webpack-cli/commit/cc64955)) - generator: generate correct module.rule for babel & ts ([263b83c](https://github.com/webpack/webpack-cli/commit/263b83c)) - generator: using configFile in configPath to get the config file name ([#883](https://github.com/webpack/webpack-cli/pull/883)) - genrators/utils/style: typo & fix ([f46f4e5](https://github.com/webpack/webpack-cli/commit/f46f4e5)) ## Tests - inputvalidate: remove undefined ([fb25bd2](https://github.com/webpack/webpack-cli/commit/fb25bd2)) ## Misc - update internal docs ([7071b5c](https://github.com/webpack/webpack-cli/commit/7071b5c)) - add lerna publish cmnd ([5c8c6a1](https://github.com/webpack/webpack-cli/commit/5c8c6a1)) - generators: remove comment ([bd06a69](https://github.com/webpack/webpack-cli/commit/bd06a69)) - generators: refactor ([376dcbd](https://github.com/webpack/webpack-cli/commit/376dcbd)) - generators: small text improvements ([782f56c](https://github.com/webpack/webpack-cli/commit/782f56c)) - generators: improve prompts ([ac35a31](https://github.com/webpack/webpack-cli/commit/ac35a31)) - generators: refactor init-generator ([d574846](https://github.com/webpack/webpack-cli/commit/d574846)) - generators: refactor utils ([17e4511](https://github.com/webpack/webpack-cli/commit/17e4511)) - generators/utils/style: refactor ([392fcfe](https://github.com/webpack/webpack-cli/commit/392fcfe)) - init: refactor with async/await ([1b07d2b](https://github.com/webpack/webpack-cli/commit/1b07d2b)) - init: small refactor ([4627ea1](https://github.com/webpack/webpack-cli/commit/4627ea1)) - init-generator: improve readme ([f971632](https://github.com/webpack/webpack-cli/commit/f971632)) - init-generator: small refactor ([dcf44c1](https://github.com/webpack/webpack-cli/commit/dcf44c1)) - init-generator: use webpackOption types, improve test rules ([a650e0e](https://github.com/webpack/webpack-cli/commit/a650e0e)) - init-generator: improve types & defaults ([fb23aa4](https://github.com/webpack/webpack-cli/commit/fb23aa4)) - packages: complete rebase ([488b06c](https://github.com/webpack/webpack-cli/commit/488b06c)) - types: correct types ([85ef3e7](https://github.com/webpack/webpack-cli/commit/85ef3e7)) # 3.3.2 (2019-05-04) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.1.5...v3.3.2) ## New Features - opencollective prompt: add option to disable it + doc ([d4643ae](https://github.com/webpack/webpack-cli/commit/d4643ae)) - terser: clean old files ([89e6b74](https://github.com/webpack/webpack-cli/commit/89e6b74)) - terser: remove leftover files ([27d5b4d](https://github.com/webpack/webpack-cli/commit/27d5b4d)) - terser: replace after merging master ([c404655](https://github.com/webpack/webpack-cli/commit/c404655)) - replace Uglify with Terser in generators ([2b8651b](https://github.com/webpack/webpack-cli/commit/2b8651b)) - use terserPlugin in loaderOptionsPlugin ([14f5337](https://github.com/webpack/webpack-cli/commit/14f5337)) - use terserJsPlugin for transformations during migrate ([33c6185](https://github.com/webpack/webpack-cli/commit/33c6185)) - replace uglifyJsPlugin with terserPlugin in migrate ([d467f3b](https://github.com/webpack/webpack-cli/commit/d467f3b)) - opencollective prompt: work on windows setting atime by code ([3af73a8](https://github.com/webpack/webpack-cli/commit/3af73a8)) - opencollective prompt: fix typo ([c2351b1](https://github.com/webpack/webpack-cli/commit/c2351b1)) - opencollective prompt: remove .lastocprint file from fs ([b96ad56](https://github.com/webpack/webpack-cli/commit/b96ad56)) - opencollective prompt: extract weekday to variable ([790d27a](https://github.com/webpack/webpack-cli/commit/790d27a)) - opencollective prompt: set terminal cols to 80 ([badc32d](https://github.com/webpack/webpack-cli/commit/badc32d)) - opencollective prompt: fix azure ci ([ea0039a](https://github.com/webpack/webpack-cli/commit/ea0039a)) - opencollective prompt: lint ([ea906d8](https://github.com/webpack/webpack-cli/commit/ea906d8)) - opencollective prompt: clear package.json modifications ([f080733](https://github.com/webpack/webpack-cli/commit/f080733)) - opencollective prompt: add prompt in postinstall script ([dd9d528](https://github.com/webpack/webpack-cli/commit/dd9d528)) ## Ast - change tooltip property from uglify to terser ([ea9e4b8](https://github.com/webpack/webpack-cli/commit/ea9e4b8)) - replace requires and inits for uglify with terser ([3011a6c](https://github.com/webpack/webpack-cli/commit/3011a6c)) - replace UglifyJsPlugin with TerserPlugin ([21da35f](https://github.com/webpack/webpack-cli/commit/21da35f)) ## Chore - cli: move constants to a separate file ([#798](https://github.com/webpack/webpack-cli/pull/798)) - deps: fix security vulnerabilities ([#857](https://github.com/webpack/webpack-cli/pull/857)) - deps: upgrade lerna to fix vulnerabilities & update webpack-dev-server ([#823](https://github.com/webpack/webpack-cli/pull/823)) - docs: minor fixes in the docs ([#874](https://github.com/webpack/webpack-cli/pull/874)) - docs: removes scaffolding docs from the root ([8c1db03](https://github.com/webpack/webpack-cli/commit/8c1db03)) - junit: reverting the junit.xml ([80fd4fa](https://github.com/webpack/webpack-cli/commit/80fd4fa)) - travis: removed stable ([#871](https://github.com/webpack/webpack-cli/pull/871)) - types: move to @types/yeoman-generator ([#869](https://github.com/webpack/webpack-cli/pull/869)) - addon generator to async/await ([#849](https://github.com/webpack/webpack-cli/pull/849)) - v.3.1.1 ([d3f8e20](https://github.com/webpack/webpack-cli/commit/d3f8e20)) - tests: updated test regex, some helper scripts ([#809](https://github.com/webpack/webpack-cli/pull/809)) - types: add type information ([#791](https://github.com/webpack/webpack-cli/pull/791)) - replace instances of uglify with terser ([f9cb8ce](https://github.com/webpack/webpack-cli/commit/f9cb8ce)) - use actual package name in comment about removing uglify ([b1cf4cc](https://github.com/webpack/webpack-cli/commit/b1cf4cc)) - align file in the same way as other terserPlugin test fixtures ([b6c6484](https://github.com/webpack/webpack-cli/commit/b6c6484)) - remove gitHash from package.json ([2af08be](https://github.com/webpack/webpack-cli/commit/2af08be)) ## Docs - code of conduct ([#873](https://github.com/webpack/webpack-cli/pull/873)) - contribute: adds table of contents and info about dependencies. ([#842](https://github.com/webpack/webpack-cli/pull/842)) - contributing: fixes dead link ([#835](https://github.com/webpack/webpack-cli/pull/835)) - opencollective prompt: improve code clarity ([55992a4](https://github.com/webpack/webpack-cli/commit/55992a4)) - packages: adds downloads/month shield ([6a0375a](https://github.com/webpack/webpack-cli/commit/6a0375a)) - readme: fix typos, add summary of all commands ([#845](https://github.com/webpack/webpack-cli/pull/845)) - readme: adds contributors shield ([958d064](https://github.com/webpack/webpack-cli/commit/958d064)) - README: phrase change ([3a11a16](https://github.com/webpack/webpack-cli/commit/3a11a16)) - README: add link to webpack-scaffold-starter ([e35a194](https://github.com/webpack/webpack-cli/commit/e35a194)) - README: update scaffolding links ([74179b5](https://github.com/webpack/webpack-cli/commit/74179b5)) - serve: link to webpack-dev-server ([cb68b1b](https://github.com/webpack/webpack-cli/commit/cb68b1b)) - serve: update docs to use webpack-dev-server ([f7451d4](https://github.com/webpack/webpack-cli/commit/f7451d4)) - replace tooltip link to terser plugin ([4254730](https://github.com/webpack/webpack-cli/commit/4254730)) - replace Uglify with Terser in comments ([799577d](https://github.com/webpack/webpack-cli/commit/799577d)) - replace UglifyJsPlugin with TerserPlugin in migrate docs ([326f783](https://github.com/webpack/webpack-cli/commit/326f783)) ## Enh - webpack-scaffold: improve prompt and doc ([#794](https://github.com/webpack/webpack-cli/pull/794)) ## Fix - add: add types ([d4ce6f2](https://github.com/webpack/webpack-cli/commit/d4ce6f2)) - add: fix runTransform ([dbc3e9e](https://github.com/webpack/webpack-cli/commit/dbc3e9e)) - add: lint code ([163b309](https://github.com/webpack/webpack-cli/commit/163b309)) - add: add handling for topScope ([1162cf5](https://github.com/webpack/webpack-cli/commit/1162cf5)) - bin, serve: force default package export, add serve default ([#815](https://github.com/webpack/webpack-cli/pull/815)) - init: refactored the init.ts success message ([#810](https://github.com/webpack/webpack-cli/pull/810)) - opencollective prompt: fix grammar ([246db42](https://github.com/webpack/webpack-cli/commit/246db42)) - opencollective-prompt: check write permissions ([5284b7e](https://github.com/webpack/webpack-cli/commit/5284b7e)) - scaffold: config file is always generated at the project root ([#801](https://github.com/webpack/webpack-cli/pull/801)) - utils: refactors utils ([7fe3543](https://github.com/webpack/webpack-cli/commit/7fe3543)) - clear up comment about default function purpose ([e48507d](https://github.com/webpack/webpack-cli/commit/e48507d)) - remove unused files ([ec242ab](https://github.com/webpack/webpack-cli/commit/ec242ab)) - reset files ([9863445](https://github.com/webpack/webpack-cli/commit/9863445)) - replace lookups for TerserPlugin in webpack.optimise ([ef23fec](https://github.com/webpack/webpack-cli/commit/ef23fec)) ## Tests - update snapshots ([ce9fbc8](https://github.com/webpack/webpack-cli/commit/ce9fbc8)) - replace uglify with terser in ast-utils tests ([73f493f](https://github.com/webpack/webpack-cli/commit/73f493f)) - migration: typescript ([#613](https://github.com/webpack/webpack-cli/pull/613)) ## Misc - chore(docs): Refactors links for badges ([#859](https://github.com/webpack/webpack-cli/pull/859)) - opencollective-prompt: improve grammar ([e17a26d](https://github.com/webpack/webpack-cli/commit/e17a26d)) - Remove tslint in favour of eslint ([#834](https://github.com/webpack/webpack-cli/pull/834)) - cli: refactor functions into utils and config dirs, merge yargs options ([#781](https://github.com/webpack/webpack-cli/pull/781)) - utils: refactors scaffold ([0b28fb3](https://github.com/webpack/webpack-cli/commit/0b28fb3)) # 3.3.1 (2019-04-21) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.1.5...v3.3.1) ## New Features - terser: clean old files ([89e6b74](https://github.com/webpack/webpack-cli/commit/89e6b74)) - terser: remove leftover files ([27d5b4d](https://github.com/webpack/webpack-cli/commit/27d5b4d)) - terser: replace after merging master ([c404655](https://github.com/webpack/webpack-cli/commit/c404655)) - replace Uglify with Terser in generators ([2b8651b](https://github.com/webpack/webpack-cli/commit/2b8651b)) - use terserPlugin in loaderOptionsPlugin ([14f5337](https://github.com/webpack/webpack-cli/commit/14f5337)) - use terserJsPlugin for transformations during migrate ([33c6185](https://github.com/webpack/webpack-cli/commit/33c6185)) - replace uglifyJsPlugin with terserPlugin in migrate ([d467f3b](https://github.com/webpack/webpack-cli/commit/d467f3b)) - opencollective prompt: work on windows setting atime by code ([3af73a8](https://github.com/webpack/webpack-cli/commit/3af73a8)) - opencollective prompt: fix typo ([c2351b1](https://github.com/webpack/webpack-cli/commit/c2351b1)) - opencollective prompt: remove .lastocprint file from fs ([b96ad56](https://github.com/webpack/webpack-cli/commit/b96ad56)) - opencollective prompt: extract weekday to variable ([790d27a](https://github.com/webpack/webpack-cli/commit/790d27a)) - opencollective prompt: set terminal cols to 80 ([badc32d](https://github.com/webpack/webpack-cli/commit/badc32d)) - opencollective prompt: fix azure ci ([ea0039a](https://github.com/webpack/webpack-cli/commit/ea0039a)) - opencollective prompt: lint ([ea906d8](https://github.com/webpack/webpack-cli/commit/ea906d8)) - opencollective prompt: clear package.json modifications ([f080733](https://github.com/webpack/webpack-cli/commit/f080733)) - opencollective prompt: add prompt in postinstall script ([dd9d528](https://github.com/webpack/webpack-cli/commit/dd9d528)) ## Ast - change tooltip property from uglify to terser ([ea9e4b8](https://github.com/webpack/webpack-cli/commit/ea9e4b8)) - replace requires and inits for uglify with terser ([3011a6c](https://github.com/webpack/webpack-cli/commit/3011a6c)) - replace UglifyJsPlugin with TerserPlugin ([21da35f](https://github.com/webpack/webpack-cli/commit/21da35f)) ## Chore - cli: move constants to a separate file ([#798](https://github.com/webpack/webpack-cli/pull/798)) - deps: upgrade lerna to fix vulnerabilities & update webpack-dev-server ([#823](https://github.com/webpack/webpack-cli/pull/823)) - docs: removes scaffolding docs from the root ([8c1db03](https://github.com/webpack/webpack-cli/commit/8c1db03)) - junit: reverting the junit.xml ([80fd4fa](https://github.com/webpack/webpack-cli/commit/80fd4fa)) - tests: updated test regex, some helper scripts ([#809](https://github.com/webpack/webpack-cli/pull/809)) - types: add type information ([#791](https://github.com/webpack/webpack-cli/pull/791)) - replace instances of uglify with terser ([f9cb8ce](https://github.com/webpack/webpack-cli/commit/f9cb8ce)) - use actual package name in comment about removing uglify ([b1cf4cc](https://github.com/webpack/webpack-cli/commit/b1cf4cc)) - align file in the same way as other terserPlugin test fixtures ([b6c6484](https://github.com/webpack/webpack-cli/commit/b6c6484)) - remove gitHash from package.json ([2af08be](https://github.com/webpack/webpack-cli/commit/2af08be)) ## Docs - contributing: fixes dead link ([#835](https://github.com/webpack/webpack-cli/pull/835)) - opencollective prompt: improve code clarity ([55992a4](https://github.com/webpack/webpack-cli/commit/55992a4)) - packages: adds downloads/month shield ([6a0375a](https://github.com/webpack/webpack-cli/commit/6a0375a)) - readme: adds contributors shield ([958d064](https://github.com/webpack/webpack-cli/commit/958d064)) - README: phrase change ([3a11a16](https://github.com/webpack/webpack-cli/commit/3a11a16)) - README: add link to webpack-scaffold-starter ([e35a194](https://github.com/webpack/webpack-cli/commit/e35a194)) - README: update scaffolding links ([74179b5](https://github.com/webpack/webpack-cli/commit/74179b5)) - serve: link to webpack-dev-server ([cb68b1b](https://github.com/webpack/webpack-cli/commit/cb68b1b)) - serve: update docs to use webpack-dev-server ([f7451d4](https://github.com/webpack/webpack-cli/commit/f7451d4)) - replace tooltip link to terser plugin ([4254730](https://github.com/webpack/webpack-cli/commit/4254730)) - replace Uglify with Terser in comments ([799577d](https://github.com/webpack/webpack-cli/commit/799577d)) - replace UglifyJsPlugin with TerserPlugin in migrate docs ([326f783](https://github.com/webpack/webpack-cli/commit/326f783)) ## Enh - webpack-scaffold: improve prompt and doc ([#794](https://github.com/webpack/webpack-cli/pull/794)) ## Fix - add: add types ([d4ce6f2](https://github.com/webpack/webpack-cli/commit/d4ce6f2)) - add: fix runTransform ([dbc3e9e](https://github.com/webpack/webpack-cli/commit/dbc3e9e)) - add: lint code ([163b309](https://github.com/webpack/webpack-cli/commit/163b309)) - add: add handling for topScope ([1162cf5](https://github.com/webpack/webpack-cli/commit/1162cf5)) - bin, serve: force default package export, add serve default ([#815](https://github.com/webpack/webpack-cli/pull/815)) - init: refactored the init.ts success message ([#810](https://github.com/webpack/webpack-cli/pull/810)) - scaffold: config file is always generated at the project root ([#801](https://github.com/webpack/webpack-cli/pull/801)) - utils: refactors utils ([7fe3543](https://github.com/webpack/webpack-cli/commit/7fe3543)) - clear up comment about default function purpose ([e48507d](https://github.com/webpack/webpack-cli/commit/e48507d)) - remove unused files ([ec242ab](https://github.com/webpack/webpack-cli/commit/ec242ab)) - reset files ([9863445](https://github.com/webpack/webpack-cli/commit/9863445)) - replace lookups for TerserPlugin in webpack.optimise ([ef23fec](https://github.com/webpack/webpack-cli/commit/ef23fec)) ## Tests - update snapshots ([ce9fbc8](https://github.com/webpack/webpack-cli/commit/ce9fbc8)) - replace uglify with terser in ast-utils tests ([73f493f](https://github.com/webpack/webpack-cli/commit/73f493f)) - migration: typescript ([#613](https://github.com/webpack/webpack-cli/pull/613)) ## Misc - Remove tslint in favour of eslint ([#834](https://github.com/webpack/webpack-cli/pull/834)) - cli: refactor functions into utils and config dirs, merge yargs options ([#781](https://github.com/webpack/webpack-cli/pull/781)) - utils: refactors scaffold ([0b28fb3](https://github.com/webpack/webpack-cli/commit/0b28fb3)) # 3.3.0 (2019-03-15) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.1.3...v3.3.0) ## New Features - use webpack.config as default name in dev scaffold ([385a672](https://github.com/webpack/webpack-cli/commit/385a672)) - only display once a week ([b6199e5](https://github.com/webpack/webpack-cli/commit/b6199e5)) - add util to run-and-get watch proc ([1d2ccd5](https://github.com/webpack/webpack-cli/commit/1d2ccd5)) - add test-util to append data to file ([e9e1dcb](https://github.com/webpack/webpack-cli/commit/e9e1dcb)) - log: clean single line logs ([5d2284b](https://github.com/webpack/webpack-cli/commit/5d2284b)) - log: add gitignore ([7c830b5](https://github.com/webpack/webpack-cli/commit/7c830b5)) - log: make log package ([df7c224](https://github.com/webpack/webpack-cli/commit/df7c224)) - log: add clrscr function ([11b3bff](https://github.com/webpack/webpack-cli/commit/11b3bff)) - log: few changes ([bc32727](https://github.com/webpack/webpack-cli/commit/bc32727)) - log: add newline for title ([4047213](https://github.com/webpack/webpack-cli/commit/4047213)) - log: remove unwanted commits ([c088f3e](https://github.com/webpack/webpack-cli/commit/c088f3e)) - log: task based custom loggers ([2c43a41](https://github.com/webpack/webpack-cli/commit/2c43a41)) ## Chore - revise typo ([a14908e](https://github.com/webpack/webpack-cli/commit/a14908e)) - deps: @std/esm -> esm ([a8b46bf](https://github.com/webpack/webpack-cli/commit/a8b46bf)) - remove commit lint from travis ([ccec130](https://github.com/webpack/webpack-cli/commit/ccec130)) - revise contributing location ([13a3a87](https://github.com/webpack/webpack-cli/commit/13a3a87)) - deps: fix vulnerabilities ([c632d1a](https://github.com/webpack/webpack-cli/commit/c632d1a)) - tests: skipping broken test ([f7b6b3a](https://github.com/webpack/webpack-cli/commit/f7b6b3a)) - rewrite changelog ([62ab32d](https://github.com/webpack/webpack-cli/commit/62ab32d)) - v.3.2.3 ([70138b7](https://github.com/webpack/webpack-cli/commit/70138b7)) - v.3.2.2 ([24b6387](https://github.com/webpack/webpack-cli/commit/24b6387)) - update tests ([70bfbd9](https://github.com/webpack/webpack-cli/commit/70bfbd9)) - one liner ([0f55d5a](https://github.com/webpack/webpack-cli/commit/0f55d5a)) - one liner after log ([6d8fb67](https://github.com/webpack/webpack-cli/commit/6d8fb67)) - watch: remove console log ([0952317](https://github.com/webpack/webpack-cli/commit/0952317)) - v.3.2.1 ([54805ae](https://github.com/webpack/webpack-cli/commit/54805ae)) - dependency: add `node-ts` as devDependency ([#724](https://github.com/webpack/webpack-cli/pull/724)) ## Docs - scaffolding: lowercase Webpack ([d19c1f7](https://github.com/webpack/webpack-cli/commit/d19c1f7)) - scaffolding: fix typos ([b94b0de](https://github.com/webpack/webpack-cli/commit/b94b0de)) - scaffolding: improve grammar ([6b79072](https://github.com/webpack/webpack-cli/commit/6b79072)) - add lerna badge in README ([#786](https://github.com/webpack/webpack-cli/pull/786)) - contributing: refactor & formatting ([1042cb2](https://github.com/webpack/webpack-cli/commit/1042cb2)) - contributing: improve formatting ([47fcd7f](https://github.com/webpack/webpack-cli/commit/47fcd7f)) - contributing: : at the end of paragraphs ([48d65fd](https://github.com/webpack/webpack-cli/commit/48d65fd)) - contributing: update instructions to run individual tests ([b7cca58](https://github.com/webpack/webpack-cli/commit/b7cca58)) - contributing: update instructions to run individual tests ([bc0297a](https://github.com/webpack/webpack-cli/commit/bc0297a)) - contributing: add yarn before running jest ([126cf55](https://github.com/webpack/webpack-cli/commit/126cf55)) - contributing: commands to install jest globally ([18b7c2e](https://github.com/webpack/webpack-cli/commit/18b7c2e)) - contributing: fixes typo ([c458380](https://github.com/webpack/webpack-cli/commit/c458380)) - contributing: improves formatting ([abac823](https://github.com/webpack/webpack-cli/commit/abac823)) - contributing: adds prebuild instructions ([81cb46a](https://github.com/webpack/webpack-cli/commit/81cb46a)) - readme: add downloads badge ([dc2423c](https://github.com/webpack/webpack-cli/commit/dc2423c)) - scaffold: add link option for local ([f8424be](https://github.com/webpack/webpack-cli/commit/f8424be)) - scaffold: Add installation guide for packages/webpack-scaffold ([#727](https://github.com/webpack/webpack-cli/pull/727)) - scaffolding: fix typo ([98818a1](https://github.com/webpack/webpack-cli/commit/98818a1)) - scaffolding: improve description & formatting ([0f657d0](https://github.com/webpack/webpack-cli/commit/0f657d0)) - scaffolding: fix links ([e11c524](https://github.com/webpack/webpack-cli/commit/e11c524)) - scaffolding: add yarn example ([d47eea0](https://github.com/webpack/webpack-cli/commit/d47eea0)) - scaffolding: fix typo ([87ba169](https://github.com/webpack/webpack-cli/commit/87ba169)) - scaffolding: improved structure, formatting, typos ([8949f82](https://github.com/webpack/webpack-cli/commit/8949f82)) - init documentaion ([4b130bb](https://github.com/webpack/webpack-cli/commit/4b130bb)) - rename Webpack to webpack ([900c13e](https://github.com/webpack/webpack-cli/commit/900c13e)) - init documentaion ([14d2b47](https://github.com/webpack/webpack-cli/commit/14d2b47)) ## Fix - bin: use compiler.close API correctly for stats ([568161d](https://github.com/webpack/webpack-cli/commit/568161d)) - bin: extension detection ([#724](https://github.com/webpack/webpack-cli/pull/724)) - init: lint code ([20aab48](https://github.com/webpack/webpack-cli/commit/20aab48)) - init: support global installation ([1cb0166](https://github.com/webpack/webpack-cli/commit/1cb0166)) - init: revert to local installation ([48b3b23](https://github.com/webpack/webpack-cli/commit/48b3b23)) - init: update prompt command ([c1c0739](https://github.com/webpack/webpack-cli/commit/c1c0739)) - init: update prompt command ([1cab3cb](https://github.com/webpack/webpack-cli/commit/1cab3cb)) - readme: remove old dependency status link ([4df0000](https://github.com/webpack/webpack-cli/commit/4df0000)) - readme: add fallback badge for dependency status ([0e3753b](https://github.com/webpack/webpack-cli/commit/0e3753b)) - tests: remove snapshot for static compilation ([54a3ac4](https://github.com/webpack/webpack-cli/commit/54a3ac4)) - tests: remove snapshot for static compilation ([3af0948](https://github.com/webpack/webpack-cli/commit/3af0948)) - tests: update jest ([d195774](https://github.com/webpack/webpack-cli/commit/d195774)) - close compiler, own sh script and output clearing ([6ded275](https://github.com/webpack/webpack-cli/commit/6ded275)) - failing test ([88888bb](https://github.com/webpack/webpack-cli/commit/88888bb)) - failing test ([986472a](https://github.com/webpack/webpack-cli/commit/986472a)) - test: fix travis ts build ([22d3acc](https://github.com/webpack/webpack-cli/commit/22d3acc)) ## Tests - azure pipelines ([c9c3fea](https://github.com/webpack/webpack-cli/commit/c9c3fea)) - bin: add `webpack.config.ts` related test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - bin: add `webpack.config.babel.js` related test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - module: use extractSummary ([7bde073](https://github.com/webpack/webpack-cli/commit/7bde073)) - watch: use copyFile functionality ([c61fe92](https://github.com/webpack/webpack-cli/commit/c61fe92)) - add copyFile function in test-utils ([1b21e81](https://github.com/webpack/webpack-cli/commit/1b21e81)) - config-file: use extractSummary ([7554fe7](https://github.com/webpack/webpack-cli/commit/7554fe7)) - config-name: use extractSummary ([3e30a57](https://github.com/webpack/webpack-cli/commit/3e30a57)) - env: use extractSummary ([aa0cf25](https://github.com/webpack/webpack-cli/commit/aa0cf25)) - fix: fix failing tests ([5669311](https://github.com/webpack/webpack-cli/commit/5669311)) - fix: fix failing tests ([f1f7db1](https://github.com/webpack/webpack-cli/commit/f1f7db1)) - help: use extractSummary ([0ba72c4](https://github.com/webpack/webpack-cli/commit/0ba72c4)) - watch: use switch pattern for verbosity off ([c00386b](https://github.com/webpack/webpack-cli/commit/c00386b)) - watch: hash assertion for single-config-opt ([55632d6](https://github.com/webpack/webpack-cli/commit/55632d6)) - watch: hash assertion for single-config ([48f34d1](https://github.com/webpack/webpack-cli/commit/48f34d1)) - watch: hash assertion for multi-config-watch-opt ([6dd2327](https://github.com/webpack/webpack-cli/commit/6dd2327)) - watch: hash assertion multi-config ([6b4d339](https://github.com/webpack/webpack-cli/commit/6b4d339)) - watch: hash assertion info-verbosity-verbose ([42e5ee8](https://github.com/webpack/webpack-cli/commit/42e5ee8)) - watch: remove test.only for info-verbosity-off ([675d5c0](https://github.com/webpack/webpack-cli/commit/675d5c0)) - improve appendFile test-case ([18bde78](https://github.com/webpack/webpack-cli/commit/18bde78)) - remove eslint comment for requireReturn ([be7b259](https://github.com/webpack/webpack-cli/commit/be7b259)) - watch: test failure using done(error) ([46d2e37](https://github.com/webpack/webpack-cli/commit/46d2e37)) - watch: use native require first ([20e8579](https://github.com/webpack/webpack-cli/commit/20e8579)) - watch: use better comments ([b6efe2d](https://github.com/webpack/webpack-cli/commit/b6efe2d)) - add type to appendDataIfFileExists util ([f853302](https://github.com/webpack/webpack-cli/commit/f853302)) - make comment clear about fs.copyFileSync ([d1d3d02](https://github.com/webpack/webpack-cli/commit/d1d3d02)) - use 10E6 instead of 10e6 ([c9c5832](https://github.com/webpack/webpack-cli/commit/c9c5832)) - bin: add `.babelrc` to webpack-babel-config test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - bin-cases: expose extractSummary as function ([73714f5](https://github.com/webpack/webpack-cli/commit/73714f5)) - config-type: use extractSummary ([ed36260](https://github.com/webpack/webpack-cli/commit/ed36260)) - entry: use extractSummary ([745a369](https://github.com/webpack/webpack-cli/commit/745a369)) - errors: use extractSummary ([3c8628c](https://github.com/webpack/webpack-cli/commit/3c8628c)) - fix: fix failing tests ([7cb531b](https://github.com/webpack/webpack-cli/commit/7cb531b)) - fix: fix failing tests ([a967485](https://github.com/webpack/webpack-cli/commit/a967485)) - mode: use extractSummary ([3277d41](https://github.com/webpack/webpack-cli/commit/3277d41)) - output: use extractSummary ([cb60b15](https://github.com/webpack/webpack-cli/commit/cb60b15)) - plugins: use extractSummary ([02e08dc](https://github.com/webpack/webpack-cli/commit/02e08dc)) - silent: use extractSummary ([ea89a82](https://github.com/webpack/webpack-cli/commit/ea89a82)) - stats: use extractSummary ([7f4e504](https://github.com/webpack/webpack-cli/commit/7f4e504)) - watch: hash assertion for info-verbosity-off ([e0a0d97](https://github.com/webpack/webpack-cli/commit/e0a0d97)) - watch: use extractSummary ([8357dbc](https://github.com/webpack/webpack-cli/commit/8357dbc)) ## Misc - Correction of the webpack-merge configuration ([2ed8c60](https://github.com/webpack/webpack-cli/commit/2ed8c60)) - replace opencollective with light vers ([848bf4b](https://github.com/webpack/webpack-cli/commit/848bf4b)) # 3.2.2 (2019-02-05) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.1.3...v3.2.2) ## New Features - only display once a week ([b6199e5](https://github.com/webpack/webpack-cli/commit/b6199e5)) - add util to run-and-get watch proc ([1d2ccd5](https://github.com/webpack/webpack-cli/commit/1d2ccd5)) - add test-util to append data to file ([e9e1dcb](https://github.com/webpack/webpack-cli/commit/e9e1dcb)) - log: clean single line logs ([5d2284b](https://github.com/webpack/webpack-cli/commit/5d2284b)) - log: add gitignore ([7c830b5](https://github.com/webpack/webpack-cli/commit/7c830b5)) - log: make log package ([df7c224](https://github.com/webpack/webpack-cli/commit/df7c224)) - log: add clrscr function ([11b3bff](https://github.com/webpack/webpack-cli/commit/11b3bff)) - log: few changes ([bc32727](https://github.com/webpack/webpack-cli/commit/bc32727)) - log: add newline for title ([4047213](https://github.com/webpack/webpack-cli/commit/4047213)) - log: remove unwanted commits ([c088f3e](https://github.com/webpack/webpack-cli/commit/c088f3e)) - log: task based custom loggers ([2c43a41](https://github.com/webpack/webpack-cli/commit/2c43a41)) ## Chore - v.3.2.3 ([70138b7](https://github.com/webpack/webpack-cli/commit/70138b7)) - v.3.2.2 ([24b6387](https://github.com/webpack/webpack-cli/commit/24b6387)) - update tests ([70bfbd9](https://github.com/webpack/webpack-cli/commit/70bfbd9)) - one liner ([0f55d5a](https://github.com/webpack/webpack-cli/commit/0f55d5a)) - one liner after log ([6d8fb67](https://github.com/webpack/webpack-cli/commit/6d8fb67)) - watch: remove console log ([0952317](https://github.com/webpack/webpack-cli/commit/0952317)) - v.3.2.1 ([54805ae](https://github.com/webpack/webpack-cli/commit/54805ae)) - dependency: add `node-ts` as devDependency ([#724](https://github.com/webpack/webpack-cli/pull/724)) ## Docs - init documentaion ([14d2b47](https://github.com/webpack/webpack-cli/commit/14d2b47)) - scaffold: Add installation guide for packages/webpack-scaffold ([#727](https://github.com/webpack/webpack-cli/pull/727)) ## Fix - close compiler, own sh script and output clearing ([6ded275](https://github.com/webpack/webpack-cli/commit/6ded275)) - bin: extension detection ([#724](https://github.com/webpack/webpack-cli/pull/724)) - readme: remove old dependency status link ([4df0000](https://github.com/webpack/webpack-cli/commit/4df0000)) - readme: add fallback badge for dependency status ([0e3753b](https://github.com/webpack/webpack-cli/commit/0e3753b)) - failing test ([88888bb](https://github.com/webpack/webpack-cli/commit/88888bb)) - test: fix travis ts build ([22d3acc](https://github.com/webpack/webpack-cli/commit/22d3acc)) ## Tests - azure pipelines ([c9c3fea](https://github.com/webpack/webpack-cli/commit/c9c3fea)) - bin: add `webpack.config.ts` related test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - module: use extractSummary ([7bde073](https://github.com/webpack/webpack-cli/commit/7bde073)) - watch: use copyFile functionality ([c61fe92](https://github.com/webpack/webpack-cli/commit/c61fe92)) - add copyFile function in test-utils ([1b21e81](https://github.com/webpack/webpack-cli/commit/1b21e81)) - bin: add `webpack.config.babel.js` related test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - config-file: use extractSummary ([7554fe7](https://github.com/webpack/webpack-cli/commit/7554fe7)) - config-name: use extractSummary ([3e30a57](https://github.com/webpack/webpack-cli/commit/3e30a57)) - env: use extractSummary ([aa0cf25](https://github.com/webpack/webpack-cli/commit/aa0cf25)) - fix: fix failing tests ([5669311](https://github.com/webpack/webpack-cli/commit/5669311)) - help: use extractSummary ([0ba72c4](https://github.com/webpack/webpack-cli/commit/0ba72c4)) - watch: use switch pattern for verbosity off ([c00386b](https://github.com/webpack/webpack-cli/commit/c00386b)) - watch: hash assertion for single-config-opt ([55632d6](https://github.com/webpack/webpack-cli/commit/55632d6)) - watch: hash assertion for single-config ([48f34d1](https://github.com/webpack/webpack-cli/commit/48f34d1)) - watch: hash assertion for multi-config-watch-opt ([6dd2327](https://github.com/webpack/webpack-cli/commit/6dd2327)) - watch: hash assertion multi-config ([6b4d339](https://github.com/webpack/webpack-cli/commit/6b4d339)) - watch: hash assertion info-verbosity-verbose ([42e5ee8](https://github.com/webpack/webpack-cli/commit/42e5ee8)) - watch: remove test.only for info-verbosity-off ([675d5c0](https://github.com/webpack/webpack-cli/commit/675d5c0)) - improve appendFile test-case ([18bde78](https://github.com/webpack/webpack-cli/commit/18bde78)) - remove eslint comment for requireReturn ([be7b259](https://github.com/webpack/webpack-cli/commit/be7b259)) - watch: test failure using done(error) ([46d2e37](https://github.com/webpack/webpack-cli/commit/46d2e37)) - watch: use native require first ([20e8579](https://github.com/webpack/webpack-cli/commit/20e8579)) - watch: use better comments ([b6efe2d](https://github.com/webpack/webpack-cli/commit/b6efe2d)) - add type to appendDataIfFileExists util ([f853302](https://github.com/webpack/webpack-cli/commit/f853302)) - make comment clear about fs.copyFileSync ([d1d3d02](https://github.com/webpack/webpack-cli/commit/d1d3d02)) - use 10E6 instead of 10e6 ([c9c5832](https://github.com/webpack/webpack-cli/commit/c9c5832)) - bin: add `.babelrc` to webpack-babel-config test ([#724](https://github.com/webpack/webpack-cli/pull/724)) - bin-cases: expose extractSummary as function ([73714f5](https://github.com/webpack/webpack-cli/commit/73714f5)) - config-type: use extractSummary ([ed36260](https://github.com/webpack/webpack-cli/commit/ed36260)) - entry: use extractSummary ([745a369](https://github.com/webpack/webpack-cli/commit/745a369)) - errors: use extractSummary ([3c8628c](https://github.com/webpack/webpack-cli/commit/3c8628c)) - fix: fix failing tests ([7cb531b](https://github.com/webpack/webpack-cli/commit/7cb531b)) - mode: use extractSummary ([3277d41](https://github.com/webpack/webpack-cli/commit/3277d41)) - output: use extractSummary ([cb60b15](https://github.com/webpack/webpack-cli/commit/cb60b15)) - plugins: use extractSummary ([02e08dc](https://github.com/webpack/webpack-cli/commit/02e08dc)) - silent: use extractSummary ([ea89a82](https://github.com/webpack/webpack-cli/commit/ea89a82)) - stats: use extractSummary ([7f4e504](https://github.com/webpack/webpack-cli/commit/7f4e504)) - watch: hash assertion for info-verbosity-off ([e0a0d97](https://github.com/webpack/webpack-cli/commit/e0a0d97)) - watch: use extractSummary ([8357dbc](https://github.com/webpack/webpack-cli/commit/8357dbc)) ## Misc - Correction of the webpack-merge configuration ([2ed8c60](https://github.com/webpack/webpack-cli/commit/2ed8c60)) - replace opencollective with light vers ([848bf4b](https://github.com/webpack/webpack-cli/commit/848bf4b)) # 3.1.2 (2018-09-29) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.1.1...v3.1.2) ## Chore - deps: upgrade husky ([#611](https://github.com/webpack/webpack-cli/pull/611)) - docs: update readme ([93ebcc2](https://github.com/webpack/webpack-cli/commit/93ebcc2)) - scripts: add commit script, cz-customizable ([#612](https://github.com/webpack/webpack-cli/pull/612)) ## Docs - init: update headers ([dc4ded9](https://github.com/webpack/webpack-cli/commit/dc4ded9)) - init: update init documentation ([2ccf9a9](https://github.com/webpack/webpack-cli/commit/2ccf9a9)) - readme: update webpack-cli to webpack CLI ([f3a225a](https://github.com/webpack/webpack-cli/commit/f3a225a)) - readme: change addons to scaffolds ([747aef9](https://github.com/webpack/webpack-cli/commit/747aef9)) - readme: update links ([f8187f1](https://github.com/webpack/webpack-cli/commit/f8187f1)) - readme: update README.md ([#614](https://github.com/webpack/webpack-cli/pull/614)) - readme: update Readme based on feedback ([da05c2f](https://github.com/webpack/webpack-cli/commit/da05c2f)) ## Fix - tapable: fix hook options ([9aed0dc](https://github.com/webpack/webpack-cli/commit/9aed0dc)) - replace test regex ([d4e1614](https://github.com/webpack/webpack-cli/commit/d4e1614)) # 3.1.1 (2018-09-23) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.1.0...v3.1.1) ## New Features - migrate: CommonChunksPlugin to SplitChunksPlugin ([#558](https://github.com/webpack/webpack-cli/pull/558)) - types: types for packages ([#578](https://github.com/webpack/webpack-cli/pull/578)) ## Chore - ci: add commitlint when trying to commit ([#595](https://github.com/webpack/webpack-cli/pull/595)) - ci: Set up CI with Azure Pipelines ([89d3a19](https://github.com/webpack/webpack-cli/commit/89d3a19)) - ci: fix commitlint ([#592](https://github.com/webpack/webpack-cli/pull/592)) - ci: Add a status badge for the azure pipelines CI build ([#601](https://github.com/webpack/webpack-cli/pull/601)) - deps: resync package-lock, upgrade major version ([d892b4d](https://github.com/webpack/webpack-cli/commit/d892b4d)) - deps: Bump lerna version ([#583](https://github.com/webpack/webpack-cli/pull/583)) - deps: removing inquirer as default package ([#555](https://github.com/webpack/webpack-cli/pull/555)) - fix: fix clean all script ([6be0478](https://github.com/webpack/webpack-cli/commit/6be0478)) - Update schema-utils to the latest version 🚀 ([#565](https://github.com/webpack/webpack-cli/pull/565)) - update pkg.lock ([76c8277](https://github.com/webpack/webpack-cli/commit/76c8277)) - remove editorconfig from testfixtures ([#560](https://github.com/webpack/webpack-cli/pull/560)) - lint: fix tslint warnings ([cf0bf4a](https://github.com/webpack/webpack-cli/commit/cf0bf4a)) - lint: turn off console log warning ([db5f570](https://github.com/webpack/webpack-cli/commit/db5f570)) - lint: remove or replace console.log with console.error ([e425642](https://github.com/webpack/webpack-cli/commit/e425642)) - package: update lerna to version 3.0.0 ([08c424d](https://github.com/webpack/webpack-cli/commit/08c424d)) - scripts: update ts watch ([336ad3e](https://github.com/webpack/webpack-cli/commit/336ad3e)) - tests: added first ts test for info package ([#584](https://github.com/webpack/webpack-cli/pull/584)) ## CLI - allow array value for --ouput-library ([#559](https://github.com/webpack/webpack-cli/pull/559)) ## Docs - fixed latest changelog link ([#556](https://github.com/webpack/webpack-cli/pull/556)) - migrate documentaion ([#554](https://github.com/webpack/webpack-cli/pull/554)) - init documentaion ([#547](https://github.com/webpack/webpack-cli/pull/547)) - contribution: fix the setup workflow #591 ([#597](https://github.com/webpack/webpack-cli/pull/597)) - typedoc: add ts docs ([#571](https://github.com/webpack/webpack-cli/pull/571)) ## Fix - generate-loader: include example template in npm package ([d26ea82](https://github.com/webpack/webpack-cli/commit/d26ea82)) - generate-plugin: include example template in npm package ([77fa723](https://github.com/webpack/webpack-cli/commit/77fa723)) - package: update import-local to version 2.0.0 🚀 ([#576](https://github.com/webpack/webpack-cli/pull/576)) - prettier: add parser, filePath ([#553](https://github.com/webpack/webpack-cli/pull/553)) - schema: resolve references in schema ([#605](https://github.com/webpack/webpack-cli/pull/605)) ## Misc - Revert "cli: allow array value for --ouput-library (#559)" ([#561](https://github.com/webpack/webpack-cli/pull/561)) # 3.1.0 (2018-07-18) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.0.8...v.3.1.0) ## New Features - generators: add typescript support ([c1844f8](https://github.com/webpack/webpack-cli/commit/c1844f8)) - init: add typescript support ([222ccdc](https://github.com/webpack/webpack-cli/commit/222ccdc)) - make: add typescript support ([4b574d9](https://github.com/webpack/webpack-cli/commit/4b574d9)) - remove: add typescript support ([f1623ed](https://github.com/webpack/webpack-cli/commit/f1623ed)) - scaffold: add typescript support ([eaf6fdf](https://github.com/webpack/webpack-cli/commit/eaf6fdf)) - scaffold: add typescript support ([f611c27](https://github.com/webpack/webpack-cli/commit/f611c27)) - serve: add typescript support ([d313421](https://github.com/webpack/webpack-cli/commit/d313421)) - types: add webpack types schema ([90909e4](https://github.com/webpack/webpack-cli/commit/90909e4)) - typescript: setup base infra ([fe25465](https://github.com/webpack/webpack-cli/commit/fe25465)) - typescript: setup base infra ([373a304](https://github.com/webpack/webpack-cli/commit/373a304)) - update: add typescript support ([53505b9](https://github.com/webpack/webpack-cli/commit/53505b9)) - utils: add typescript support ([47702cb](https://github.com/webpack/webpack-cli/commit/47702cb)) ## Ast - parser: remove ([7f51c27](https://github.com/webpack/webpack-cli/commit/7f51c27)) - parser: remove ([faeec57](https://github.com/webpack/webpack-cli/commit/faeec57)) ## Chore - add-cmd: add typescript support ([fb98933](https://github.com/webpack/webpack-cli/commit/fb98933)) - add-cmd: add typescript support ([d730841](https://github.com/webpack/webpack-cli/commit/d730841)) - build: fix eslint pattern ([#529](https://github.com/webpack/webpack-cli/pull/529)) - build: fix ci ([#535](https://github.com/webpack/webpack-cli/pull/535)) - ci: fix build ([#534](https://github.com/webpack/webpack-cli/pull/534)) - ci: fix build ([#534](https://github.com/webpack/webpack-cli/pull/534)) - ci: remove semantic release ([#516](https://github.com/webpack/webpack-cli/pull/516)) - ci: update appveyor config, script ([f220c9e](https://github.com/webpack/webpack-cli/commit/f220c9e)) - ci: update travis script ([00df5ba](https://github.com/webpack/webpack-cli/commit/00df5ba)) - update pkg.lock ([817f99c](https://github.com/webpack/webpack-cli/commit/817f99c)) - fix minor build infra ([87dd419](https://github.com/webpack/webpack-cli/commit/87dd419)) - Update eslint to the latest version 🚀 ([#526](https://github.com/webpack/webpack-cli/pull/526)) - update gitignore ([fdc82b9](https://github.com/webpack/webpack-cli/commit/fdc82b9)) - add missing READMES to packages ([#545](https://github.com/webpack/webpack-cli/pull/545)) - docs: Updated working link for webpack addon. ([#543](https://github.com/webpack/webpack-cli/pull/543)) - generate-loader,plugin: add typescript support ([971b31a](https://github.com/webpack/webpack-cli/commit/971b31a)) - info: add typescript support ([ca133ab](https://github.com/webpack/webpack-cli/commit/ca133ab)) - info: add typescript support ([2c69df0](https://github.com/webpack/webpack-cli/commit/2c69df0)) - migrate: add typescript support ([82a7dec](https://github.com/webpack/webpack-cli/commit/82a7dec)) - package: update eslint-plugin-node to version 7.0.0 ([507a4a6](https://github.com/webpack/webpack-cli/commit/507a4a6)) - package: update lockfile ([a3d41fb](https://github.com/webpack/webpack-cli/commit/a3d41fb)) - release: whitelist/blacklist release files ([#514](https://github.com/webpack/webpack-cli/pull/514)) - release: whitelist/blacklist release files ([#514](https://github.com/webpack/webpack-cli/pull/514)) - release: whitelist/blacklist release files ([#514](https://github.com/webpack/webpack-cli/pull/514)) - scripts: fix pretest ([55efce6](https://github.com/webpack/webpack-cli/commit/55efce6)) - scripts: remove semantic-release ([#525](https://github.com/webpack/webpack-cli/pull/525)) - template: tiny fix for bug template ([51dc005](https://github.com/webpack/webpack-cli/commit/51dc005)) ## Docs - update jsdoc ([#507](https://github.com/webpack/webpack-cli/pull/507)) - update jsdoc ([#507](https://github.com/webpack/webpack-cli/pull/507)) - update jsdoc ([#507](https://github.com/webpack/webpack-cli/pull/507)) - pkg: readme file for add package ([#498](https://github.com/webpack/webpack-cli/pull/498)) - pkg: readme info ([#497](https://github.com/webpack/webpack-cli/pull/497)) - pkg: readme info ([#497](https://github.com/webpack/webpack-cli/pull/497)) ## Fix - default named import bug ([ce956c0](https://github.com/webpack/webpack-cli/commit/ce956c0)) - generators: named export ([8adbe9e](https://github.com/webpack/webpack-cli/commit/8adbe9e)) ## Tests - fix: bin test outputs ([#552](https://github.com/webpack/webpack-cli/pull/552)) - migrate: fix transforms order issue ([938e5f9](https://github.com/webpack/webpack-cli/commit/938e5f9)) ## Misc - Update yargs to the latest version 🚀 ([#533](https://github.com/webpack/webpack-cli/pull/533)) # 0.0.8-development (2018-06-15, webpack CLI v.3) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.1.5...v0.0.8-development) ## Ast - parser: add ([#456](https://github.com/webpack/webpack-cli/pull/456)) ## Chore - deps: add lerna ([a7d8085](https://github.com/webpack/webpack-cli/commit/a7d8085)) - lockfile: update pkglock ([0b024bf](https://github.com/webpack/webpack-cli/commit/0b024bf)) - monorepo: fix windows build ([0310fd3](https://github.com/webpack/webpack-cli/commit/0310fd3)) - monorepo: add bootstrap to run ([17c2c88](https://github.com/webpack/webpack-cli/commit/17c2c88)) - monorepo: fix windows build ([8c58d24](https://github.com/webpack/webpack-cli/commit/8c58d24)) - monorepo: add rimraf globally ([7c0e245](https://github.com/webpack/webpack-cli/commit/7c0e245)) - monorepo: fix versions and use clean bootstrap ([7de58ea](https://github.com/webpack/webpack-cli/commit/7de58ea)) - monorepo: fix appveyor build ([206749b](https://github.com/webpack/webpack-cli/commit/206749b)) - monorepo: add eslint-plugin-prettier ([ae55183](https://github.com/webpack/webpack-cli/commit/ae55183)) - monorepo: fix appveyor build ([a08b899](https://github.com/webpack/webpack-cli/commit/a08b899)) - monorepo: fix appveyor build ([42468d3](https://github.com/webpack/webpack-cli/commit/42468d3)) - next: dev version bump ([78b48a6](https://github.com/webpack/webpack-cli/commit/78b48a6)) - pkg: v.6 on next ([3a82b7d](https://github.com/webpack/webpack-cli/commit/3a82b7d)) - semantic: configure plugins ([#475](https://github.com/webpack/webpack-cli/pull/475)) - v.6: update init ([ebe5c6b](https://github.com/webpack/webpack-cli/commit/ebe5c6b)) ## CLI - add: re-add add command ([bf78411](https://github.com/webpack/webpack-cli/commit/bf78411)) - color: don't use color on non-tty ([#452](https://github.com/webpack/webpack-cli/pull/452)) - init: Better defaults ([#451](https://github.com/webpack/webpack-cli/pull/451)) - symlinks: Fix paths ([#453](https://github.com/webpack/webpack-cli/pull/453)) ## Fix - cli: show help flag when defaults fail ([#466](https://github.com/webpack/webpack-cli/pull/466)) - vulnerabilities: vulnerabilities patch for v3 ([#460](https://github.com/webpack/webpack-cli/pull/460)) ## Tests - cov: use regular nyc on tests ([3aa96ce](https://github.com/webpack/webpack-cli/commit/3aa96ce)) - coverage: fix coverage ([#473](https://github.com/webpack/webpack-cli/pull/473)) - no-options: refactor tests ([7be10d8](https://github.com/webpack/webpack-cli/commit/7be10d8)) - parser: fix recursive-tests signature ([#470](https://github.com/webpack/webpack-cli/pull/470)) ## Misc - Added yarn lock file to gitignore ([#455](https://github.com/webpack/webpack-cli/pull/455)) # 0.0.6 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.0.5...v0.0.6) ## CLI - path: resolve better ([7fca948](https://github.com/webpack/webpack-cli/commit/7fca948)) ## Misc - v0.0.6 ([f544578](https://github.com/webpack/webpack-cli/commit/f544578)) # 0.0.5 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.0.4...v0.0.5) ## Chore - deps: update deps ([58a437d](https://github.com/webpack/webpack-cli/commit/58a437d)) - prompt: revise prompt cmd ([bccc56e](https://github.com/webpack/webpack-cli/commit/bccc56e)) ## Misc - v0.0.5 ([062fa28](https://github.com/webpack/webpack-cli/commit/062fa28)) # 0.0.4 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.0.3...v0.0.4) ## Chore - v: back to v1 ([3ed29c6](https://github.com/webpack/webpack-cli/commit/3ed29c6)) ## Misc - v0.0.4 ([e29a173](https://github.com/webpack/webpack-cli/commit/e29a173)) - v0.0.3 ([01cef3f](https://github.com/webpack/webpack-cli/commit/01cef3f)) - v0.0.2 ([6489b10](https://github.com/webpack/webpack-cli/commit/6489b10)) # 0.0.3 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.0.2...v0.0.3) ## Misc - v0.0.3 ([b51e66d](https://github.com/webpack/webpack-cli/commit/b51e66d)) # 0.0.2 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v0.0.1...v0.0.2) ## Chore - v: revise some deps ([c36f3e8](https://github.com/webpack/webpack-cli/commit/c36f3e8)) ## Misc - v0.0.2 ([91be3fd](https://github.com/webpack/webpack-cli/commit/91be3fd)) # 0.0.1 (2018-05-17) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.1.3...v0.0.1) ## Chore - cli: move to lerna and scoped packages ([#434](https://github.com/webpack/webpack-cli/pull/434)) - linting: resolve linting ([80c9e9a](https://github.com/webpack/webpack-cli/commit/80c9e9a)) - linting: resolve linting ([8f6f1db](https://github.com/webpack/webpack-cli/commit/8f6f1db)) - linting: fix linting errors ([a76c46f](https://github.com/webpack/webpack-cli/commit/a76c46f)) - linting: resolve linter errors ([1db677e](https://github.com/webpack/webpack-cli/commit/1db677e)) - monorepo: fix plugin package.json ([3c822cf](https://github.com/webpack/webpack-cli/commit/3c822cf)) - monorepo: prune files and update eslint rules ([059d6f9](https://github.com/webpack/webpack-cli/commit/059d6f9)) - monorepo: move to lerna ([ec6cc38](https://github.com/webpack/webpack-cli/commit/ec6cc38)) - monorepo: use commands as normal instead of package ([bdafce0](https://github.com/webpack/webpack-cli/commit/bdafce0)) - monorepo: fix the no-missing-require error ([8ef1804](https://github.com/webpack/webpack-cli/commit/8ef1804)) - monorepo: updated package.json ([ff6c371](https://github.com/webpack/webpack-cli/commit/ff6c371)) - monorepo: merge package lock json ([d4c7c5d](https://github.com/webpack/webpack-cli/commit/d4c7c5d)) - monorepo: prune package json ([64cfef7](https://github.com/webpack/webpack-cli/commit/64cfef7)) - monorepo: fix typo ([a6a2715](https://github.com/webpack/webpack-cli/commit/a6a2715)) - monorepo: fix typo ([a1d5406](https://github.com/webpack/webpack-cli/commit/a1d5406)) - rebase: refactor stuff ([b02070d](https://github.com/webpack/webpack-cli/commit/b02070d)) - scaffold: move addons to scaffold ([b2a7470](https://github.com/webpack/webpack-cli/commit/b2a7470)) - scaffold: fix linting errors ([df8287d](https://github.com/webpack/webpack-cli/commit/df8287d)) - v: revise pkg ([ab38a3a](https://github.com/webpack/webpack-cli/commit/ab38a3a)) ## CLI - pkgs: re-add entries ([b2c2bbd](https://github.com/webpack/webpack-cli/commit/b2c2bbd)) - prompt: wip ([5f357c9](https://github.com/webpack/webpack-cli/commit/5f357c9)) - prompt: initial comment for prompt file ([f8a71c0](https://github.com/webpack/webpack-cli/commit/f8a71c0)) ## Fix - monorepo: fix versions in pacakges ([2b3035c](https://github.com/webpack/webpack-cli/commit/2b3035c)) - monorepo: update lock files ([ca8f5c1](https://github.com/webpack/webpack-cli/commit/ca8f5c1)) - monorepo: fix cross spawn versions ([0fcc5b3](https://github.com/webpack/webpack-cli/commit/0fcc5b3)) - monorepo: fix lint errors ([74fb759](https://github.com/webpack/webpack-cli/commit/74fb759)) - revert: packagejson ([3dd244b](https://github.com/webpack/webpack-cli/commit/3dd244b)) ## Misc - v0.0.1 ([faae7aa](https://github.com/webpack/webpack-cli/commit/faae7aa)) # 2.1.3 (2018-05-06) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.1.2...v2.1.3) ## Chore - pkg: remove prefer global ([4149c53](https://github.com/webpack/webpack-cli/commit/4149c53)) - templates: Update issue templates ([#432](https://github.com/webpack/webpack-cli/pull/432)) ## CLI - cmds: revise yargs command ([#422](https://github.com/webpack/webpack-cli/pull/422)) # 2.0.14 (2018-04-05) [Full Changelog](https://github.com/webpack/webpack-cli/compare/2.0.13...2.0.14) ## New Features - use npm ci for tests (#367) ([#368](https://github.com/webpack/webpack-cli/pull/368)) - add envinfo as `webpack-cli info` command ([51ab19f](https://github.com/webpack/webpack-cli/commit/51ab19f)) - --entry should override config.entry (#155) ([#358](https://github.com/webpack/webpack-cli/pull/358)) ## Chore - coverage: added reporters inside package.json ([c7d80fb](https://github.com/webpack/webpack-cli/commit/c7d80fb)) - upgrade: webpack 4.2 and other dependencies ([#362](https://github.com/webpack/webpack-cli/pull/362)) - version: v.2.0.13 ([2222f1d](https://github.com/webpack/webpack-cli/commit/2222f1d)) ## CLI - refactor: improve folder structure ([#371](https://github.com/webpack/webpack-cli/pull/371)) ## Fix - loader,plugin: fix generators path bug ([b4bfafb](https://github.com/webpack/webpack-cli/commit/b4bfafb)) # 2.0.13 (2018-03-22) [Full Changelog](https://github.com/webpack/webpack-cli/compare/2.0.12...2.0.13) ## Chore - pkg: explicitly include files for release ([#349](https://github.com/webpack/webpack-cli/pull/349)) ## CLI - init: add webpack-cli dep ([#347](https://github.com/webpack/webpack-cli/pull/347)) # 2.0.12 (2018-03-14) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.11...v2.0.12) ## New Features - support --build-delimiter for opt-in output delimiter (#192) ([#340](https://github.com/webpack/webpack-cli/pull/340)) ## Chore - gitignore: add vim swap files to gitignore ([3448fb5](https://github.com/webpack/webpack-cli/commit/3448fb5)) - scaffolding: update docs ([#336](https://github.com/webpack/webpack-cli/pull/336)) ## Fix - removes debug in migrate ([#342](https://github.com/webpack/webpack-cli/pull/342)) ## Tests - snapshot: update snapshot ([bd8ccda](https://github.com/webpack/webpack-cli/commit/bd8ccda)) ## Misc - cz: fix type description ([#339](https://github.com/webpack/webpack-cli/pull/339)) - init: fix global-modules require statement in package-manager ([610aa02](https://github.com/webpack/webpack-cli/commit/610aa02)) - init-generator: cleanup ([b8c3145](https://github.com/webpack/webpack-cli/commit/b8c3145)) # 2.0.11 (2018-03-10) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.10...v2.0.11) ## Chore - bundlesize: change threshold ([2aedfda](https://github.com/webpack/webpack-cli/commit/2aedfda)) - deps: upgrade deps ([#319](https://github.com/webpack/webpack-cli/pull/319)) - docs: update docs ([3307e3b](https://github.com/webpack/webpack-cli/commit/3307e3b)) - es6: changed 'var' into 'const' where convenient ([#325](https://github.com/webpack/webpack-cli/pull/325)) - test: updated tests file names ([#324](https://github.com/webpack/webpack-cli/pull/324)) ## CLI - init: Refactor Yeoman ([#323](https://github.com/webpack/webpack-cli/pull/323)) - tapable: Remove Tapable#apply calls ([#305](https://github.com/webpack/webpack-cli/pull/305)) ## Docs - update README to remove inconsistent CLI messaging (#327) ([#328](https://github.com/webpack/webpack-cli/pull/328)) ## Fix - migrate: move options to use ([#308](https://github.com/webpack/webpack-cli/pull/308)) - adding 'fix' to whitelist ([10a00df](https://github.com/webpack/webpack-cli/commit/10a00df)) ## Misc - deps: clean up dependencies ([7078282](https://github.com/webpack/webpack-cli/commit/7078282)) - generator: Allow local paths to generators ([#265](https://github.com/webpack/webpack-cli/pull/265)) - grammar: revise spelling and incorrect syntax ([#293](https://github.com/webpack/webpack-cli/pull/293)) - readme: add npm badge ([#303](https://github.com/webpack/webpack-cli/pull/303)) # 2.0.10 (2018-03-02) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.4...v2.0.10) ## New Features - show help when no options given ([a7ee15a](https://github.com/webpack/webpack-cli/commit/a7ee15a)) - chore: add project tools and utilities ([#270](https://github.com/webpack/webpack-cli/pull/270)) ## Ast - init: fix init command ([d36cd4f](https://github.com/webpack/webpack-cli/commit/d36cd4f)) ## Chore - .gitignore: ignore .vscode ([a322505](https://github.com/webpack/webpack-cli/commit/a322505)) - .gitignore: ignore .vscode ([ab0eacc](https://github.com/webpack/webpack-cli/commit/ab0eacc)) - add: temp remove add from cli ([f663215](https://github.com/webpack/webpack-cli/commit/f663215)) - changelog: v.2.0.7 changelog ([a165269](https://github.com/webpack/webpack-cli/commit/a165269)) - clean: remove unused dependency ([4a395d7](https://github.com/webpack/webpack-cli/commit/4a395d7)) - deps: bump uglify dep and cli version ([81a9f1e](https://github.com/webpack/webpack-cli/commit/81a9f1e)) - packager: remove yarn ([#302](https://github.com/webpack/webpack-cli/pull/302)) - pkg.json: remove commitmsg cmd ([4dff074](https://github.com/webpack/webpack-cli/commit/4dff074)) - refactor: update supports-color usage ([4566fde](https://github.com/webpack/webpack-cli/commit/4566fde)) - refactor: update supports-color usage ([97b2df3](https://github.com/webpack/webpack-cli/commit/97b2df3)) - revert: revert yargs to 9.0.1 ([7ef13ef](https://github.com/webpack/webpack-cli/commit/7ef13ef)) - upgrade: update all dependencies, devDependencies ([4bf64bf](https://github.com/webpack/webpack-cli/commit/4bf64bf)) - version: v.2.0.9 ([4cf5e17](https://github.com/webpack/webpack-cli/commit/4cf5e17)) ## CLI - devServer: change devServer path ([c27e961](https://github.com/webpack/webpack-cli/commit/c27e961)) - version: v.2.0.8 ([9406912](https://github.com/webpack/webpack-cli/commit/9406912)) ## Fix - generator: use yeoman clone ([0b4269c](https://github.com/webpack/webpack-cli/commit/0b4269c)) - yeoman-generator fork issue ([#294](https://github.com/webpack/webpack-cli/pull/294)) - Resolve webpack dependencies ([#251](https://github.com/webpack/webpack-cli/pull/251)) - change help logic ([d67f4b7](https://github.com/webpack/webpack-cli/commit/d67f4b7)) ## Improvement - add an option to watch messaging. Add .idea to .gitignore ([#200](https://github.com/webpack/webpack-cli/pull/200)) ## Refactor - convert-args: remove unused arguments ([#253](https://github.com/webpack/webpack-cli/pull/253)) ## Style - run formatter ([7be0da7](https://github.com/webpack/webpack-cli/commit/7be0da7)) ## Tests - add test for showing help on no options ([cf43939](https://github.com/webpack/webpack-cli/commit/cf43939)) - mode: add mode tests ([#285](https://github.com/webpack/webpack-cli/pull/285)) - update: migrate snapshot ([3c4e6f7](https://github.com/webpack/webpack-cli/commit/3c4e6f7)) - update: migrate snapshot ([c322067](https://github.com/webpack/webpack-cli/commit/c322067)) ## Misc - refactor: reduce code duplication use process.exitCode instead of process.exit ([#272](https://github.com/webpack/webpack-cli/pull/272)) - [feature] configuration validation ([#240](https://github.com/webpack/webpack-cli/pull/240)) - Commitlint ([#300](https://github.com/webpack/webpack-cli/pull/300)) - Change from git:// to https:// ([#259](https://github.com/webpack/webpack-cli/pull/259)) - Add jsdoc comments for migrate ([#255](https://github.com/webpack/webpack-cli/pull/255)) - strict Promise configuration validation ([#298](https://github.com/webpack/webpack-cli/pull/298)) - Refactor bin directory ([#263](https://github.com/webpack/webpack-cli/pull/263)) - Issue 249 fixed and other enums refactored ([#264](https://github.com/webpack/webpack-cli/pull/264)) - remove yargs major update due security compromise ([9bd7ed4](https://github.com/webpack/webpack-cli/commit/9bd7ed4)) - Revert "Show help on no command" ([#276](https://github.com/webpack/webpack-cli/pull/276)) - 2.0.5 ([94ac6db](https://github.com/webpack/webpack-cli/commit/94ac6db)) - v.2.0.6 ([4333088](https://github.com/webpack/webpack-cli/commit/4333088)) - fix typo.. ([0f1cee6](https://github.com/webpack/webpack-cli/commit/0f1cee6)) - binTestCases: remove obsolete snapshot ([42301d7](https://github.com/webpack/webpack-cli/commit/42301d7)) - dep: add webpack 4 as peer dependency ([#297](https://github.com/webpack/webpack-cli/pull/297)) - migrate: prettify output ([#281](https://github.com/webpack/webpack-cli/pull/281)) - revert: revert supports-color usage ([f8e819a](https://github.com/webpack/webpack-cli/commit/f8e819a)) - revert: revert supports-color usage ([75f706b](https://github.com/webpack/webpack-cli/commit/75f706b)) - syntax: prettify ([5cb146f](https://github.com/webpack/webpack-cli/commit/5cb146f)) - yargs: add description for module-bind-\* args ([#286](https://github.com/webpack/webpack-cli/pull/286)) # 2.0.9 (2018-02-25) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.4...v2.0.9) ## Ast - init: fix init command ([d36cd4f](https://github.com/webpack/webpack-cli/commit/d36cd4f)) ## Chore - .gitignore: ignore .vscode ([ab0eacc](https://github.com/webpack/webpack-cli/commit/ab0eacc)) - .gitignore: ignore .vscode ([a322505](https://github.com/webpack/webpack-cli/commit/a322505)) - add: temp remove add from cli ([f663215](https://github.com/webpack/webpack-cli/commit/f663215)) - changelog: v.2.0.7 changelog ([a165269](https://github.com/webpack/webpack-cli/commit/a165269)) - deps: bump uglify dep and cli version ([81a9f1e](https://github.com/webpack/webpack-cli/commit/81a9f1e)) - pkg.json: remove commitmsg cmd ([4dff074](https://github.com/webpack/webpack-cli/commit/4dff074)) ## CLI - devServer: change devServer path ([c27e961](https://github.com/webpack/webpack-cli/commit/c27e961)) - version: v.2.0.8 ([9406912](https://github.com/webpack/webpack-cli/commit/9406912)) ## Feat - show help when no options given ([a7ee15a](https://github.com/webpack/webpack-cli/commit/a7ee15a)) - chore: add project tools and utilities ([#270](https://github.com/webpack/webpack-cli/pull/270)) ## Fix - Resolve webpack dependencies ([#251](https://github.com/webpack/webpack-cli/pull/251)) - change help logic ([d67f4b7](https://github.com/webpack/webpack-cli/commit/d67f4b7)) - generator: use yeoman clone ([0b4269c](https://github.com/webpack/webpack-cli/commit/0b4269c)) ## Improvement - add an option to watch messaging. Add .idea to .gitignore ([#200](https://github.com/webpack/webpack-cli/pull/200)) ## Refactor - convert-args: remove unused arguments ([#253](https://github.com/webpack/webpack-cli/pull/253)) ## Style - run formatter ([7be0da7](https://github.com/webpack/webpack-cli/commit/7be0da7)) ## Tests - add test for showing help on no options ([cf43939](https://github.com/webpack/webpack-cli/commit/cf43939)) ## Misc - remove yargs major update due security compromise ([9bd7ed4](https://github.com/webpack/webpack-cli/commit/9bd7ed4)) - Revert "Show help on no command" ([#276](https://github.com/webpack/webpack-cli/pull/276)) - v.2.0.6 ([4333088](https://github.com/webpack/webpack-cli/commit/4333088)) - fix typo.. ([0f1cee6](https://github.com/webpack/webpack-cli/commit/0f1cee6)) - 2.0.5 ([94ac6db](https://github.com/webpack/webpack-cli/commit/94ac6db)) - Change from git:// to https:// ([#259](https://github.com/webpack/webpack-cli/pull/259)) - Issue 249 fixed and other enums refactored ([#264](https://github.com/webpack/webpack-cli/pull/264)) - Refactor bin directory ([#263](https://github.com/webpack/webpack-cli/pull/263)) - Add jsdoc comments for migrate ([#255](https://github.com/webpack/webpack-cli/pull/255)) - [feature] configuration validation ([#240](https://github.com/webpack/webpack-cli/pull/240)) - refactor: reduce code duplication use process.exitCode instead of process.exit ([#272](https://github.com/webpack/webpack-cli/pull/272)) # 2.0.7 (2018-02-24) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.4...v2.0.7) ## Chore - .gitignore: ignore .vscode ([ab0eacc](https://github.com/webpack/webpack-cli/commit/ab0eacc)) - .gitignore: ignore .vscode ([a322505](https://github.com/webpack/webpack-cli/commit/a322505)) - add: temp remove add from cli ([f663215](https://github.com/webpack/webpack-cli/commit/f663215)) - deps: bump uglify dep and cli version ([81a9f1e](https://github.com/webpack/webpack-cli/commit/81a9f1e)) ## Feat - show help when no options given ([a7ee15a](https://github.com/webpack/webpack-cli/commit/a7ee15a)) - chore: add project tools and utilities ([#270](https://github.com/webpack/webpack-cli/pull/270)) ## Fix - Resolve webpack dependencies ([#251](https://github.com/webpack/webpack-cli/pull/251)) - change help logic ([d67f4b7](https://github.com/webpack/webpack-cli/commit/d67f4b7)) ## Improvement - add an option to watch messaging. Add .idea to .gitignore ([#200](https://github.com/webpack/webpack-cli/pull/200)) ## Refactor - convert-args: remove unused arguments ([#253](https://github.com/webpack/webpack-cli/pull/253)) ## Style - run formatter ([7be0da7](https://github.com/webpack/webpack-cli/commit/7be0da7)) ## Tests - add test for showing help on no options ([cf43939](https://github.com/webpack/webpack-cli/commit/cf43939)) ## Misc - remove yargs major update due security compromise ([9bd7ed4](https://github.com/webpack/webpack-cli/commit/9bd7ed4)) - Revert "Show help on no command" ([#276](https://github.com/webpack/webpack-cli/pull/276)) - v.2.0.6 ([4333088](https://github.com/webpack/webpack-cli/commit/4333088)) - fix typo.. ([0f1cee6](https://github.com/webpack/webpack-cli/commit/0f1cee6)) - 2.0.5 ([94ac6db](https://github.com/webpack/webpack-cli/commit/94ac6db)) - Change from git:// to https:// ([#259](https://github.com/webpack/webpack-cli/pull/259)) - Issue 249 fixed and other enums refactored ([#264](https://github.com/webpack/webpack-cli/pull/264)) - Refactor bin directory ([#263](https://github.com/webpack/webpack-cli/pull/263)) - Add jsdoc comments for migrate ([#255](https://github.com/webpack/webpack-cli/pull/255)) - [feature] configuration validation ([#240](https://github.com/webpack/webpack-cli/pull/240)) - refactor: reduce code duplication use process.exitCode instead of process.exit ([#272](https://github.com/webpack/webpack-cli/pull/272)) # 2.0.6 (2018-02-20) [Full Changelog](https://github.com/webpack/webpack-cli/compare/v2.0.4...v2.0.6) ## Chore - .gitignore: ignore .vscode ([ab0eacc](https://github.com/webpack/webpack-cli/commit/ab0eacc)) - .gitignore: ignore .vscode ([a322505](https://github.com/webpack/webpack-cli/commit/a322505)) - add new items to chore: adds chore command ([db243b6](https://github.com/webpack/webpack-cli/commit/db243b6)) - linting: lint added files ([6dc12af](https://github.com/webpack/webpack-cli/commit/6dc12af)) - remove cmd: removes f command ([7adfdcf](https://github.com/webpack/webpack-cli/commit/7adfdcf)) ## Feat - show help when no options given ([a7ee15a](https://github.com/webpack/webpack-cli/commit/a7ee15a)) ## Fix - Resolve webpack dependencies ([#251](https://github.com/webpack/webpack-cli/pull/251)) - change help logic ([d67f4b7](https://github.com/webpack/webpack-cli/commit/d67f4b7)) ## Improvement - add an option to watch messaging. Add .idea to .gitignore ([#200](https://github.com/webpack/webpack-cli/pull/200)) ## Refactor - convert-args: remove unused arguments ([#253](https://github.com/webpack/webpack-cli/pull/253)) ## Style - run formatter ([7be0da7](https://github.com/webpack/webpack-cli/commit/7be0da7)) ## Tests - add test for showing help on no options ([cf43939](https://github.com/webpack/webpack-cli/commit/cf43939)) ## Misc - remove yargs major update due security compromise ([9bd7ed4](https://github.com/webpack/webpack-cli/commit/9bd7ed4)) - [feature] configuration validation ([#240](https://github.com/webpack/webpack-cli/pull/240)) - v.2.0.6 ([4333088](https://github.com/webpack/webpack-cli/commit/4333088)) - fix typo.. ([0f1cee6](https://github.com/webpack/webpack-cli/commit/0f1cee6)) - 2.0.5 ([94ac6db](https://github.com/webpack/webpack-cli/commit/94ac6db)) - Change from git:// to https:// ([#259](https://github.com/webpack/webpack-cli/pull/259)) - Issue 249 fixed and other enums refactored ([#264](https://github.com/webpack/webpack-cli/pull/264)) - Refactor bin directory ([#263](https://github.com/webpack/webpack-cli/pull/263)) - Add jsdoc comments for migrate ([#255](https://github.com/webpack/webpack-cli/pull/255)) - add commitlinting: adds commit linting to the cli ([7e4dd3d](https://github.com/webpack/webpack-cli/commit/7e4dd3d)) - add eslint ignore items: adds build folder and commit linter to ignore ([a400809](https://github.com/webpack/webpack-cli/commit/a400809)) ## 2.0.0 (2017-12-21) - Adds add - Remove some mocks - Remove validationschema and ajv dependencies - Update Jest & Jest-cli - Remove unused dependencies - Creator is now init - Using env preset ([#197](https://github.com/webpack/webpack-cli/pull/197)) - Using Yarn ([#203](https://github.com/webpack/webpack-cli/pull/203)) - Using peer dep of webpack - Transformations is now migrate - Init has its own generator - Commands are refactored into a HOC and sent to a folder for each command with an helper for scaffolding aliases - Using RawList instead of List for better usability ([82c64db](https://github.com/webpack/webpack-cli/commit/541ba62f02c4a1fcc807eac62a551fcae3f2d2c3)) - lib/transformations/util is now in lib/utils/ast-utils - Each AST module now has an extra argument that specifies action to be done - FindPluginsByRoot is now FindRootByName and more generalistic - Added ast util function createEmptyCallableFunctionWithArguments - Refactor for readability ([#214](https://github.com/webpack/webpack-cli/pull/214)) - Remove dist from repo ([#215](https://github.com/webpack/webpack-cli/pull/215)) - Remove entry and output validation ([#217](https://github.com/webpack/webpack-cli/pull/217)) - topScope now checks if the import already is present - Updated test errors/issue-5576, remember to sync with webpack/next - User friendly startup message ([#218](https://github.com/webpack/webpack-cli/pull/218)) - Migrate now uses prettier ([88aaaa2](https://github.com/webpack/webpack-cli/commit/972d4cd90061644aa2f4aaac33d2d80cb4a56d57) - Added transform for mode ([972d4cd](https://github.com/webpack/webpack-cli/commit/e1f512c9bb96694dd623562dc4cef411ed004c2c) - Remove recast fork ([fba04da](https://github.com/webpack/webpack-cli/commit/b416d9c50138ef343b8bac6e3f66fdd5b917857d)) - New transforms ([b416d9c](https://github.com/webpack/webpack-cli/commit/28680c944dca0860ca59a38910840a641b418d18)) - JSdocs are added ([47de46a](https://github.com/webpack/webpack-cli/commit/285846a4cb1f976edcdb36629cf247d8017ff956)) - Added serve alias ([#204](https://github.com/webpack/webpack-cli/pull/204)) - Migrate has new validate logic ([c4c68e8](https://github.com/webpack/webpack-cli/commit/5d4430a6a5531cd8084e5a591f7884e746e21b2f)) - webpack serve logic ([5d4430a](https://github.com/webpack/webpack-cli/commit/992bfe2b08b98aebb43c68d5e5a92320ba3e32a8)) - webpack --config-register and webpack -r is added ([1f24d19](https://github.com/webpack/webpack-cli/commit/ab9421136887b7e9e10f25a39b59fb32f07b5037)) - work on makefile generation ([d86e1ce](https://github.com/webpack/webpack-cli/commit/4f9a4f88a8bd113762a54c05b3b9fe6f459855db)) - Appveyor is added ([9b2f6f5](https://github.com/webpack/webpack-cli/commit/c5c97462d6ccfa4c02fd79206fa075815520cd88)) - Remove commit-validate from docs ([#222](https://github.com/webpack/webpack-cli/pull/222)) - Added transform ResolveLoader ([7c713ce](https://github.com/webpack/webpack-cli/commit/3c90e83fa7b8dd5fbecaee5d1b9d8f0279600096)) - Using v8-compile-cache ([7e57314](https://github.com/webpack/webpack-cli/commit/0564ceb77a995239d0be7a022b948cbd727773a4)) - Adds webpack-cli bot ([#224](https://github.com/webpack/webpack-cli/pull/224)) ## 1.3.2 (2017-05-15) ### Bug Fixes - add css-loader appropriately ([#141](https://github.com/webpack/webpack-cli/issues/141)) ([a71600e](https://github.com/webpack/webpack-cli/commit/a71600e)) - Deps 'webpack' and 'uglifyjs-webpack-plugin' not installed when user answers yes to 'using ES2015' ([#135](https://github.com/webpack/webpack-cli/issues/135)). ([#136](https://github.com/webpack/webpack-cli/issues/136)) ([524f035](https://github.com/webpack/webpack-cli/commit/524f035)) - Install correct (`es2015`) babel preset to match generated config ([#138](https://github.com/webpack/webpack-cli/issues/138)) ([b0af53f](https://github.com/webpack/webpack-cli/commit/b0af53f)) - use correct test function ([#129](https://github.com/webpack/webpack-cli/issues/129)) ([3464d9e](https://github.com/webpack/webpack-cli/commit/3464d9e)) ## 1.3.1 (2017-05-02) ### Bug Fixes - add safe traverse to loaderoptionsplugin ([#77](https://github.com/webpack/webpack-cli/issues/77)) ([4020043](https://github.com/webpack/webpack-cli/commit/4020043)) - Do not create LoaderOptionsPlugin if loaderOptions is empty ([#72](https://github.com/webpack/webpack-cli/issues/72)) ([b9d22c9](https://github.com/webpack/webpack-cli/commit/b9d22c9)) ([68a2dfd](https://github.com/webpack/webpack-cli/commit/68a2dfd)) - Upgrade to Jest 19 ([#71](https://github.com/webpack/webpack-cli/issues/71)) ([fe62523](https://github.com/webpack/webpack-cli/commit/fe62523)) - Use `safeTraverse` where appropriate ([#94](https://github.com/webpack/webpack-cli/issues/94)) ([dcde2b6](https://github.com/webpack/webpack-cli/commit/dcde2b6)) ([3464d9e](https://github.com/webpack/webpack-cli/commit/3464d9e)) - Use real paths from argvs instead of dummy hard-coded file ([#65](https://github.com/webpack/webpack-cli/issues/65)) ([a46edbb](https://github.com/webpack/webpack-cli/commit/a46edbb)) ### Features - Add beautifier config for JS code ([64c88ea](https://github.com/webpack/webpack-cli/commit/64c88ea)) - Add commit validation and commits template ([d0cbfc0](https://github.com/webpack/webpack-cli/commit/d0cbfc0)) - Add editorconfig settings from core webpack ([89809de](https://github.com/webpack/webpack-cli/commit/89809de)) - Add yarn settings to handle dependencies ([34579c7](https://github.com/webpack/webpack-cli/commit/34579c7)) - Adds a resolved path for output ([#80](https://github.com/webpack/webpack-cli/issues/80)) ([37a594d](https://github.com/webpack/webpack-cli/commit/37a594d)) - Introduce reserve and timestamps ([#24](https://github.com/webpack/webpack-cli/issues/24)) ([ed267b4](https://github.com/webpack/webpack-cli/commit/ed267b4)) - Webpack-CLI version 1([#105](https://github.com/webpack/webpack-cli/pull/105)) - Feature: Use listr to display progress and errors for transformations([#92](https://github.com/webpack/webpack-cli/pull/92)) - Feature: Jscodeshift Transformations for --migrate ([#40](https://github.com/webpack/webpack-cli/pull/40)) package/LICENSE000644 0000002056 3560116604 010270 0ustar00000000 000000 Copyright JS Foundation and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.package/README.md000644 0000014400 3560116604 010536 0ustar00000000 000000

webpack CLI

The official CLI of webpack


[![npm][npm]][npm-url] [![Build Status][build-status]][build-status-url] [![Build2 Status][build-status-azure]][build-status-azure-url] [![deps][deps]][deps-url] [![Code Climate][maintainability]][maintainability-url] [![chat on gitter][chat]][chat-url] [![Install Size][size]][size-url] [![Downloads][downloads]][downloads-url] [![lerna][lerna]][lerna-url] [![GitHub contributors][contributors]][contributors-url] - [About](#about) - [How to install](#how-to-install) - [Packages](#packages) - [Commands](#commands) - [Utilities](#utilities) - [Getting started](#getting-started) - [webpack CLI Scaffolds](#webpack-cli-scaffolds) - [Contributing and Internal Documentation](#contributing-and-internal-documentation) - [Open Collective](#open-collective) ## About webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration. ### How to install When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed! Otherwise `npm install --save-dev webpack-cli` or `yarn add webpack-cli --dev` will install it. ## Packages We organize webpack CLI as a multi-package repository using [lerna](https://github.com/lerna/lerna). Every command has a dedicated subfolder in the `packages` Folder. Here's a summary of commands provided by the CLI. ### Commands Supporting developers is an important task for webpack CLI. Thus, webpack CLI provides different commands for many common tasks. - [`webpack-cli init`](./packages/init/README.md#webpack-cli-init) - Create a new webpack configuration. - [`webpack-cli info`](./packages/info/README.md#webpack-cli-info) - Returns information related to the local environment. - [`webpack-cli migrate`](./packages/migrate/README.md#webpack-cli-migrate) - Migrate project from one version to another. - [`webpack-cli generate-plugin`](./packages/generate-plugin/README.md#webpack-cli-generate-plugin) - Initiate new plugin project. - [`webpack-cli generate-loader`](./packages/generate-loader/README.md#webpack-cli-generate-loader) - Initiate new loader project. - [`webpack-cli serve`](./packages/serve/README.md#webpack-cli-serve) - Use webpack with a development server that provides live reloading. ### Utilities The project also has several utility packages which are used by other commands - [`utils`](./packages/utils/README.md) - Several utilities used across webpack-cli. - [`generators`](./packages/generators/README.md) - Contains all webpack-cli related yeoman generators. - [`webpack-scaffold`](./packages/webpack-scaffold/README.md) - Utilities to create a webpack scaffold. ## Getting started When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed! Otherwise, you would need to install webpack CLI and the packages you want to use. If we want to use the `init` command to create a new `webpack.config.js` configuration file: ```sh npm i webpack-cli @webpack-cli/init npx webpack-cli init ``` You will be prompted for some questions about what how you want to generate your config file when running the `init` command so webpack CLI can provide the best fitting configuration. ## webpack CLI Scaffolds With v3 of webpack CLI, we introduced scaffolding as an integral part of the CLI. Our goal is to simplify the creation of webpack configurations for different purposes. Additionally, sharing such solutions with the community is beneficial and with webpack, we want to allow this. We provide `webpack-scaffold` as a utility suite for creating these scaffolds. It contains functions that could be of use for creating a scaffold yourself. You can read more about [Scaffolding](https://webpack.js.org/guides/scaffolding), learn [How to compose a webpack-scaffold?](https://webpack.js.org/contribute/writing-a-scaffold) or generate one with [webpack-scaffold-starter](https://github.com/rishabh3112/webpack-scaffold-starter). ## Contributing and Internal Documentation The webpack family welcomes any contributor, small or big. We are happy to elaborate, guide you through the source code and find issues you might want to work on! To get started have a look at our [documentation on contributing](./.github/CONTRIBUTING.md). ## Open Collective If you like **webpack**, please consider donating to our [Open Collective](https://opencollective.com/webpack) to help us maintain it. [build-status]: https://travis-ci.org/webpack/webpack-cli.svg [build-status-url]: https://travis-ci.org/webpack/webpack-cli [build-status-azure]: https://dev.azure.com/webpack/webpack/_apis/build/status/webpack.webpack-cli [build-status-azure-url]: https://dev.azure.com/webpack/webpack/_build/latest?definitionId=4 [chat]: https://badges.gitter.im/webpack/webpack.svg [chat-url]: https://gitter.im/webpack/webpack [contributors]: https://img.shields.io/github/contributors/webpack/webpack-cli.svg [contributors-url]: https://github.com/webpack/webpack-cli/graphs/contributors [deps]: https://img.shields.io/david/webpack/webpack.svg [deps-url]: https://david-dm.org/webpack/webpack-cli [downloads]: https://img.shields.io/npm/dw/webpack-cli.svg [downloads-url]: https://www.npmjs.com/package/webpack-cli [lerna]: https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg [lerna-url]: http://www.lernajs.io/ [npm]: https://img.shields.io/npm/v/webpack-cli.svg [npm-url]: https://www.npmjs.com/package/webpack-cli [maintainability]: https://codeclimate.com/github/webpack/webpack-cli/badges/gpa.svg [maintainability-url]: https://codeclimate.com/github/webpack/webpack-cli [size]: https://packagephobia.now.sh/badge?p=webpack-cli [size-url]: https://packagephobia.now.sh/result?p=webpack-cli package/bin/.eslintrc.js000644 0000002655 3560116604 012277 0ustar00000000 000000 module.exports = { root: true, plugins: ["node"], extends: ["../.eslintrc.js", "plugin:node/recommended"], env: { node: true, es6: true, jest: true }, parserOptions: { ecmaVersion: 2017, sourceType: "module" }, rules: { "node/no-unsupported-features": ["error", { version: 6 }], "node/no-deprecated-api": "error", "node/no-missing-import": "error", "node/no-missing-require": [ "error", { resolvePaths: ["./packages"], allowModules: [ "webpack", "@webpack-cli/generators", "@webpack-cli/init", "@webpack-cli/migrate", "@webpack-cli/utils", "@webpack-cli/generate-loader", "@webpack-cli/generate-plugin", "@webpack-cli/webpack-scaffold" ] } ], "node/no-unpublished-bin": "error", "node/no-unpublished-require": [ "error", { allowModules: [ "webpack", "webpack-dev-server", "@webpack-cli/generators", "@webpack-cli/init", "@webpack-cli/migrate", "@webpack-cli/utils", "@webpack-cli/generate-loader", "@webpack-cli/generate-plugin", "@webpack-cli/webpack-scaffold" ] } ], "node/no-extraneous-require": [ "error", { allowModules: [ "@webpack-cli/migrate", "@webpack-cli/generators", "@webpack-cli/utils", "@webpack-cli/generate-loader", "@webpack-cli/generate-plugin", "@webpack-cli/webpack-scaffold" ] } ], "node/process-exit-as-throw": "error" } }; package/bin/cli.js000755 0000024745 3560116604 011154 0ustar00000000 000000 #!/usr/bin/env node /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ const { NON_COMPILATION_ARGS } = require("./utils/constants"); (function() { // wrap in IIFE to be able to use return const importLocal = require("import-local"); // Prefer the local installation of webpack-cli if (importLocal(__filename)) { return; } require("v8-compile-cache"); const ErrorHelpers = require("./utils/errorHelpers"); const NON_COMPILATION_CMD = process.argv.find(arg => { if (arg === "serve") { global.process.argv = global.process.argv.filter(a => a !== "serve"); process.argv = global.process.argv; } return NON_COMPILATION_ARGS.find(a => a === arg); }); if (NON_COMPILATION_CMD) { return require("./utils/prompt-command")(NON_COMPILATION_CMD, ...process.argv); } const yargs = require("yargs").usage(`webpack-cli ${require("../package.json").version} Usage: webpack-cli [options] webpack-cli [options] --entry --output webpack-cli [options] --output webpack-cli [options] For more information, see https://webpack.js.org/api/cli/.`); require("./config/config-yargs")(yargs); // yargs will terminate the process early when the user uses help or version. // This causes large help outputs to be cut short (https://github.com/nodejs/node/wiki/API-changes-between-v0.10-and-v4#process). // To prevent this we use the yargs.parse API and exit the process normally yargs.parse(process.argv.slice(2), (err, argv, output) => { Error.stackTraceLimit = 30; // arguments validation failed if (err && output) { console.error(output); process.exitCode = 1; return; } // help or version info if (output) { console.log(output); return; } if (argv.verbose) { argv["display"] = "verbose"; } let options; try { options = require("./utils/convert-argv")(argv); } catch (err) { if (err.code === "MODULE_NOT_FOUND") { const moduleName = err.message.split("'")[1]; let instructions = ""; let errorMessage = ""; if (moduleName === "webpack") { errorMessage = `\n${moduleName} not installed`; instructions = `Install webpack to start bundling: \u001b[32m\n $ npm install --save-dev ${moduleName}\n`; if (process.env.npm_execpath !== undefined && process.env.npm_execpath.includes("yarn")) { instructions = `Install webpack to start bundling: \u001b[32m\n $ yarn add ${moduleName} --dev\n`; } Error.stackTraceLimit = 1; console.error(`${errorMessage}\n\n${instructions}`); process.exitCode = 1; return; } } if (err.name !== "ValidationError") { throw err; } const stack = ErrorHelpers.cleanUpWebpackOptions(err.stack, err.message); const message = err.message + "\n" + stack; if (argv.color) { console.error(`\u001b[1m\u001b[31m${message}\u001b[39m\u001b[22m`); } else { console.error(message); } process.exitCode = 1; return; } /** * When --silent flag is present, an object with a no-op write method is * used in place of process.stout */ const stdout = argv.silent ? { write: () => {} } : process.stdout; function ifArg(name, fn, init) { if (Array.isArray(argv[name])) { if (init) init(); argv[name].forEach(fn); } else if (typeof argv[name] !== "undefined") { if (init) init(); fn(argv[name], -1); } } function processOptions(options) { // process Promise if (typeof options.then === "function") { options.then(processOptions).catch(function(err) { console.error(err.stack || err); // eslint-disable-next-line no-process-exit process.exit(1); }); return; } const firstOptions = [].concat(options)[0]; const statsPresetToOptions = require("webpack").Stats.presetToOptions; let outputOptions = options.stats; if (typeof outputOptions === "boolean" || typeof outputOptions === "string") { outputOptions = statsPresetToOptions(outputOptions); } else if (!outputOptions) { outputOptions = {}; } ifArg("display", function(preset) { outputOptions = statsPresetToOptions(preset); }); outputOptions = Object.create(outputOptions); if (Array.isArray(options) && !outputOptions.children) { outputOptions.children = options.map(o => o.stats); } if (typeof outputOptions.context === "undefined") outputOptions.context = firstOptions.context; ifArg("env", function(value) { if (outputOptions.env) { outputOptions._env = value; } }); ifArg("json", function(bool) { if (bool) { outputOptions.json = bool; outputOptions.modules = bool; } }); if (typeof outputOptions.colors === "undefined") outputOptions.colors = require("supports-color").stdout; ifArg("sort-modules-by", function(value) { outputOptions.modulesSort = value; }); ifArg("sort-chunks-by", function(value) { outputOptions.chunksSort = value; }); ifArg("sort-assets-by", function(value) { outputOptions.assetsSort = value; }); ifArg("display-exclude", function(value) { outputOptions.exclude = value; }); if (!outputOptions.json) { if (typeof outputOptions.cached === "undefined") outputOptions.cached = false; if (typeof outputOptions.cachedAssets === "undefined") outputOptions.cachedAssets = false; ifArg("display-chunks", function(bool) { if (bool) { outputOptions.modules = false; outputOptions.chunks = true; outputOptions.chunkModules = true; } }); ifArg("display-entrypoints", function(bool) { outputOptions.entrypoints = bool; }); ifArg("display-reasons", function(bool) { if (bool) outputOptions.reasons = true; }); ifArg("display-depth", function(bool) { if (bool) outputOptions.depth = true; }); ifArg("display-used-exports", function(bool) { if (bool) outputOptions.usedExports = true; }); ifArg("display-provided-exports", function(bool) { if (bool) outputOptions.providedExports = true; }); ifArg("display-optimization-bailout", function(bool) { if (bool) outputOptions.optimizationBailout = bool; }); ifArg("display-error-details", function(bool) { if (bool) outputOptions.errorDetails = true; }); ifArg("display-origins", function(bool) { if (bool) outputOptions.chunkOrigins = true; }); ifArg("display-max-modules", function(value) { outputOptions.maxModules = +value; }); ifArg("display-cached", function(bool) { if (bool) outputOptions.cached = true; }); ifArg("display-cached-assets", function(bool) { if (bool) outputOptions.cachedAssets = true; }); if (!outputOptions.exclude) outputOptions.exclude = ["node_modules", "bower_components", "components"]; if (argv["display-modules"]) { outputOptions.maxModules = Infinity; outputOptions.exclude = undefined; outputOptions.modules = true; } } ifArg("hide-modules", function(bool) { if (bool) { outputOptions.modules = false; outputOptions.chunkModules = false; } }); ifArg("info-verbosity", function(value) { outputOptions.infoVerbosity = value; }); ifArg("build-delimiter", function(value) { outputOptions.buildDelimiter = value; }); const webpack = require("webpack"); let lastHash = null; let compiler; try { compiler = webpack(options); } catch (err) { if (err.name === "WebpackOptionsValidationError") { if (argv.color) console.error(`\u001b[1m\u001b[31m${err.message}\u001b[39m\u001b[22m`); else console.error(err.message); // eslint-disable-next-line no-process-exit process.exit(1); } throw err; } if (argv.progress) { const ProgressPlugin = require("webpack").ProgressPlugin; new ProgressPlugin({ profile: argv.profile }).apply(compiler); } if (outputOptions.infoVerbosity === "verbose") { if (argv.w) { compiler.hooks.watchRun.tap("WebpackInfo", compilation => { const compilationName = compilation.name ? compilation.name : ""; console.error("\nCompilation " + compilationName + " starting…\n"); }); } else { compiler.hooks.beforeRun.tap("WebpackInfo", compilation => { const compilationName = compilation.name ? compilation.name : ""; console.error("\nCompilation " + compilationName + " starting…\n"); }); } compiler.hooks.done.tap("WebpackInfo", compilation => { const compilationName = compilation.name ? compilation.name : ""; console.error("\nCompilation " + compilationName + " finished\n"); }); } function compilerCallback(err, stats) { if (!options.watch || err) { // Do not keep cache anymore compiler.purgeInputFileSystem(); } if (err) { lastHash = null; console.error(err.stack || err); if (err.details) console.error(err.details); process.exitCode = 1; return; } if (outputOptions.json) { stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n"); } else if (stats.hash !== lastHash) { lastHash = stats.hash; if (stats.compilation && stats.compilation.errors.length !== 0) { const errors = stats.compilation.errors; if (errors[0].name === "EntryModuleNotFoundError") { console.error("\n\u001b[1m\u001b[31mInsufficient number of arguments or no entry found."); console.error( "\u001b[1m\u001b[31mAlternatively, run 'webpack(-cli) --help' for usage info.\u001b[39m\u001b[22m\n" ); } } const statsString = stats.toString(outputOptions); const delimiter = outputOptions.buildDelimiter ? `${outputOptions.buildDelimiter}\n` : ""; if (statsString) stdout.write(`${statsString}\n${delimiter}`); } if (!options.watch && stats.hasErrors()) { process.exitCode = 2; } } if (firstOptions.watch || options.watch) { const watchOptions = firstOptions.watchOptions || options.watchOptions || firstOptions.watch || options.watch || {}; if (watchOptions.stdin) { process.stdin.on("end", function(_) { process.exit(); // eslint-disable-line }); process.stdin.resume(); } compiler.watch(watchOptions, compilerCallback); if (outputOptions.infoVerbosity !== "none") console.error("\nwebpack is watching the files…\n"); } else { compiler.run((err, stats) => { if (compiler.close) { compiler.close(err2 => { compilerCallback(err || err2, stats); }); } else { compilerCallback(err, stats); } }); } } processOptions(options); }); })(); package/bin/config/config-yargs.js000644 0000032306 3560116604 014227 0ustar00000000 000000 const optionsSchema = require("../config/optionsSchema.json"); const { GROUPS } = require("../utils/constants"); const { CONFIG_GROUP, BASIC_GROUP, MODULE_GROUP, OUTPUT_GROUP, ADVANCED_GROUP, RESOLVE_GROUP, OPTIMIZE_GROUP, DISPLAY_GROUP } = GROUPS; const nestedProperties = ["anyOf", "oneOf", "allOf"]; const resolveSchema = schema => { let current = schema; if (schema && typeof schema === "object" && "$ref" in schema) { const path = schema.$ref.split("/"); for (const element of path) { if (element === "#") { current = optionsSchema; } else { current = current[element]; } } } return current; }; const findPropertyInSchema = (schema, property, subProperty) => { if (!schema) return null; if (subProperty) { if (schema[property] && typeof schema[property] === "object" && subProperty in schema[property]) { return resolveSchema(schema[property][subProperty]); } } else { if (property in schema) return resolveSchema(schema[property]); } for (const name of nestedProperties) { if (schema[name]) { for (const item of schema[name]) { const resolvedItem = resolveSchema(item); const result = findPropertyInSchema(resolvedItem, property, subProperty); if (result) return result; } } } return undefined; }; const getSchemaInfo = (path, property, subProperty) => { const pathSegments = path.split("."); let current = optionsSchema; for (const segment of pathSegments) { if (segment === "*") { current = findPropertyInSchema(current, "additionalProperties") || findPropertyInSchema(current, "items"); } else { current = findPropertyInSchema(current, "properties", segment); } if (!current) return undefined; } return findPropertyInSchema(current, property, subProperty); }; module.exports = function(yargs) { yargs .help("help") .alias("help", "h") .version() .alias("version", "v") .options({ config: { type: "string", describe: "Path to the config file", group: CONFIG_GROUP, defaultDescription: "webpack.config.js or webpackfile.js", requiresArg: true }, "config-register": { type: "array", alias: "r", describe: "Preload one or more modules before loading the webpack configuration", group: CONFIG_GROUP, defaultDescription: "module id or path", requiresArg: true }, "config-name": { type: "string", describe: "Name of the config to use", group: CONFIG_GROUP, requiresArg: true }, env: { describe: "Environment passed to the config, when it is a function", group: CONFIG_GROUP }, mode: { type: getSchemaInfo("mode", "type"), choices: getSchemaInfo("mode", "enum"), describe: getSchemaInfo("mode", "description"), group: CONFIG_GROUP, requiresArg: true }, context: { type: getSchemaInfo("context", "type"), describe: getSchemaInfo("context", "description"), group: BASIC_GROUP, defaultDescription: "The current directory", requiresArg: true }, entry: { type: "string", describe: getSchemaInfo("entry", "description"), group: BASIC_GROUP, requiresArg: true }, "no-cache": { type: "boolean", describe: "Disables cached builds", group: BASIC_GROUP }, "module-bind": { type: "string", describe: "Bind an extension to a loader", group: MODULE_GROUP, requiresArg: true }, "module-bind-post": { type: "string", describe: "Bind an extension to a post loader", group: MODULE_GROUP, requiresArg: true }, "module-bind-pre": { type: "string", describe: "Bind an extension to a pre loader", group: MODULE_GROUP, requiresArg: true }, output: { alias: "o", describe: "The output path and file for compilation assets", group: OUTPUT_GROUP, requiresArg: true }, "output-path": { type: "string", describe: getSchemaInfo("output.path", "description"), group: OUTPUT_GROUP, defaultDescription: "The current directory", requiresArg: true }, "output-filename": { type: "string", describe: getSchemaInfo("output.filename", "description"), group: OUTPUT_GROUP, defaultDescription: "[name].js", requiresArg: true }, "output-chunk-filename": { type: "string", describe: getSchemaInfo("output.chunkFilename", "description"), group: OUTPUT_GROUP, defaultDescription: "filename with [id] instead of [name] or [id] prefixed", requiresArg: true }, "output-source-map-filename": { type: "string", describe: getSchemaInfo("output.sourceMapFilename", "description"), group: OUTPUT_GROUP, requiresArg: true }, "output-public-path": { type: "string", describe: getSchemaInfo("output.publicPath", "description"), group: OUTPUT_GROUP, requiresArg: true }, "output-jsonp-function": { type: "string", describe: getSchemaInfo("output.jsonpFunction", "description"), group: OUTPUT_GROUP, requiresArg: true }, "output-pathinfo": { type: "boolean", describe: getSchemaInfo("output.pathinfo", "description"), group: OUTPUT_GROUP }, "output-library": { type: "array", describe: "Expose the exports of the entry point as library", group: OUTPUT_GROUP, requiresArg: true }, "output-library-target": { type: "string", describe: getSchemaInfo("output.libraryTarget", "description"), choices: getSchemaInfo("output.libraryTarget", "enum"), group: OUTPUT_GROUP, requiresArg: true }, "records-input-path": { type: "string", describe: getSchemaInfo("recordsInputPath", "description"), group: ADVANCED_GROUP, requiresArg: true }, "records-output-path": { type: "string", describe: getSchemaInfo("recordsOutputPath", "description"), group: ADVANCED_GROUP, requiresArg: true }, "records-path": { type: "string", describe: getSchemaInfo("recordsPath", "description"), group: ADVANCED_GROUP, requiresArg: true }, define: { type: "string", describe: "Define any free var in the bundle", group: ADVANCED_GROUP, requiresArg: true }, target: { type: "string", describe: getSchemaInfo("target", "description"), group: ADVANCED_GROUP, requiresArg: true }, cache: { type: "boolean", describe: getSchemaInfo("cache", "description"), default: null, group: ADVANCED_GROUP, defaultDescription: "It's enabled by default when watching" }, watch: { type: "boolean", alias: "w", describe: getSchemaInfo("watch", "description"), group: BASIC_GROUP }, "watch-stdin": { type: "boolean", alias: "stdin", describe: getSchemaInfo("watchOptions.stdin", "description"), group: ADVANCED_GROUP }, "watch-aggregate-timeout": { describe: getSchemaInfo("watchOptions.aggregateTimeout", "description"), type: getSchemaInfo("watchOptions.aggregateTimeout", "type"), group: ADVANCED_GROUP, requiresArg: true }, "watch-poll": { type: "string", describe: getSchemaInfo("watchOptions.poll", "description"), group: ADVANCED_GROUP }, hot: { type: "boolean", describe: "Enables Hot Module Replacement", group: ADVANCED_GROUP }, debug: { type: "boolean", describe: "Switch loaders to debug mode", group: BASIC_GROUP }, devtool: { type: "string", describe: getSchemaInfo("devtool", "description"), group: BASIC_GROUP, requiresArg: true }, "resolve-alias": { type: "string", describe: getSchemaInfo("resolve.alias", "description"), group: RESOLVE_GROUP, requiresArg: true }, "resolve-extensions": { type: "array", describe: getSchemaInfo("resolve.alias", "description"), group: RESOLVE_GROUP, requiresArg: true }, "resolve-loader-alias": { type: "string", describe: "Setup a loader alias for resolving", group: RESOLVE_GROUP, requiresArg: true }, "optimize-max-chunks": { describe: "Try to keep the chunk count below a limit", group: OPTIMIZE_GROUP, requiresArg: true }, "optimize-min-chunk-size": { describe: getSchemaInfo("optimization.splitChunks.minSize", "description"), group: OPTIMIZE_GROUP, requiresArg: true }, "optimize-minimize": { type: "boolean", describe: getSchemaInfo("optimization.minimize", "description"), group: OPTIMIZE_GROUP }, prefetch: { type: "string", describe: "Prefetch this request (Example: --prefetch ./file.js)", group: ADVANCED_GROUP, requiresArg: true }, provide: { type: "string", describe: "Provide these modules as free vars in all modules (Example: --provide jQuery=jquery)", group: ADVANCED_GROUP, requiresArg: true }, "labeled-modules": { type: "boolean", describe: "Enables labeled modules", group: ADVANCED_GROUP }, plugin: { type: "string", describe: "Load this plugin", group: ADVANCED_GROUP, requiresArg: true }, bail: { type: getSchemaInfo("bail", "type"), describe: getSchemaInfo("bail", "description"), group: ADVANCED_GROUP, default: null }, profile: { type: "boolean", describe: getSchemaInfo("profile", "description"), group: ADVANCED_GROUP, default: null }, d: { type: "boolean", describe: "shortcut for --debug --devtool eval-cheap-module-source-map --output-pathinfo", group: BASIC_GROUP }, p: { type: "boolean", // eslint-disable-next-line quotes describe: 'shortcut for --optimize-minimize --define process.env.NODE_ENV="production"', group: BASIC_GROUP }, silent: { type: "boolean", describe: "Prevent output from being displayed in stdout" }, json: { type: "boolean", alias: "j", describe: "Prints the result as JSON." }, progress: { type: "boolean", describe: "Print compilation progress in percentage", group: BASIC_GROUP }, color: { type: "boolean", alias: "colors", default: function supportsColor() { return require("supports-color").stdout; }, group: DISPLAY_GROUP, describe: "Force colors on the console" }, "no-color": { type: "boolean", alias: "no-colors", group: DISPLAY_GROUP, describe: "Force no colors on the console" }, "sort-modules-by": { type: "string", group: DISPLAY_GROUP, describe: "Sorts the modules list by property in module" }, "sort-chunks-by": { type: "string", group: DISPLAY_GROUP, describe: "Sorts the chunks list by property in chunk" }, "sort-assets-by": { type: "string", group: DISPLAY_GROUP, describe: "Sorts the assets list by property in asset" }, "hide-modules": { type: "boolean", group: DISPLAY_GROUP, describe: "Hides info about modules" }, "display-exclude": { type: "string", group: DISPLAY_GROUP, describe: "Exclude modules in the output" }, "display-modules": { type: "boolean", group: DISPLAY_GROUP, describe: "Display even excluded modules in the output" }, "display-max-modules": { type: "number", group: DISPLAY_GROUP, describe: "Sets the maximum number of visible modules in output" }, "display-chunks": { type: "boolean", group: DISPLAY_GROUP, describe: "Display chunks in the output" }, "display-entrypoints": { type: "boolean", group: DISPLAY_GROUP, describe: "Display entry points in the output" }, "display-origins": { type: "boolean", group: DISPLAY_GROUP, describe: "Display origins of chunks in the output" }, "display-cached": { type: "boolean", group: DISPLAY_GROUP, describe: "Display also cached modules in the output" }, "display-cached-assets": { type: "boolean", group: DISPLAY_GROUP, describe: "Display also cached assets in the output" }, "display-reasons": { type: "boolean", group: DISPLAY_GROUP, describe: "Display reasons about module inclusion in the output" }, "display-depth": { type: "boolean", group: DISPLAY_GROUP, describe: "Display distance from entry point for each module" }, "display-used-exports": { type: "boolean", group: DISPLAY_GROUP, describe: "Display information about used exports in modules (Tree Shaking)" }, "display-provided-exports": { type: "boolean", group: DISPLAY_GROUP, describe: "Display information about exports provided from modules" }, "display-optimization-bailout": { type: "boolean", group: DISPLAY_GROUP, describe: "Display information about why optimization bailed out for modules" }, "display-error-details": { type: "boolean", group: DISPLAY_GROUP, describe: "Display details about errors" }, display: { type: "string", choices: ["", "verbose", "detailed", "normal", "minimal", "errors-only", "none"], group: DISPLAY_GROUP, describe: "Select display preset" }, verbose: { type: "boolean", group: DISPLAY_GROUP, describe: "Show more details" }, "info-verbosity": { type: "string", default: "info", choices: ["none", "info", "verbose"], group: DISPLAY_GROUP, describe: "Controls the output of lifecycle messaging e.g. Started watching files..." }, "build-delimiter": { type: "string", group: DISPLAY_GROUP, describe: "Display custom text after build output" } }); }; package/bin/config/optionsSchema.json000644 0000202331 3560116604 015005 0ustar00000000 000000 { "additionalProperties": false, "definitions": { "common.pluginFunction": { "description": "Function acting as plugin", "instanceof": "Function", "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "additionalProperties": true, "required": [ "apply" ] }, "common.pluginObject": { "description": "Plugin instance", "type": "object", "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "additionalProperties": true, "required": [ "apply" ] }, "common.arrayOfStringOrStringArrayValues": { "items": { "description": "string or array of strings", "anyOf": [ { "minLength": 1, "type": "string" }, { "items": { "description": "A non-empty string", "minLength": 1, "type": "string" }, "type": "array" } ] }, "type": "array" }, "common.arrayOfStringValues": { "items": { "description": "A non-empty string", "minLength": 1, "type": "string" }, "type": "array" }, "common.nonEmptyArrayOfUniqueStringValues": { "items": { "description": "A non-empty string", "minLength": 1, "type": "string" }, "minItems": 1, "type": "array", "uniqueItems": true }, "entry": { "oneOf": [ { "minProperties": 1, "additionalProperties": { "description": "An entry point with name", "oneOf": [ { "description": "The string is resolved to a module which is loaded upon startup.", "minLength": 1, "type": "string" }, { "description": "All modules are loaded upon startup. The last one is exported.", "anyOf": [ { "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues" } ] } ] }, "description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.", "type": "object" }, { "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.", "minLength": 1, "type": "string" }, { "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.", "anyOf": [ { "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues" } ] }, { "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.", "instanceof": "Function" } ] }, "externals": { "anyOf": [ { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "additionalProperties": { "description": "The dependency used for the external", "anyOf": [ { "type": "string" }, { "type": "object" }, { "type": "boolean" } ] }, "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object" }, { "description": "`function(context, request, callback(err, result))` The function is called on each dependency.", "instanceof": "Function" }, { "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "items": { "description": "External configuration", "anyOf": [ { "$ref": "#/definitions/externals" } ] }, "type": "array" } ] }, "module": { "additionalProperties": false, "properties": { "exprContextCritical": { "description": "Enable warnings for full dynamic dependencies", "type": "boolean" }, "exprContextRecursive": { "description": "Enable recursive directory lookup for full dynamic dependencies", "type": "boolean" }, "exprContextRegExp": { "description": "Sets the default regular expression for full dynamic dependencies", "anyOf": [ { "type": "boolean" }, { "instanceof": "RegExp" } ] }, "exprContextRequest": { "description": "Set the default request for full dynamic dependencies", "type": "string" }, "noParse": { "description": "Don't parse files matching. It's matched against the full resolved request.", "anyOf": [ { "items": { "description": "A regular expression, when matched the module is not parsed", "instanceof": "RegExp" }, "minItems": 1, "type": "array" }, { "instanceof": "RegExp" }, { "instanceof": "Function" }, { "items": { "description": "An absolute path, when the module starts with this path it is not parsed", "type": "string", "absolutePath": true }, "minItems": 1, "type": "array" }, { "type": "string", "absolutePath": true } ] }, "rules": { "allOf": [ { "$ref": "#/definitions/ruleSet-rules" } ], "description": "An array of rules applied for modules." }, "defaultRules": { "description": "An array of rules applied by default for modules.", "anyOf": [ { "$ref": "#/definitions/ruleSet-rules" } ] }, "unknownContextCritical": { "description": "Enable warnings when using the require function in a not statically analyse-able way", "type": "boolean" }, "unknownContextRecursive": { "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way", "type": "boolean" }, "unknownContextRegExp": { "description": "Sets the regular expression when using the require function in a not statically analyse-able way", "anyOf": [ { "type": "boolean" }, { "instanceof": "RegExp" } ] }, "unknownContextRequest": { "description": "Sets the request when using the require function in a not statically analyse-able way", "type": "string" }, "unsafeCache": { "description": "Cache the resolving of module requests", "anyOf": [ { "type": "boolean" }, { "instanceof": "Function" } ] }, "wrappedContextCritical": { "description": "Enable warnings for partial dynamic dependencies", "type": "boolean" }, "wrappedContextRecursive": { "description": "Enable recursive directory lookup for partial dynamic dependencies", "type": "boolean" }, "wrappedContextRegExp": { "description": "Set the inner regular expression for partial dynamic dependencies", "instanceof": "RegExp" }, "strictExportPresence": { "description": "Emit errors instead of warnings when imported names don't exist in imported module", "type": "boolean" }, "strictThisContextOnImports": { "description": "Handle the this context correctly according to the spec for namespace objects", "type": "boolean" } }, "type": "object" }, "output": { "additionalProperties": false, "properties": { "auxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [ { "description": "Append the same comment above each import style.", "type": "string" }, { "additionalProperties": false, "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "properties": { "amd": { "description": "Set comment for `amd` section in UMD", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD", "type": "string" } }, "type": "object" } ] }, "chunkFilename": { "description": "The filename of non-entry chunks as relative path inside the `output.path` directory.", "type": "string", "absolutePath": false }, "webassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the `output.path` directory.", "type": "string", "absolutePath": false }, "globalObject": { "description": "An expression which is used to address the global object/scope in runtime code", "type": "string", "minLength": 1 }, "crossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [ false, "anonymous", "use-credentials" ] }, "jsonpScriptType": { "description": "This option enables loading async chunks via a custom script type, such as script type=\"module\"", "enum": [ false, "text/javascript", "module" ] }, "chunkLoadTimeout": { "description": "Number of milliseconds before chunk request expires", "type": "number" }, "devtoolFallbackModuleFilenameTemplate": { "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ] }, "devtoolLineToLine": { "description": "Enable line to line mapped mode for all/specified modules. Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It’s a performance optimization. Only use it if your performance need to be better and you are sure that input lines match which generated lines.", "anyOf": [ { "description": "`true` enables it for all modules (not recommended)", "type": "boolean" }, { "description": "An object similar to `module.loaders` enables it for specific files.", "type": "object" } ] }, "devtoolModuleFilenameTemplate": { "description": "Filename template string of function for the sources array in a generated SourceMap.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ] }, "devtoolNamespace": { "description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.", "type": "string" }, "filename": { "description": "Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ], "absolutePath": false }, "hashDigest": { "description": "Digest type used for the hash", "enum": [ "latin1", "hex", "base64" ] }, "hashDigestLength": { "description": "Number of chars which are used for the hash", "minimum": 1, "type": "number" }, "hashFunction": { "description": "Algorithm used for generation the hash (see node.js crypto package)", "anyOf": [ { "type": "string", "minLength": 1 }, { "instanceof": "Function" } ] }, "hashSalt": { "description": "Any string which is added to the hash to salt it", "minLength": 1, "type": "string" }, "hotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ], "absolutePath": false }, "hotUpdateFunction": { "description": "The JSONP function used by webpack for async loading of hot update chunks.", "type": "string" }, "hotUpdateMainFilename": { "description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ], "absolutePath": false }, "jsonpFunction": { "description": "The JSONP function used by webpack for async loading of chunks.", "type": "string" }, "chunkCallbackName": { "description": "The callback function name used by webpack for loading of chunks in WebWorkers.", "type": "string" }, "library": { "anyOf": [ { "type": "string" }, { "items": { "description": "A part of the library name", "type": "string" }, "type": "array" }, { "type": "object", "additionalProperties": false, "properties": { "root": { "description": "Name of the property exposed globally by a UMD library", "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "amd": { "description": "Name of the exposed AMD library in the UMD", "type": "string" }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD", "type": "string" } } } ], "description": "If set, export the bundle as library. `output.library` is the name." }, "libraryTarget": { "description": "Type of library", "enum": [ "var", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "amd", "umd", "umd2", "jsonp" ] }, "libraryExport": { "description": "Specify which export should be exposed as library", "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "path": { "description": "The output directory as **absolute path** (required).", "type": "string", "absolutePath": true }, "pathinfo": { "description": "Include comments with information about the modules.", "type": "boolean" }, "publicPath": { "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.", "anyOf": [ { "type": "string" }, { "instanceof": "Function" } ] }, "sourceMapFilename": { "description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.", "type": "string", "absolutePath": false }, "sourcePrefix": { "description": "Prefixes every line of the source in the bundle with this string.", "type": "string" }, "strictModuleExceptionHandling": { "description": "Handles exceptions in module loading correctly at a performance cost.", "type": "boolean" }, "umdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" } }, "type": "object" }, "resolve": { "additionalProperties": false, "properties": { "alias": { "description": "Redirect module requests", "anyOf": [ { "additionalProperties": { "description": "New request", "type": "string" }, "type": "object" }, { "items": { "description": "Alias configuration", "additionalProperties": false, "properties": { "alias": { "description": "New request", "type": "string" }, "name": { "description": "Request to be redirected", "type": "string" }, "onlyModule": { "description": "Redirect only exact matching request", "type": "boolean" } }, "type": "object" }, "type": "array" } ] }, "aliasFields": { "description": "Fields in the description file (package.json) which are used to redirect requests inside the module", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" } ] }, "cachePredicate": { "description": "Predicate function to decide which requests should be cached", "instanceof": "Function" }, "cacheWithContext": { "description": "Include the context information in the cache identifier when caching", "type": "boolean" }, "descriptionFiles": { "description": "Filenames used to find a description file", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "enforceExtension": { "description": "Enforce using one of the extensions from the extensions option", "type": "boolean" }, "enforceModuleExtension": { "description": "Enforce using one of the module extensions from the moduleExtensions option", "type": "boolean" }, "extensions": { "description": "Extensions added to the request when trying to find the file", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "fileSystem": { "description": "Filesystem for the resolver" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues" } ] }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "moduleExtensions": { "description": "Extensions added to the module request when trying to find the module", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "modules": { "description": "Folder names or directory paths where to find modules", "anyOf": [ { "$ref": "#/definitions/common.arrayOfStringValues" } ] }, "plugins": { "description": "Plugins for the resolver", "type": "array", "items": { "description": "Plugin of type object or instanceof Function", "anyOf": [ { "$ref": "#/definitions/common.pluginObject" }, { "$ref": "#/definitions/common.pluginFunction" } ] } }, "resolver": { "description": "Custom resolver" }, "symlinks": { "description": "Enable resolving symlinks to the original location", "type": "boolean" }, "concord": { "description": "Enable concord resolving extras", "type": "boolean" }, "unsafeCache": { "description": "Enable caching of successfully resolved requests", "anyOf": [ { "type": "boolean" }, { "additionalProperties": true, "type": "object" } ] }, "useSyncFileSystemCalls": { "description": "Use synchronous filesystem calls for the resolver", "type": "boolean" } }, "type": "object" }, "ruleSet-condition": { "anyOf": [ { "instanceof": "RegExp" }, { "minLength": 1, "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/ruleSet-conditions" }, { "additionalProperties": false, "properties": { "and": { "description": "Logical AND", "anyOf": [ { "$ref": "#/definitions/ruleSet-conditions" } ] }, "exclude": { "description": "Exclude all modules matching any of these conditions", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] }, "include": { "description": "Exclude all modules matching not any of these conditions", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] }, "not": { "description": "Logical NOT", "anyOf": [ { "$ref": "#/definitions/ruleSet-conditions" } ] }, "or": { "description": "Logical OR", "anyOf": [ { "$ref": "#/definitions/ruleSet-conditions" } ] }, "test": { "description": "Exclude all modules matching any of these conditions", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] } }, "type": "object" } ] }, "ruleSet-conditions": { "items": { "description": "A rule condition", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] }, "type": "array" }, "ruleSet-loader": { "minLength": 1, "type": "string" }, "ruleSet-query": { "anyOf": [ { "type": "object" }, { "type": "string" } ] }, "ruleSet-rule": { "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step", "enum": [ "pre", "post" ] }, "exclude": { "description": "Shortcut for resource.exclude", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" }, { "absolutePath": true } ] }, "include": { "description": "Shortcut for resource.include", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" }, { "absolutePath": true } ] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module)", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" }, { "absolutePath": true } ] }, "loader": { "description": "Shortcut for use.loader", "anyOf": [ { "$ref": "#/definitions/ruleSet-loader" }, { "$ref": "#/definitions/ruleSet-use" } ] }, "loaders": { "description": "Shortcut for use.loader", "anyOf": [ { "$ref": "#/definitions/ruleSet-use" } ] }, "oneOf": { "description": "Only execute the first matching rule in this array", "anyOf": [ { "$ref": "#/definitions/ruleSet-rules" } ] }, "options": { "description": "Shortcut for use.options", "anyOf": [ { "$ref": "#/definitions/ruleSet-query" } ] }, "parser": { "description": "Options for parsing", "additionalProperties": true, "type": "object" }, "resolve": { "description": "Options for the resolver", "type": "object", "anyOf": [ { "$ref": "#/definitions/resolve" } ] }, "sideEffects": { "description": "Flags a module as with or without side effects", "type": "boolean" }, "query": { "description": "Shortcut for use.query", "anyOf": [ { "$ref": "#/definitions/ruleSet-query" } ] }, "type": { "description": "Module type to use for the module", "enum": [ "javascript/auto", "javascript/dynamic", "javascript/esm", "json", "webassembly/experimental" ] }, "resource": { "description": "Match the resource path of the module", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" }, { "absolutePath": true } ] }, "resourceQuery": { "description": "Match the resource query of the module", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] }, "compiler": { "description": "Match the child compiler name", "anyOf": [ { "$ref": "#/definitions/ruleSet-condition" } ] }, "rules": { "description": "Match and execute these rules when this rule is matched", "anyOf": [ { "$ref": "#/definitions/ruleSet-rules" } ] }, "test": { "description": "Shortcut for resource.test", "allOf": [ { "$ref": "#/definitions/ruleSet-condition" }, { "absolutePath": true } ] }, "use": { "description": "Modifiers applied to the module when rule is matched", "anyOf": [ { "$ref": "#/definitions/ruleSet-use" } ] } }, "type": "object" }, "ruleSet-rules": { "items": { "description": "A rule", "anyOf": [ { "$ref": "#/definitions/ruleSet-rule" } ] }, "type": "array" }, "ruleSet-use": { "anyOf": [ { "$ref": "#/definitions/ruleSet-use-item" }, { "instanceof": "Function" }, { "items": { "description": "An use item", "anyOf": [ { "$ref": "#/definitions/ruleSet-use-item" } ] }, "type": "array" } ] }, "ruleSet-use-item": { "anyOf": [ { "$ref": "#/definitions/ruleSet-loader" }, { "instanceof": "Function" }, { "additionalProperties": false, "properties": { "loader": { "description": "Loader name", "anyOf": [ { "$ref": "#/definitions/ruleSet-loader" } ] }, "options": { "description": "Loader options", "anyOf": [ { "$ref": "#/definitions/ruleSet-query" } ] }, "ident": { "description": "Unique loader identifier", "type": "string" }, "query": { "description": "Loader query", "anyOf": [ { "$ref": "#/definitions/ruleSet-query" } ] } }, "type": "object" } ] }, "filter-item-types": { "anyOf": [ { "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" } ] }, "filter-types": { "anyOf": [ { "$ref": "#/definitions/filter-item-types" }, { "type": "array", "items": { "description": "Rule to filter", "anyOf": [ { "$ref": "#/definitions/filter-item-types" } ] } } ] } }, "properties": { "mode": { "description": "Enable production optimizations or development hints.", "enum": [ "development", "production", "none" ] }, "amd": { "description": "Set the value of `require.amd` and `define.amd`." }, "bail": { "description": "Report the first error as a hard error instead of tolerating it.", "type": "boolean" }, "cache": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "anyOf": [ { "description": "You can pass `false` to disable it.", "type": "boolean" }, { "description": "You can pass an object to enable it and let webpack use the passed object as cache. This way you can share the cache object between multiple compiler calls.", "type": "object" } ] }, "context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string", "absolutePath": true }, "dependencies": { "description": "References to other configurations to depend on.", "items": { "description": "References to another configuration to depend on.", "type": "string" }, "type": "array" }, "devServer": { "description": "Options for the webpack-dev-server", "type": "object" }, "devtool": { "description": "A developer tool to enhance debugging.", "anyOf": [ { "type": "string" }, { "enum": [ false ] } ] }, "entry": { "description": "The entry point(s) of the compilation.", "anyOf": [ { "$ref": "#/definitions/entry" } ] }, "externals": { "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [ { "$ref": "#/definitions/externals" } ] }, "loader": { "description": "Custom values available in the loader context.", "type": "object" }, "module": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "anyOf": [ { "$ref": "#/definitions/module" } ] }, "name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [ { "enum": [ false ] }, { "additionalProperties": { "description": "Include a polyfill for the node.js module", "enum": [ false, true, "mock", "empty" ] }, "properties": { "Buffer": { "description": "Include a polyfill for the 'Buffer' variable", "enum": [ false, true, "mock" ] }, "__dirname": { "description": "Include a polyfill for the '__dirname' variable", "enum": [ false, true, "mock" ] }, "__filename": { "description": "Include a polyfill for the '__filename' variable", "enum": [ false, true, "mock" ] }, "console": { "description": "Include a polyfill for the 'console' variable", "enum": [ false, true, "mock" ] }, "global": { "description": "Include a polyfill for the 'global' variable", "type": "boolean" }, "process": { "description": "Include a polyfill for the 'process' variable", "enum": [ false, true, "mock" ] } }, "type": "object" } ] }, "output": { "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.", "anyOf": [ { "$ref": "#/definitions/output" } ] }, "optimization": { "description": "Enables/Disables integrated optimizations", "type": "object", "additionalProperties": false, "properties": { "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty", "type": "boolean" }, "mergeDuplicateChunks": { "description": "Merge chunks which contain the same modules", "type": "boolean" }, "flagIncludedChunks": { "description": "Also flag chunks as loaded which contain a subset of the modules", "type": "boolean" }, "occurrenceOrder": { "description": "Figure out a order of modules which results in the smallest initial bundle", "type": "boolean" }, "sideEffects": { "description": "Skip over modules which are flagged to contain no side effects when exports are not used", "type": "boolean" }, "providedExports": { "description": "Figure out which exports are provided by modules to generate more efficient code", "type": "boolean" }, "usedExports": { "description": "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code", "type": "boolean" }, "concatenateModules": { "description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer", "type": "boolean" }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group", "oneOf": [ { "enum": [ false ] }, { "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)", "oneOf": [ { "enum": [ "initial", "async", "all" ] }, { "instanceof": "Function" } ] }, "minSize": { "description": "Minimal size for the created chunk", "type": "number", "minimum": 0 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting", "type": "number", "minimum": 1 }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks created a name (chunks with equal name are merged)", "oneOf": [ { "type": "boolean" }, { "instanceof": "Function" }, { "type": "string" } ] }, "filename": { "description": "Sets the template for the filename for created chunks (Only works for initial chunks)", "type": "string", "minLength": 1 }, "automaticNameDelimiter": { "description": "Sets the name delimiter for created chunks", "type": "string", "minLength": 1 }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)", "type": "object", "additionalProperties": { "description": "Configuration for a cache group", "anyOf": [ { "enum": [ false ] }, { "instanceof": "Function" }, { "type": "string" }, { "instanceof": "RegExp" }, { "type": "object", "additionalProperties": false, "properties": { "test": { "description": "Assign modules to a cache group", "oneOf": [ { "instanceof": "Function" }, { "type": "string" }, { "instanceof": "RegExp" } ] }, "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)", "oneOf": [ { "enum": [ "initial", "async", "all" ] }, { "instanceof": "Function" } ] }, "enforce": { "description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group", "type": "boolean" }, "priority": { "description": "Priority of this cache group", "type": "number" }, "minSize": { "description": "Minimal size for the created chunk", "type": "number", "minimum": 0 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting", "type": "number", "minimum": 1 }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point", "type": "number", "minimum": 1 }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules", "type": "boolean" }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged)", "oneOf": [ { "type": "boolean" }, { "instanceof": "Function" }, { "type": "string" } ] }, "filename": { "description": "Sets the template for the filename for created chunks (Only works for initial chunks)", "type": "string", "minLength": 1 } } } ] } } } } ] }, "runtimeChunk": { "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps", "oneOf": [ { "type": "boolean" }, { "enum": [ "single", "multiple" ] }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks", "oneOf": [ { "type": "string" }, { "instanceof": "Function" } ] } } } ] }, "noEmitOnErrors": { "description": "Avoid emitting assets when errors occur", "type": "boolean" }, "namedModules": { "description": "Use readable module identifiers for better debugging", "type": "boolean" }, "namedChunks": { "description": "Use readable chunk identifiers for better debugging", "type": "boolean" }, "portableRecords": { "description": "Generate records with relative paths to be able to move the context folder", "type": "boolean" }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output", "type": "array", "items": { "description": "Plugin of type object or instanceof Function", "anyOf": [ { "$ref": "#/definitions/common.pluginObject" }, { "$ref": "#/definitions/common.pluginFunction" } ] } }, "nodeEnv": { "description": "Set process.env.NODE_ENV to a specific value", "anyOf": [ { "enum": [ false ] }, { "type": "string" } ] } } }, "parallelism": { "description": "The number of parallel processed modules in the compilation.", "minimum": 1, "type": "number" }, "performance": { "description": "Configuration for web performance recommendations.", "anyOf": [ { "enum": [ false ] }, { "additionalProperties": false, "properties": { "assetFilter": { "description": "Filter function to select assets that are checked", "instanceof": "Function" }, "hints": { "description": "Sets the format of the hints: warnings, errors or nothing at all", "enum": [ false, "warning", "error" ] }, "maxEntrypointSize": { "description": "Total size of an entry point (in bytes)", "type": "number" }, "maxAssetSize": { "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints", "type": "number" } }, "type": "object" } ] }, "plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function", "anyOf": [ { "$ref": "#/definitions/common.pluginObject" }, { "$ref": "#/definitions/common.pluginFunction" } ] } }, "profile": { "description": "Capture timing information for each module.", "type": "boolean" }, "recordsInputPath": { "description": "Store compiler state to a json file.", "type": "string", "absolutePath": true }, "recordsOutputPath": { "description": "Load compiler state from a json file.", "type": "string", "absolutePath": true }, "recordsPath": { "description": "Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.", "type": "string", "absolutePath": true }, "resolve": { "description": "Options for the resolver", "anyOf": [ { "$ref": "#/definitions/resolve" } ] }, "resolveLoader": { "description": "Options for the resolver when resolving loaders", "anyOf": [ { "$ref": "#/definitions/resolve" } ] }, "serve": { "description": "Options for webpack-dev-server", "type": "object" }, "stats": { "description": "Used by the webpack CLI program to pass stats options.", "anyOf": [ { "type": "object", "additionalProperties": false, "properties": { "all": { "type": "boolean", "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)" }, "context": { "type": "string", "description": "context directory for request shortening", "absolutePath": true }, "hash": { "type": "boolean", "description": "add the hash of the compilation" }, "version": { "type": "boolean", "description": "add webpack version information" }, "timings": { "type": "boolean", "description": "add timing information" }, "builtAt": { "type": "boolean", "description": "add built at time information" }, "performance": { "type": "boolean", "description": "add performance hint flags" }, "depth": { "type": "boolean", "description": "add module depth in module graph" }, "assets": { "type": "boolean", "description": "add assets information" }, "env": { "type": "boolean", "description": "add --env information" }, "colors": { "description": "Enables/Disables colorful output", "oneOf": [ { "type": "boolean", "description": "`webpack --colors` equivalent" }, { "type": "object", "additionalProperties": false, "properties": { "bold": { "description": "Custom color for bold text", "type": "string" }, "red": { "description": "Custom color for red text", "type": "string" }, "green": { "description": "Custom color for green text", "type": "string" }, "cyan": { "description": "Custom color for cyan text", "type": "string" }, "magenta": { "description": "Custom color for magenta text", "type": "string" }, "yellow": { "description": "Custom color for yellow text", "type": "string" } } } ] }, "maxModules": { "type": "number", "description": "Set the maximum number of modules to be shown" }, "chunks": { "type": "boolean", "description": "add chunk information" }, "chunkModules": { "type": "boolean", "description": "add built modules information to chunk information" }, "modules": { "type": "boolean", "description": "add built modules information" }, "nestedModules": { "type": "boolean", "description": "add information about modules nested in other modules (like with module concatenation)" }, "moduleAssets": { "type": "boolean", "description": "add information about assets inside modules" }, "children": { "type": "boolean", "description": "add children information" }, "cached": { "type": "boolean", "description": "add also information about cached (not built) modules" }, "cachedAssets": { "type": "boolean", "description": "Show cached assets (setting this to `false` only shows emitted files)" }, "reasons": { "type": "boolean", "description": "add information about the reasons why modules are included" }, "source": { "type": "boolean", "description": "add the source code of modules" }, "warnings": { "type": "boolean", "description": "add warnings" }, "errors": { "type": "boolean", "description": "add errors" }, "warningsFilter": { "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions", "anyOf": [ { "$ref": "#/definitions/filter-types" } ] }, "excludeAssets": { "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions", "anyOf": [ { "$ref": "#/definitions/filter-types" } ] }, "excludeModules": { "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions", "anyOf": [ { "$ref": "#/definitions/filter-types" }, { "type": "boolean" } ] }, "exclude": { "description": "Please use excludeModules instead.", "anyOf": [ { "$ref": "#/definitions/filter-types" }, { "type": "boolean" } ] }, "entrypoints": { "type": "boolean", "description": "Display the entry points with the corresponding bundles" }, "chunkGroups": { "type": "boolean", "description": "Display all chunk groups with the corresponding bundles" }, "errorDetails": { "type": "boolean", "description": "add details to errors (like resolving log)" }, "chunkOrigins": { "type": "boolean", "description": "add the origins of chunks and chunk merging info" }, "modulesSort": { "type": "string", "description": "sort the modules by that field" }, "moduleTrace": { "type": "boolean", "description": "add dependencies and origin of warnings/errors" }, "chunksSort": { "type": "string", "description": "sort the chunks by that field" }, "assetsSort": { "type": "string", "description": "sort the assets by that field" }, "publicPath": { "type": "boolean", "description": "Add public path information" }, "outputPath": { "type": "boolean", "description": "Add output path information" }, "providedExports": { "type": "boolean", "description": "show exports provided by modules" }, "usedExports": { "type": "boolean", "description": "show exports used by modules" }, "optimizationBailout": { "type": "boolean", "description": "show reasons why optimization bailed out for modules" } } }, { "type": "boolean" }, { "enum": [ "none", "errors-only", "minimal", "normal", "detailed", "verbose" ] } ] }, "target": { "description": "Environment to build for", "anyOf": [ { "enum": [ "web", "webworker", "node", "async-node", "node-webkit", "electron-main", "electron-renderer" ] }, { "instanceof": "Function" } ] }, "watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "watchOptions": { "description": "Options for the watcher", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "ignored": { "description": "Ignore some files from watching" }, "stdin": { "description": "Stop watching when stdin stream has ended", "type": "boolean" }, "poll": { "description": "Enable polling mode for watching", "anyOf": [ { "description": "`true`: use polling.", "type": "boolean" }, { "description": "`number`: use polling with specified interval.", "type": "number" } ] } }, "type": "object" } }, "type": "object" } package/bin/config/webpackConfigurationSchema.json000644 0000000741 3560116604 017457 0ustar00000000 000000 { "anyOf": [ { "type": "object", "description": "A webpack configuration object." }, { "type": "array", "description": "An array of webpack configuration objects.", "items": { "description": "A webpack configuration object.", "type": "object" } }, { "instanceof": "Promise", "description": "A promise that resolves with a configuration object, or an array of configuration objects." } ] } package/bin/utils/constants.js000644 0000001304 3560116604 013540 0ustar00000000 000000 const NON_COMPILATION_ARGS = ["init", "migrate", "serve", "generate-loader", "generate-plugin", "info"]; const CONFIG_GROUP = "Config options:"; const BASIC_GROUP = "Basic options:"; const MODULE_GROUP = "Module options:"; const OUTPUT_GROUP = "Output options:"; const ADVANCED_GROUP = "Advanced options:"; const RESOLVE_GROUP = "Resolving options:"; const OPTIMIZE_GROUP = "Optimizing options:"; const DISPLAY_GROUP = "Stats options:"; const GROUPS = { CONFIG_GROUP, BASIC_GROUP, MODULE_GROUP, OUTPUT_GROUP, ADVANCED_GROUP, RESOLVE_GROUP, OPTIMIZE_GROUP, DISPLAY_GROUP }; const WEBPACK_OPTIONS_FLAG = "WEBPACK_OPTIONS"; module.exports = { NON_COMPILATION_ARGS, GROUPS, WEBPACK_OPTIONS_FLAG }; package/bin/utils/convert-argv.js000644 0000034516 3560116604 014154 0ustar00000000 000000 const path = require("path"); const fs = require("fs"); fs.existsSync = fs.existsSync || path.existsSync; const interpret = require("interpret"); const prepareOptions = require("./prepareOptions"); const findup = require("findup-sync"); const validateOptions = require("./validate-options"); module.exports = function(...args) { const argv = args[1] || args[0]; const options = []; // Shortcuts if (argv.d) { argv.debug = true; argv["output-pathinfo"] = true; if (!argv.devtool) { argv.devtool = "eval-cheap-module-source-map"; } if (!argv.mode) { argv.mode = "development"; } } if (argv.p) { argv["optimize-minimize"] = true; // eslint-disable-next-line quotes argv["define"] = [].concat(argv["define"] || []).concat('process.env.NODE_ENV="production"'); if (!argv.mode) { argv.mode = "production"; } } if (argv.output) { let output = argv.output; if (!path.isAbsolute(argv.o)) { output = path.resolve(process.cwd(), output); } argv["output-filename"] = path.basename(output); argv["output-path"] = path.dirname(output); } let configFileLoaded = false; let configFiles = []; const extensions = Object.keys(interpret.extensions).sort(function(a, b) { return a === ".js" ? -1 : b === ".js" ? 1 : a.length - b.length; }); let i; if (argv.config) { const getConfigExtension = function getConfigExtension(configPath) { for (i = extensions.length - 1; i >= 0; i--) { const tmpExt = extensions[i]; if (configPath.indexOf(tmpExt, configPath.length - tmpExt.length) > -1) { return tmpExt; } } return path.extname(configPath); }; const mapConfigArg = function mapConfigArg(configArg) { const resolvedPath = path.resolve(configArg); const extension = getConfigExtension(resolvedPath); return { path: resolvedPath, ext: extension }; }; const configArgList = Array.isArray(argv.config) ? argv.config : [argv.config]; configFiles = configArgList.map(mapConfigArg); } else { const defaultConfigFileNames = ["webpack.config", "webpackfile"].join("|"); const webpackConfigFileRegExp = `(${defaultConfigFileNames})(${extensions.join("|")})`; const pathToWebpackConfig = findup(webpackConfigFileRegExp); if (pathToWebpackConfig) { const resolvedPath = path.resolve(pathToWebpackConfig); const actualConfigFileName = path.basename(resolvedPath); const ext = actualConfigFileName.replace(new RegExp(defaultConfigFileNames), ""); configFiles.push({ path: resolvedPath, ext }); } } if (configFiles.length > 0) { const registerCompiler = function registerCompiler(moduleDescriptor) { if (moduleDescriptor) { if (typeof moduleDescriptor === "string") { require(moduleDescriptor); } else if (!Array.isArray(moduleDescriptor)) { moduleDescriptor.register(require(moduleDescriptor.module)); } else { for (let i = 0; i < moduleDescriptor.length; i++) { try { registerCompiler(moduleDescriptor[i]); break; } catch (e) { // do nothing } } } } }; const requireConfig = function requireConfig(configPath) { let options = (function WEBPACK_OPTIONS() { if (argv.configRegister && argv.configRegister.length) { module.paths.unshift(path.resolve(process.cwd(), "node_modules"), process.cwd()); argv.configRegister.forEach(dep => { require(dep); }); return require(path.resolve(process.cwd(), configPath)); } else { return require(path.resolve(process.cwd(), configPath)); } })(); options = prepareOptions(options, argv); return options; }; configFiles.forEach(function(file) { registerCompiler(interpret.extensions[file.ext]); options.push(requireConfig(file.path)); }); configFileLoaded = true; } if (!configFileLoaded) { return processConfiguredOptions(); } else if (options.length === 1) { return processConfiguredOptions(options[0]); } else { return processConfiguredOptions(options); } function processConfiguredOptions(options) { if (options) { validateOptions(options); } else { options = {}; } // process Promise if (typeof options.then === "function") { return options.then(processConfiguredOptions); } // process ES6 default if (typeof options === "object" && typeof options.default === "object") { return processConfiguredOptions(options.default); } // filter multi-config by name if (Array.isArray(options) && argv["config-name"]) { const namedOptions = options.filter(function(opt) { return opt.name === argv["config-name"]; }); if (namedOptions.length === 0) { console.error("Configuration with name '" + argv["config-name"] + "' was not found."); process.exit(-1); // eslint-disable-line } else if (namedOptions.length === 1) { return processConfiguredOptions(namedOptions[0]); } options = namedOptions; } if (Array.isArray(options)) { options.forEach(processOptions); } else { processOptions(options); } if (argv.context) { options.context = path.resolve(argv.context); } if (!options.context) { options.context = process.cwd(); } if (argv.watch) { options.watch = true; } if (argv["watch-aggregate-timeout"]) { options.watchOptions = options.watchOptions || {}; options.watchOptions.aggregateTimeout = +argv["watch-aggregate-timeout"]; } if (typeof argv["watch-poll"] !== "undefined") { options.watchOptions = options.watchOptions || {}; if (argv["watch-poll"] === "true" || argv["watch-poll"] === "") options.watchOptions.poll = true; else if (!isNaN(argv["watch-poll"])) options.watchOptions.poll = +argv["watch-poll"]; } if (argv["watch-stdin"]) { options.watchOptions = options.watchOptions || {}; options.watchOptions.stdin = true; options.watch = true; } return options; } function processOptions(options) { function ifArg(name, fn, init, finalize) { const isArray = Array.isArray(argv[name]); const isSet = typeof argv[name] !== "undefined" && argv[name] !== null; if (!isArray && !isSet) return; init && init(); if (isArray) argv[name].forEach(fn); else if (isSet) fn(argv[name], -1); finalize && finalize(); } function ifArgPair(name, fn, init, finalize) { ifArg( name, function(content, idx) { const i = content.indexOf("="); if (i < 0) { return fn(null, content, idx); } else { return fn(content.substr(0, i), content.substr(i + 1), idx); } }, init, finalize ); } function ifBooleanArg(name, fn) { ifArg(name, function(bool) { if (bool) { fn(); } }); } function mapArgToBoolean(name, optionName) { ifArg(name, function(bool) { if (bool === true) options[optionName || name] = true; else if (bool === false) options[optionName || name] = false; }); } function loadPlugin(name) { const loadUtils = require("loader-utils"); let args; try { const p = name && name.indexOf("?"); if (p > -1) { args = loadUtils.parseQuery(name.substring(p)); name = name.substring(0, p); } } catch (e) { console.log("Invalid plugin arguments " + name + " (" + e + ")."); process.exit(-1); // eslint-disable-line } let path; try { const resolve = require("enhanced-resolve"); path = resolve.sync(process.cwd(), name); } catch (e) { console.log("Cannot resolve plugin " + name + "."); process.exit(-1); // eslint-disable-line } let Plugin; try { Plugin = require(path); } catch (e) { console.log("Cannot load plugin " + name + ". (" + path + ")"); throw e; } try { return new Plugin(args); } catch (e) { console.log("Cannot instantiate plugin " + name + ". (" + path + ")"); throw e; } } function ensureObject(parent, name, force) { if (force || typeof parent[name] !== "object" || parent[name] === null) { parent[name] = {}; } } function ensureArray(parent, name) { if (!Array.isArray(parent[name])) { parent[name] = []; } } function addPlugin(options, plugin) { ensureArray(options, "plugins"); options.plugins.unshift(plugin); } ifArg("mode", function(value) { options.mode = value; }); ifArgPair( "entry", function(name, entry) { if (typeof options.entry[name] !== "undefined" && options.entry[name] !== null) { options.entry[name] = [].concat(options.entry[name]).concat(entry); } else { options.entry[name] = entry; } }, function() { ensureObject(options, "entry", true); } ); function bindRules(arg) { ifArgPair( arg, function(name, binding) { if (name === null) { name = binding; binding += "-loader"; } const rule = { test: new RegExp("\\." + name.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") + "$"), // eslint-disable-line no-useless-escape loader: binding }; if (arg === "module-bind-pre") { rule.enforce = "pre"; } else if (arg === "module-bind-post") { rule.enforce = "post"; } options.module.rules.push(rule); }, function() { ensureObject(options, "module"); ensureArray(options.module, "rules"); } ); } bindRules("module-bind"); bindRules("module-bind-pre"); bindRules("module-bind-post"); let defineObject; ifArgPair( "define", function(name, value) { if (name === null) { name = value; value = true; } defineObject[name] = value; }, function() { defineObject = {}; }, function() { const DefinePlugin = require("webpack").DefinePlugin; addPlugin(options, new DefinePlugin(defineObject)); } ); ifArg("output-path", function(value) { ensureObject(options, "output"); options.output.path = path.resolve(value); }); ifArg("output-filename", function(value) { ensureObject(options, "output"); options.output.filename = value; }); ifArg("output-chunk-filename", function(value) { ensureObject(options, "output"); options.output.chunkFilename = value; }); ifArg("output-source-map-filename", function(value) { ensureObject(options, "output"); options.output.sourceMapFilename = value; }); ifArg("output-public-path", function(value) { ensureObject(options, "output"); options.output.publicPath = value; }); ifArg("output-jsonp-function", function(value) { ensureObject(options, "output"); options.output.jsonpFunction = value; }); ifBooleanArg("output-pathinfo", function() { ensureObject(options, "output"); options.output.pathinfo = true; }); ifArg("output-library", function(value) { ensureObject(options, "output"); ensureArray(options.output, "library"); options.output.library.push(value); }); ifArg("output-library-target", function(value) { ensureObject(options, "output"); options.output.libraryTarget = value; }); ifArg("records-input-path", function(value) { options.recordsInputPath = path.resolve(value); }); ifArg("records-output-path", function(value) { options.recordsOutputPath = path.resolve(value); }); ifArg("records-path", function(value) { options.recordsPath = path.resolve(value); }); ifArg("target", function(value) { options.target = value; }); mapArgToBoolean("cache"); ifBooleanArg("hot", function() { const HotModuleReplacementPlugin = require("webpack").HotModuleReplacementPlugin; addPlugin(options, new HotModuleReplacementPlugin()); }); ifBooleanArg("no-cache", function() { options.cache = false; }); ifBooleanArg("debug", function() { const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin; addPlugin( options, new LoaderOptionsPlugin({ debug: true }) ); }); ifArg("devtool", function(value) { options.devtool = value; }); function processResolveAlias(arg, key) { ifArgPair(arg, function(name, value) { if (!name) { throw new Error("--" + arg + " ="); } ensureObject(options, key); ensureObject(options[key], "alias"); options[key].alias[name] = value; }); } processResolveAlias("resolve-alias", "resolve"); processResolveAlias("resolve-loader-alias", "resolveLoader"); ifArg("resolve-extensions", function(value) { ensureObject(options, "resolve"); if (Array.isArray(value)) { options.resolve.extensions = value; } else { options.resolve.extensions = value.split(/,\s*/); } }); ifArg("optimize-max-chunks", function(value) { const LimitChunkCountPlugin = require("webpack").optimize.LimitChunkCountPlugin; addPlugin( options, new LimitChunkCountPlugin({ maxChunks: parseInt(value, 10) }) ); }); ifArg("optimize-min-chunk-size", function(value) { const MinChunkSizePlugin = require("webpack").optimize.MinChunkSizePlugin; addPlugin( options, new MinChunkSizePlugin({ minChunkSize: parseInt(value, 10) }) ); }); ifBooleanArg("optimize-minimize", function() { const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin; addPlugin( options, new LoaderOptionsPlugin({ minimize: true }) ); }); ifArg("prefetch", function(request) { const PrefetchPlugin = require("webpack").PrefetchPlugin; addPlugin(options, new PrefetchPlugin(request)); }); ifArg("provide", function(value) { const idx = value.indexOf("="); let name; if (idx >= 0) { name = value.substr(0, idx); value = value.substr(idx + 1); } else { name = value; } const ProvidePlugin = require("webpack").ProvidePlugin; addPlugin(options, new ProvidePlugin(name, value)); }); ifArg("plugin", function(value) { addPlugin(options, loadPlugin(value)); }); mapArgToBoolean("bail"); mapArgToBoolean("profile"); if (argv._.length > 0) { ensureObject(options, "entry", true); const addTo = function addTo(name, entry) { if (options.entry[name]) { if (!Array.isArray(options.entry[name])) { options.entry[name] = [options.entry[name]]; } options.entry[name].push(entry); } else { options.entry[name] = entry; } }; argv._.forEach(function(content) { const i = content.indexOf("="); const j = content.indexOf("?"); if (i < 0 || (j >= 0 && j < i)) { const resolved = path.resolve(content); if (fs.existsSync(resolved)) { addTo("main", `${resolved}${fs.statSync(resolved).isDirectory() ? path.sep : ""}`); } else { addTo("main", content); } } else { addTo(content.substr(0, i), content.substr(i + 1)); } }); } } }; package/bin/utils/errorHelpers.js000644 0000001617 3560116604 014207 0ustar00000000 000000 /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { WEBPACK_OPTIONS_FLAG } = require("./constants"); exports.cutOffByFlag = (stack, flag) => { stack = stack.split("\n"); for (let i = 0; i < stack.length; i++) if (stack[i].indexOf(flag) >= 0) stack.length = i; return stack.join("\n"); }; exports.cutOffWebpackOptions = stack => exports.cutOffByFlag(stack, WEBPACK_OPTIONS_FLAG); exports.cutOffMultilineMessage = (stack, message) => { stack = stack.split("\n"); message = message.split("\n"); return stack .reduce( (acc, line, idx) => (line === message[idx] || line === `Error: ${message[idx]}` ? acc : acc.concat(line)), [] ) .join("\n"); }; exports.cleanUpWebpackOptions = (stack, message) => { stack = exports.cutOffWebpackOptions(stack); stack = exports.cutOffMultilineMessage(stack, message); return stack; }; package/bin/utils/prepareOptions.js000644 0000001146 3560116604 014542 0ustar00000000 000000 "use strict"; module.exports = function prepareOptions(options, argv) { argv = argv || {}; options = handleExport(options); return Array.isArray(options) ? options.map(_options => handleFunction(_options, argv)) : handleFunction(options, argv); }; function handleExport(options) { const isES6DefaultExported = typeof options === "object" && options !== null && typeof options.default !== "undefined"; return isES6DefaultExported ? options.default : options; } function handleFunction(options, argv) { if (typeof options === "function") { options = options(argv.env, argv); } return options; } package/bin/utils/prompt-command.js000644 0000007516 3560116604 014474 0ustar00000000 000000 // based on https://github.com/webpack/webpack/blob/master/bin/webpack.js /** * @param {string} command process to run * @param {string[]} args commandline arguments * @returns {Promise} promise */ const runCommand = (command, args) => { const cp = require("child_process"); return new Promise((resolve, reject) => { const executedCommand = cp.spawn(command, args, { stdio: "inherit", shell: true }); executedCommand.on("error", error => { reject(error); }); executedCommand.on("exit", code => { if (code === 0) { resolve(); } else { reject(); } }); }); }; const npmGlobalRoot = () => { const cp = require("child_process"); return new Promise((resolve, reject) => { const command = cp.spawn("npm", ["root", "-g"]); command.on("error", error => reject(error)); command.stdout.on("data", data => resolve(data.toString())); command.stderr.on("data", data => reject(data)); }); }; const runWhenInstalled = (packages, pathForCmd, ...args) => { const currentPackage = require(pathForCmd); const func = currentPackage.default; if (typeof func !== "function") { throw new Error(`@webpack-cli/${packages} failed to export a default function`); } return func(...args); }; module.exports = function promptForInstallation(packages, ...args) { const nameOfPackage = "@webpack-cli/" + packages; let packageIsInstalled = false; let pathForCmd; try { const path = require("path"); const fs = require("fs"); pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages); if (!fs.existsSync(pathForCmd)) { const globalModules = require("global-modules"); pathForCmd = globalModules + "/@webpack-cli/" + packages; require.resolve(pathForCmd); } else { require.resolve(pathForCmd); } packageIsInstalled = true; } catch (err) { packageIsInstalled = false; } if (!packageIsInstalled) { const path = require("path"); const fs = require("fs"); const readLine = require("readline"); const isYarn = fs.existsSync(path.resolve(process.cwd(), "yarn.lock")); const packageManager = isYarn ? "yarn" : "npm"; const options = ["install", "-D", nameOfPackage]; if (isYarn) { options[0] = "add"; } if (packages === "init") { if (isYarn) { options.splice(1, 1); // remove '-D' options.splice(0, 0, "global"); } else { options[1] = "-g"; } } const commandToBeRun = `${packageManager} ${options.join(" ")}`; const question = `Would you like to install ${packages}? (That will run ${commandToBeRun}) (yes/NO) : `; console.error(`The command moved into a separate package: ${nameOfPackage}`); const questionInterface = readLine.createInterface({ input: process.stdin, output: process.stdout }); questionInterface.question(question, answer => { questionInterface.close(); switch (answer.toLowerCase()) { case "y": case "yes": case "1": { runCommand(packageManager, options) .then(_ => { if (packages === "init") { npmGlobalRoot() .then(root => { const pathtoInit = path.resolve(root.trim(), "@webpack-cli", "init"); return pathtoInit; }) .then(pathForInit => { return require(pathForInit).default(...args); }) .catch(error => { console.error(error); process.exitCode = 1; }); return; } pathForCmd = path.resolve(process.cwd(), "node_modules", "@webpack-cli", packages); return runWhenInstalled(packages, pathForCmd, ...args); }) .catch(error => { console.error(error); process.exitCode = 1; }); break; } default: { console.error(`${nameOfPackage} needs to be installed in order to run the command.`); process.exitCode = 1; break; } } }); } else { return runWhenInstalled(packages, pathForCmd, ...args); } }; package/bin/utils/validate-options.js000644 0000001134 3560116604 015007 0ustar00000000 000000 const webpackConfigurationSchema = require("../config/webpackConfigurationSchema.json"); const validateSchema = require("webpack").validateSchema; module.exports = function validateOptions(options) { let error; try { const errors = validateSchema(webpackConfigurationSchema, options); if (errors && errors.length > 0) { const { WebpackOptionsValidationError } = require("webpack"); error = new WebpackOptionsValidationError(errors); } } catch (err) { error = err; } if (error) { console.error(error.message); // eslint-disable-next-line no-process-exit process.exit(-1); } };