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

feat: add sync function, return string, add describe option, remove cli #23

Merged
merged 9 commits into from Aug 16, 2019

Conversation

nexdrew
Copy link
Owner

@nexdrew nexdrew commented Aug 15, 2019

Fixes #16. Fixes #17.

Closes #15.

Complete library overhaul!

BREAKING CHANGE: Drops support for Next<6 and Node<8 (now using async/await), changes return value from object to string (to be more compatible with generateBuildId), removes hacky file overwriting and thus the CLI (file overwriting is no longer necessary for modern versions of Next).

Also adds a synchronous version via the new sync function.

Also adds a new describe boolean option to use the output of git describe --tags rather than git rev-parse HEAD.

See README for further details.

Optimized to read from git repo files instead of executing a git binary, when possible.

Tests and dev dependencies were updated accordingly.

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.

Add synchronous version of plugin Expose current git tag to return result
1 participant