-
-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(cli): moved package under "webpack-cli" folder * chore(webpack-cli): removed inquirer in favour of enquirer (more light)
- Loading branch information
Showing
38 changed files
with
13,351 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
require('v8-compile-cache'); | ||
const execa = require('execa'); | ||
const importLocal = require('import-local'); | ||
const logger = require('../lib/utils/logger'); | ||
const parseArgs = require('../lib/utils/parse-args'); | ||
|
||
// Prefer the local installation of webpack-cli | ||
if (importLocal(__filename)) { | ||
// return; | ||
} | ||
process.title = 'webpack'; | ||
|
||
const [, , ...rawArgs] = process.argv; | ||
const { cliArgs, nodeArgs } = parseArgs(rawArgs); | ||
const bootstrapPath = require.resolve('../lib/bootstrap'); | ||
|
||
execa('node', [...nodeArgs, bootstrapPath, ...cliArgs], { stdio: 'inherit' }).catch(e => { | ||
process.exit(e.exitCode); | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "webpack-cli", | ||
"version": "4.0.0-beta.3", | ||
"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": "./lib/webpack-cli.js", | ||
"engines": { | ||
"node": ">=10.13.0" | ||
}, | ||
"keywords": [ | ||
"webpack", | ||
"cli", | ||
"scaffolding", | ||
"module", | ||
"bundler", | ||
"web" | ||
], | ||
"files": [ | ||
"lib", | ||
"bin/cli.js" | ||
], | ||
"dependencies": { | ||
"ansi-escapes": "^4.2.1", | ||
"chalk": "^3.0.0", | ||
"cli-table3": "^0.5.1", | ||
"command-line-args": "^5.1.1", | ||
"command-line-usage": "^6.1.0", | ||
"execa": "^3.2.0", | ||
"import-local": "^3.0.2", | ||
"enquirer": "^2.3.4", | ||
"interpret": "^2.0.0", | ||
"v8-compile-cache": "^2.1.0", | ||
"webpack-log": "^3.0.1", | ||
"webpack-merge": "^4.2.2" | ||
}, | ||
"peerDependencies": { | ||
"webpack": "^5.0.0-beta.12" | ||
}, | ||
"devDependencies": { | ||
"@webpack-cli/info": "1.0.1-alpha.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.