hugo mod npm pack
hugo mod npm pack
实验性功能:为您的项目准备并写入一个组合的 package.json 文件。
概要
为您的项目准备并写入一个组合的 package.json 文件。
首次运行时,如果项目根目录中不存在 “package.hugo.json”,则会在该目录中创建它。此文件将用作包含基本依赖项集的模板文件。
此集合将与依赖树中找到的所有 “package.hugo.json” 文件合并,选择最接近项目的版本。
此命令被标记为 “实验性”。我们认为这是一个好主意,因此它不太可能从 Hugo 中删除,但我们需要在 “现实生活” 中进行测试以了解它,因此它可能会/将在未来的 Hugo 版本中发生变化。
hugo mod npm pack [flags] [args]
选项
-b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
--cacheDir string filesystem path to cache directory
-c, --contentDir string filesystem path to content directory
-h, --help help for pack
--renderSegments strings named segments to render (configured in the segments config)
-t, --theme strings themes to use (located in /themes/THEMENAME/)
从父命令继承的选项
--clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
--config string config file (default is hugo.yaml|json|toml)
--configDir string config dir (default "config")
-d, --destination string filesystem path to write files to
-e, --environment string build environment
--ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
--logLevel string log level (debug|info|warn|error)
--noBuildLock don't create .hugo_build.lock file
--quiet build in quiet mode
-M, --renderToMemory render to memory (mostly useful when running the server)
-s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory
参见
- hugo mod npm - 各种 npm 助手。