Discussion:
[hakyll] ignore directory
Yun
2017-01-19 22:17:01 UTC
Permalink
This is a quite old question.

https://groups.google.com/forum/#!msg/hakyll/GeVmN43beVQ/1YQkND13BAAJ

I encountered the same problem.

My situation is: I prefer to put the ''Zurb Foundation'' folder under '
providerDirectory'.
As such a directory contains lots of tiny files, it takes quite a long time
at the step

`creating provider`

| line 49--51 in `Runtime.hs`
|
| Logger.message logger "Creating provider..."
| provider <- newProvider store (shouldIgnoreFile config) $
| providerDirectory config

Of course I could put my SCSS dev files somewhere else, or change the
`providerDirectory`,
but it will be nice to solve it with some function in Hakyll.

The solution provided in the previous didn't solve the problem.
As Hakyll will check one by one to determine whether to ignore the file.

I think the correct way is to use `shouldIgnoreFile`, as it is done for
`destinationDirectory`, `storeDirectory and `tmpDirecory`.

| line 116--121 in `Configuration.hs`
|
| shouldIgnoreFile conf path = orM
| [ inDir (destinationDirectory conf)
| , inDir (storeDirectory conf)
| , inDir (tmpDirectory conf)
| , return (ignoreFile conf path')
| ]

But it seems that Hakyll does not provide this as a configuration, as it
does with `ignoreFile`.
Do I have to hack a little myself?

I'm not that skillful to program in Haskell, so I appreciate any other
workaround.
Thanks a lot!
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jasper Van der Jeugt
2017-01-20 00:06:28 UTC
Permalink
While Hakyll's `ignoreFile` was not really designed for this, you should be able
to use it to ignore the `Zurb Foundation` folder completely -- just
return `False`
if the name matches that.

Peace,
Jasper
Post by Yun
This is a quite old question.
https://groups.google.com/forum/#!msg/hakyll/GeVmN43beVQ/1YQkND13BAAJ
I encountered the same problem.
My situation is: I prefer to put the ''Zurb Foundation'' folder under
'providerDirectory'.
As such a directory contains lots of tiny files, it takes quite a long time
at the step
`creating provider`
| line 49--51 in `Runtime.hs`
|
| Logger.message logger "Creating provider..."
| provider <- newProvider store (shouldIgnoreFile config) $
| providerDirectory config
Of course I could put my SCSS dev files somewhere else, or change the
`providerDirectory`,
but it will be nice to solve it with some function in Hakyll.
The solution provided in the previous didn't solve the problem.
As Hakyll will check one by one to determine whether to ignore the file.
I think the correct way is to use `shouldIgnoreFile`, as it is done for
`destinationDirectory`, `storeDirectory and `tmpDirecory`.
| line 116--121 in `Configuration.hs`
|
| shouldIgnoreFile conf path = orM
| [ inDir (destinationDirectory conf)
| , inDir (storeDirectory conf)
| , inDir (tmpDirectory conf)
| , return (ignoreFile conf path')
| ]
But it seems that Hakyll does not provide this as a configuration, as it
does with `ignoreFile`.
Do I have to hack a little myself?
I'm not that skillful to program in Haskell, so I appreciate any other
workaround.
Thanks a lot!
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...