hugo_mod_npm_pack.md (1937B)
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 Experimental: Prepares and writes a composite package.json file for your project.
9
10 ### Synopsis
11
12 Prepares and writes a composite package.json file for your project.
13
14 On first run it creates a "package.hugo.json" in the project root if not already there. This file will be used as a template file
15 with the base dependency set.
16
17 This set will be merged with all "package.hugo.json" files found in the dependency tree, picking the version closest to the project.
18
19 This command is marked as 'Experimental'. We think it's a great idea, so it's not likely to be
20 removed from Hugo, but we need to test this out in "real life" to get a feel of it,
21 so this may/will change in future versions of Hugo.
22
23
24 ```
25 hugo mod npm pack [flags]
26 ```
27
28 ### Options
29
30 ```
31 -h, --help help for pack
32 ```
33
34 ### Options inherited from parent commands
35
36 ```
37 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
38 --config string config file (default is path/config.yaml|json|toml)
39 --configDir string config dir (default "config")
40 --debug debug output
41 -e, --environment string build environment
42 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
43 --log enable Logging
44 --logFile string log File path (if set, logging enabled automatically)
45 --quiet build in quiet mode
46 -s, --source string filesystem path to read files relative from
47 --themesDir string filesystem path to themes directory
48 -v, --verbose verbose output
49 --verboseLog verbose logging
50 ```
51
52 ### SEE ALSO
53
54 * [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers.
55