hugo/hugofs
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
..
files Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
glob Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
createcounting_fs.go Make Page an interface 2019-03-23 18:51:22 +01:00
decorators.go Introduce a tree map for all content 2020-02-18 09:49:42 +01:00
fileinfo.go Introduce a tree map for all content 2020-02-18 09:49:42 +01:00
filter_fs.go Pass directory name to filters in LstatIfPossible in the same way as Readdir 2020-03-19 20:09:34 +01:00
filter_fs_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
fs.go modules: Improve "hugo mod clean" 2020-02-19 17:14:35 +01:00
fs_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
glob.go Add resources.Match and resources.GetMatch 2019-08-13 11:44:20 +02:00
glob_test.go Add resources.Match and resources.GetMatch 2019-08-13 11:44:20 +02:00
hashing_fs.go Make Page an interface 2019-03-23 18:51:22 +01:00
hashing_fs_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
language_composite_fs.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
noop_fs.go hugofs: Fix golint issues 2018-09-07 08:25:51 +02:00
nosymlink_fs.go Block symlink dir traversal for /static 2019-07-25 11:27:25 +02:00
nosymlink_test.go Fix module mount in sub folder 2020-02-04 00:17:10 +01:00
rootmapping_fs.go Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
rootmapping_fs_test.go hugofs: Fix mount with hole regression 2020-02-09 21:35:39 +01:00
slice_fs.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
stacktracer_fs.go Fix assorted typos 2019-08-01 13:55:48 +02:00
walk.go Fix module mount in sub folder 2020-02-04 00:17:10 +01:00
walk_test.go Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00