diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-09 22:31:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-09-13 20:55:29 +0200 |
commit | 85ba9bfffba9bfd0b095cb766f72700d4c211e31 (patch) | |
tree | 43b66efaafe4cb804234ca7273873ab949305799 /hugofs/walk_test.go | |
parent | 9df60b62f9c4e36a269f0c6e9a69bee9dc691031 (diff) |
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
Diffstat (limited to 'hugofs/walk_test.go')
-rw-r--r-- | hugofs/walk_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hugofs/walk_test.go b/hugofs/walk_test.go index 0c08968c6..c38c6044f 100644 --- a/hugofs/walk_test.go +++ b/hugofs/walk_test.go @@ -21,8 +21,6 @@ import ( "strings" "testing" - "github.com/gohugoio/hugo/common/hugo" - "github.com/pkg/errors" "github.com/gohugoio/hugo/htesting" @@ -129,12 +127,6 @@ func TestWalkSymbolicLink(t *testing.T) { }) t.Run("BasePath Fs", func(t *testing.T) { - if hugo.GoMinorVersion() < 12 { - // https://github.com/golang/go/issues/30520 - // This is fixed in Go 1.13 and in the latest Go 1.12 - t.Skip("skip this for Go <= 1.11 due to a bug in Go's stdlib") - - } c := qt.New(t) docsFs := afero.NewBasePathFs(fs, docsDir) |