Chore/maintenance fixes#20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and minor refactors to the Nitro CLI static site generator. The main changes include enhancements to asset fingerprinting for better cache busting, improved handling of configuration and source directories, and code refactors for clarity and maintainability. Additionally, the version number is bumped to 1.0.17.
Asset fingerprinting and manifest improvements:
src/nitro/core/bundler.py) (F9675e7cL213R213, F9675e7cL229R229, F9675e7cL243R243)src/nitro/core/bundler.py) (F9675e7cL270R270)Configuration and directory handling:
Config()object ifnitro.config.pyis missing, and always usesconfig.source_dirfor the source directory. (src/nitro/commands/check.py,src/nitro/commands/routes.py) [1] [2]build.pyto usegenerator.configdirectly instead of reloading config from disk, and streamlined sitemap metadata passing. (src/nitro/commands/build.py) [1] [2]Hot module reloading and file watching:
src/nitro/commands/serve.py) [1] [2]Code clarity and maintainability:
src/nitro/core/generator.py,src/nitro/core/bundler.py) (F6bfb974L94R94, F6bfb974L114R114, F6bfb974L130R130, F6bfb974L168R168, F6bfb974L193R193, F6bfb974L206R206, F6bfb974L225R225, F6bfb974L229R229)Version updates:
pyproject.tomlandsrc/nitro/__init__.py. [1] [2]