hugo/commands
Bjørn Erik Pedersen 85ba9bfffb Add "hugo mod npm pack"
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into:

```
assets/_jsconfig
´``

These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename.

But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific.

This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above.

Fixes #7644
Fixes #7656
Fixes #7675
2020-09-13 20:55:29 +02:00
..
check.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
check_darwin.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
commandeer.go Add redirect support to the server 2020-05-28 16:25:34 +02:00
commands.go modules: Make ignoreVendor a glob pattern 2020-09-10 08:47:05 +02:00
commands_test.go modules: Make ignoreVendor a glob pattern 2020-09-10 08:47:05 +02:00
config.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
convert.go Introduce a tree map for all content 2020-02-18 09:49:42 +01:00
deploy.go deploy: Ensure that non-trivial default flag values are passed through. 2020-07-04 21:19:25 +02:00
env.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genchromastyles.go commands: Modify gen chromastyles to output all CSS classes 2020-04-13 18:31:33 +02:00
gendoc.go commands: Add basic server test 2018-04-11 09:51:07 +02:00
gendocshelper.go Some minify configuration adjustments 2020-03-20 20:35:57 +01:00
genman.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00
helpers.go commands: Only show Ansi escape codes if in a terminal 2018-10-26 14:33:44 +02:00
hugo.go modules: Make ignoreVendor a glob pattern 2020-09-10 08:47:05 +02:00
hugo_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go Introduce a tree map for all content 2020-02-18 09:49:42 +01:00
import_jekyll_test.go commands: Fix jekyll metadata import on individual posts 2019-11-25 09:46:44 +01:00
limit_darwin.go Adjust rlimit logic 2019-04-07 00:53:55 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
list_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
mod.go Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
mod_npm.go Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
new.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_content_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_site.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
new_theme.go commands: Use semver for min_version per recommendations 2020-04-07 19:42:45 +02:00
release.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
server.go commands: Fix URL rewrites vs fast render server mode 2020-06-06 12:37:42 +02:00
server_errors.go Improve Tailwind/PostCSS error messages 2020-03-11 14:13:03 +01:00
server_test.go commands: Fix config environment handling 2020-01-31 16:36:36 +01:00
static_syncer.go commands: Make sure the hugo field is always initialized before it's used 2019-08-15 09:33:47 +02:00
version.go Add tpl/site and tpl/hugo 2018-12-06 14:37:25 +01:00