Socket
Socket
Sign inDemoInstall

@vuepress/cli

Package Overview
Dependencies
Maintainers
7
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/cli - npm Package Compare versions

Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4

lib/config/loadUserConfigEs.d.ts

17

CHANGELOG.md

@@ -6,2 +6,19 @@ # Change Log

# [2.0.0-alpha.4](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2020-12-02)
### Bug Fixes
* **cli:** keep message format consistent ([1de416d](https://github.com/vuepress/vuepress-next/commit/1de416d75fb115523d78e6e709712210cbf39db9))
### Features
* **cli:** allow default export in user config file ([b2f86c7](https://github.com/vuepress/vuepress-next/commit/b2f86c7b6c11de81c5aaf6e96973921dc0b9ad60))
* **cli:** allow loading ts files globally ([a9d94ac](https://github.com/vuepress/vuepress-next/commit/a9d94ac9243ec75c5de20a0a08546e3a032dd43e))
# [2.0.0-alpha.3](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2020-12-01)

@@ -8,0 +25,0 @@

38

lib/cli.js

@@ -7,2 +7,3 @@ "use strict";

const commands_1 = require("./commands");
const utils_2 = require("./utils");
/**

@@ -22,2 +23,5 @@ * Wrap raw command to catch errors and exit process

const cli = () => {
// allow ts files globally
utils_2.allowTs();
// create cac instance
const program = cac_1.cac('vuepress');

@@ -32,22 +36,22 @@ // display core version and cli version

program
.command('dev [sourceDir]', 'start development server')
.option('-c, --config <config>', 'set path to config file')
.option('-p, --port <port>', 'use specified port (default: 8080)')
.option('-h, --host <host>', 'use specified host (default: 0.0.0.0)')
.option('-t, --temp <temp>', 'set the directory of the temporary files')
.option('--cache <cache>', 'set the directory of the cache files')
.option('--clean-cache', 'clean the cache before dev')
.option('--open', 'open browser when ready')
.option('--debug', 'enable debug mode')
.option('--no-watch', 'disable watching page and config files')
.command('dev [sourceDir]', 'Start development server')
.option('-c, --config <config>', 'Set path to config file')
.option('-p, --port <port>', 'Use specified port (default: 8080)')
.option('-h, --host <host>', 'Use specified host (default: 0.0.0.0)')
.option('-t, --temp <temp>', 'Set the directory of the temporary files')
.option('--cache <cache>', 'Set the directory of the cache files')
.option('--clean-cache', 'Clean the cache before dev')
.option('--open', 'Open browser when ready')
.option('--debug', 'Enable debug mode')
.option('--no-watch', 'Disable watching page and config files')
.action(wrapCommand(commands_1.dev));
// register `build` command
program
.command('build [sourceDir]', 'build to static site')
.option('-c, --config <config>', 'set path to config file')
.option('-d, --dest <dest>', 'set the directory build output (default: .vuepress/dist)')
.option('-t, --temp <temp>', 'set the directory of the temporary files')
.option('--cache <cache>', 'set the directory of the cache files')
.option('--clean-cache', 'clean the cache before build')
.option('--debug', 'enable debug mode')
.command('build [sourceDir]', 'Build to static site')
.option('-c, --config <config>', 'Set path to config file')
.option('-d, --dest <dest>', 'Set the directory build output (default: .vuepress/dist)')
.option('-t, --temp <temp>', 'Set the directory of the temporary files')
.option('--cache <cache>', 'Set the directory of the cache files')
.option('--clean-cache', 'Clean the cache before build')
.option('--debug', 'Enable debug mode')
.action(wrapCommand(commands_1.build));

@@ -54,0 +58,0 @@ program.parse(process.argv);

export * from './loadUserConfig';
export * from './loadUserConfigJs';
export * from './loadUserConfigTs';
export * from './loadUserConfigEs';
export * from './resolveBundler';

@@ -5,0 +4,0 @@ export * from './resolveUserConfigConventionalPath';

@@ -14,4 +14,3 @@ "use strict";

__exportStar(require("./loadUserConfig"), exports);
__exportStar(require("./loadUserConfigJs"), exports);
__exportStar(require("./loadUserConfigTs"), exports);
__exportStar(require("./loadUserConfigEs"), exports);
__exportStar(require("./resolveBundler"), exports);

@@ -18,0 +17,0 @@ __exportStar(require("./resolveUserConfigConventionalPath"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadUserConfig = void 0;
const loadUserConfigJs_1 = require("./loadUserConfigJs");
const loadUserConfigTs_1 = require("./loadUserConfigTs");
const loadUserConfigEs_1 = require("./loadUserConfigEs");
const loaderMap = [
[/\.js$/, loadUserConfigJs_1.loadUserConfigJs],
[/\.ts$/, loadUserConfigTs_1.loadUserConfigTs],
[/\.(j|t)s$/, loadUserConfigEs_1.loadUserConfigEs],
];

@@ -10,0 +8,0 @@ /**

export * from './commands';
export * from './config';
export * from './cli';
export * from './utils';
//# sourceMappingURL=index.d.ts.map

@@ -16,2 +16,3 @@ "use strict";

__exportStar(require("./cli"), exports);
__exportStar(require("./utils"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@vuepress/cli",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"description": "CLI package of VuePress",

@@ -33,4 +33,4 @@ "keywords": [

"dependencies": {
"@vuepress/core": "2.0.0-alpha.3",
"@vuepress/utils": "2.0.0-alpha.1",
"@vuepress/core": "2.0.0-alpha.4",
"@vuepress/utils": "2.0.0-alpha.4",
"cac": "^6.6.1",

@@ -43,3 +43,3 @@ "chokidar": "^3.4.3",

},
"gitHead": "ef9a570160471d038ff1869318d99b563f7ae36d"
"gitHead": "444847fdfddc772980d4efd25fcfbb8d3c6c67af"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc