Skip to content

Releases: nitrosh/nitro-cli

v1.0.17

17 May 02:46
@sn sn
cb3cbc0

Choose a tag to compare

What's Changed

  • Chore/maintenance fixes by @sn in #20

Full Changelog: v1.0.16...v1.0.17

v1.0.16

25 Apr 21:37
@sn sn

Choose a tag to compare

Full Changelog: v1.0.15...v1.0.16

v1.0.15

19 Apr 18:06
@sn sn

Choose a tag to compare

Full Changelog: v1.0.14...v1.0.15

v1.0.14

17 Apr 18:32
@sn sn
0f13c3b

Choose a tag to compare

What's Changed

  • Added missing docstrings and bumped the version by @sn in #13

Full Changelog: v1.0.13...v1.0.14

v1.0.13

16 Apr 10:21
@sn sn
d8e91fa

Choose a tag to compare

What's Changed

  • Fix fingerprint stacking on incremental builds (#11) by @sn in #12

Full Changelog: v1.0.12...v1.0.13

v1.0.12

15 Apr 20:42
@sn sn

Choose a tag to compare

Full Changelog: v1.0.10...v1.0.12

v1.0.11

15 Apr 20:38
@sn sn
3067d0a

Choose a tag to compare

What's Changed

  • Added additional test coverage and updating documentation by @sn in #10

Full Changelog: v1.0.10...v1.0.11

v1.0.10

09 Feb 15:04
@sn sn

Choose a tag to compare

Fixed: shared component invalidation failing under certain conditions. Also moved static to the src directory.

v1.0.9

09 Feb 13:13
@sn sn

Choose a tag to compare

Fixed numerous issues and documentation consistency.

Full Changelog: v1.0.8...v1.0.9

v1.0.8

30 Jan 04:23
@sn sn
1917b87

Choose a tag to compare

New Commands

  • nitro init - Initialize Nitro in an existing directory with minimal scaffolding (config, directories, starter page)
  • nitro routes - List all routes the site will generate, showing URL, source file, type (static/dynamic), and draft status
  • nitro check - Validate site without building - checks that all pages render successfully and verifies internal links
  • nitro export - Export the built site as a zip archive for easy deployment or sharing

New Features

  • Draft Pages - Mark pages with draft=True to exclude them from production builds while still rendering in development Page(title="WIP", content=html, draft=True)
  • Environment Variables - New env module with automatic .env file loading from nitro import env
api_key = env.API_KEY                                                                                                                                                                                                                                                                                                       
if env.is_production():                                                                                                                                                                                                                                                                                                     
    # production-only code                                                 
  • Enhanced Sitemap - Control sitemap generation via page metadata
Page(                                                                                                                                                                                                                                                                                                                       
    title="Page",                                                                                                                                                                                                                                                                                                           
    content=html,                                                                                                                                                                                                                                                                                                           
    meta={                                                                                                                                                                                                                                                                                                                  
        "sitemap": False,              # exclude from sitemap                                                                                                                                                                                                                                                               
        "lastmod": "2024-01-15",       # custom last modified                                                                                                                                                                                                                                                               
        "sitemap_priority": 0.9,       # custom priority                                                                                                                                                                                                                                                                    
        "sitemap_changefreq": "daily", # change frequency                                                                                                                                                                                                                                                                   
    }                                                                                                                                                                                                                                                                                                                       
)  

Dependencies

  • Updated nitro-ui requirement to >= 1.0.6
  • Added optional python-dotenv dependency for .env support (pip install nitro-cli[dotenv])

Documentation

  • Updated SKILL.md with all new commands and features
  • Updated README.md with new commands and features