Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging forks that were never merged into the official pug-cli #93

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

svallory
Copy link

In case anyone in the official repository wants an easy merge...

If not, you can get all this by from tokilabs/pug3-cli by installing the npm package @tokilabs/pug3-cli

Here's a list of the merged contributions:

borisovg and others added 28 commits May 3, 2021 19:05
@anduh/pug-cli - PUG 3 - 1.0.0
Merge contributions from @Anduh
Merge contributions from anthony-tron/yaml support
Add contributions from funai/master to allow YAML frontmatter
Previous implementation used 'lstatSync'  which returns stat info about link
itself, not the file that it refers to. That behaviour didn't allow to use the
tool in case of separate build (source and build dirs are separate, and sources
linked back into  build directory).

As workaround there we could provide file content through stdin, but that
approach has limitations:
- you cannot process multiple files at once
- you cannot use 'include' directives

This commit changes the use of  'lstatSync' to 'statSync' which makes symlink
files be processed as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants