Nibble 0.3.0
What’s new
bin/rails nibble:generate:theme HANDLEcopies the starter theme intothemes/HANDLE, names it as this site’s theme and leaves ours alone, so a site never editsthemes/crumbsto change how it looks.
What’s fixed
- The asset build ignored the theme named in
config/nibble.ymland always bundledthemes/crumbs, so a site with its own theme edited.vuefiles that were never built — silently, with nothing to see in any log. The build now resolves the theme the way the rest of Nibble does: your settings first,NIBBLE_THEMEsecond. - An upgrade stopped partway through on any site with its own theme or its own npm packages:
npm cirefuses a lockfile that is not exactly ours. nibble:generate:themeregisters the new theme with npm, so a laternpm ci— in your own CI, or a container build — doesn’t fail naming a workspace nothing told you about.- A theme view that throws while rendering on the server now says which view and which URL in the log, instead of an anonymous stack trace. Vue drops only the piece that threw, so the page is otherwise served as normal.
bin/rails nibble:upgradewritesdb/schema.rbwhen there isn’t one, so taking 0.2.1 — which stopped shipping ours — leaves a site with its own. Upgrade: 0.2.1 said to runbin/rails db:preparefor this; that only writes the file when there is something to migrate. If you have nodb/schema.rb, runbin/rails db:schema:dumponce, or take this release and it is written for you.