Debian Codegraph @

docs/content/en/commands/hugo_mod_npm_pack.md

raw
1 ---
2 title: "hugo mod npm pack"
3 slug: hugo_mod_npm_pack
4 url: /commands/hugo_mod_npm_pack/
5 ---
6 ## hugo mod npm pack
7
8 Merges module Node.js dependencies into an npm workspace
9
10 ### Synopsis
11
12 Merges Node.js dependencies from all Hugo modules into a "packages/hugoautogen" npm workspace.
13
14 The merged dependencies are written to packages/hugoautogen/package.json, and the root package.json
15 is updated with a "workspaces" entry pointing to "packages/hugoautogen".
16
17 The source entries are read from either package.hugo.json or package.json in the module root, with package.hugo.json taking precedence if both exist.
18
19 See [Node.js dependencies](/hugo-modules/nodejs-dependencies/) for more information.
20
21
22 ```
23 hugo mod npm pack [flags] [args]
24 ```
25
26 ### Options
27
28 ```
29 -b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
30 --cacheDir string filesystem path to cache directory
31 -c, --contentDir string filesystem path to content directory
32 -h, --help help for pack
33 --renderSegments strings named segments to render (configured in the segments config)
34 -t, --theme strings themes to use (located in /themes/THEMENAME/)
35 ```
36
37 ### Options inherited from parent commands
38
39 ```
40 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
41 --config string config file (default is hugo.yaml|json|toml)
42 --configDir string config dir (default "config")
43 -d, --destination string filesystem path to write files to
44 -e, --environment string build environment
45 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
46 --logLevel string log level (debug|info|warn|error)
47 --noBuildLock don't create .hugo_build.lock file
48 --quiet build in quiet mode
49 -M, --renderToMemory render to memory (mostly useful when running the server)
50 -s, --source string filesystem path to read files relative from
51 --themesDir string filesystem path to themes directory
52 ```
53
54 ### SEE ALSO
55
56 * [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers