duxt 0.3.8
duxt: ^0.3.8 copied to clipboard
A meta-framework for Jaspr with module-based architecture, file-based routing, layouts, and scaffold generators.
Changelog #
All notable changes to this project will be documented in this file.
0.3.8 - 2026-01-31 #
Added #
--modeflag forduxt create- Allows non-interactive project creation
Fixed #
- Template: Fixed
app.dart- removed undefinedDefaultPageLayout()call - Template: Fixed showcase page - changed
DTabstoDControlledTabswith correct props - Template: Fixed
server/main.dart- removedstaticDirparameter not in published API - Documentation: Updated all dynamic route examples to use
_param_syntax
Changed #
- Updated template dependencies to use latest duxt version
0.3.7 - 2026-01-30 #
Added #
duxt doctorcommand - Shows environment and project diagnostics, wrapsjaspr doctorduxt versioncommand- Added
example/example.dartfor pub.dev scoring
Fixed #
duxt updatenow shows correct current version (was hardcoded to 0.3.2)duxt cleannow also runsjaspr cleanfor complete cleanup- Removed
web/index.htmlfrom project template - allows SSR/SSG to work correctly - SSR now works properly with
duxt dev(jaspr serve)
Changed #
- Improved README with latest features documentation
- Updated CLI help to show jaspr command mappings
0.3.6 - 2026-01-29 #
Fixed #
- Fixed @source paths in styles.tw.css (relative to web/ directory)
duxt devnow runsdart pub getautomatically if pubspec.lock missing
0.3.5 - 2026-01-29 #
Added #
- Built-in Tailwind CSS compilation -
duxt devandduxt buildnow compile Tailwind directly - No need for
jaspr_tailwinddependency - Duxt handles everything - Tailwind watch mode during development with live recompilation
Changed #
- Removed
jaspr_tailwindfrom template dev_dependencies - Template styles.tw.css now uses @source directives for Tailwind v4
0.3.4 - 2026-01-29 #
Added #
duxt devnow syncs duxt_ui package to.duxt/packages/for Tailwind CSS scanning- Cross-platform support for Tailwind class scanning (works on Windows, macOS, Linux)
- Template now includes
.gitignorewith common exclusions
Fixed #
- duxt_ui Tailwind classes now work correctly when installed from pub.dev
0.3.2 - 2026-01-29 #
Fixed #
- Template now correctly includes Blog, Company modules
- Dark theme with cyan color scheme applied
0.3.1 - 2026-01-29 #
0.3.0 - 2026-01-29 #
Added #
- Fullstack template - New projects include a complete blog example with SQLite
- Server API structure -
server/db.dart,server/models/,server/api/ - Multi-target builds -
duxt build --target=linux-arm64 - Cross-compilation - Docker-based Linux builds from any platform
- Nested routing example -
/company/team/engineeringdemonstrates deep nesting
Changed #
duxt devnow starts both frontend (4000) and API server (3001)duxt buildcompiles server binary with architecture suffix- Template includes Blog, Showcase, Company, About modules
- Default layout uses Duxt logo from duxt.dev
New CLI Options #
duxt dev --api-port=3001- Set API server portduxt dev --no-api- Skip API serverduxt build --target=<platform>- Target platform (linux-x64, linux-arm64, macos-x64, macos-arm64)duxt build --all-targets- Build for all platforms
0.2.3 - 2026-01-29 #
Changed #
- Rewrite composables to use actual Jaspr router APIs
useRouter(context)returnsRouterStatefrom jaspr_router- Added
DuxtNavigationextension onBuildContextforcontext.push(),context.back(), etc. - Added
AsyncData<T>class for standalone async state management - Added route param helpers:
requireParam,paramOr,queryParam,queryParamOr - Removed placeholder
UseFetch,UseAsyncData,UseState,UseRoute,UseRouterclasses - Updated URLs to duxt.dev and duxt-base/duxt
0.2.2 - 2026-01-28 #
Changed #
- Fixed
DuxtState- changed from mixin to abstract class for better generics support - Fixed form templates to use proper jaspr
input()andbutton()API - Added
jaspr/dom.dartimport to all generated files for HTML elements - Removed all third-party trademark references
- Updated GitHub URLs to base-al/duxt
Fixed #
input()now usestype: InputType.textandname:parameters correctlybutton()now usestype: ButtonType.submitcorrectly- Build errors from incorrect jaspr imports
0.2.1 - 2026-01-28 #
Changed #
- Removed third-party trademark references from documentation
- Updated README with new module-based structure examples
0.2.0 - 2026-01-28 #
Changed #
- Module-based architecture - Opinionated structure
lib/ ├── posts/ # Module │ ├── pages/ # Routes: /posts, /posts/:id │ ├── components/ # Module components │ ├── model.dart # Data model │ └── api.dart # API calls ├── shared/ # Cross-module │ └── layouts/ └── app.dart
Added #
Apiclass - Simple static HTTP clientfinal posts = await Api.get('/posts'); await Api.post('/posts', body: {'title': 'Hello'});DuxtStatemixin - SPA data loading with loading/error statesDuxtMultiStatemixin - Multiple data sourcesduxt g module <name>- Generate new moduleduxt g layout <name>- Generate layoutduxt --version- Show version- Grouped help output
Removed #
duxt addcommand (merged intoduxt g)- Old flat structure (
lib/pages/,lib/components/, etc.)
Fixed #
- Router generator now scans module-based structure
- Scaffold generates proper module structure
0.1.0 - 2026-01-28 #
Added #
-
Initial release
-
CLI Commands
duxt create- Create new Duxt projectduxt dev- Start development server with hot reloadduxt start- Start production server (auto-finds free port)duxt build- Build for productionduxt generate- Generate static siteduxt g- Generate files with fields (model, page, component, api, middleware, composable)duxt add- Add files without fieldsduxt scaffold- Full CRUD generation
-
Project Structure
- File-based routing from
lib/pages/ - Layouts system in
lib/layouts/ - Components in
lib/components/ - Models in
lib/models/ - API routes in
server/api/ - Middleware in
middleware/ - Composables in
composables/
- File-based routing from
-
Runtime Features
DuxtPage- Base page class with layout, middleware, metaDuxtLayout- Base layout classDuxtMiddleware- Route middleware supportDuxtContext- Context for asyncData and middleware- Composables:
UseState,UseFetch,UseAsyncData,UseRoute,UseRouter
-
API Handler
ApiHandler- Base class for API routesApiRequest/ApiResponse- Request/response handlingdefineEventHandler- event handler- Helper functions:
readBody,getQuery,sendRedirect, etc.
-
Integrations
- Jaspr ^0.22.1
- Jaspr Router ^0.8.1
- Tailwind CSS via jaspr_tailwind