• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 14285885590
39%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2025 09:19PM UTC
Jobs 9
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2025 09:14PM UTC coverage: 76.516% (-0.4%) from 76.932%
14285885590

push

github

scriptype
[CM2] Introduce inline collection contentTypes 👇

Collection index can have these properties:
- contentType
- categoryContentType
- entryContentType
- categoryAlias
- categoriesAlias
- entryAlias
- entriesAlias
- defaultCategoryName

'defaultCategoryName' is to allow custom defaultCategory names per collection.
'ContentType' fields are used for template lookup during rendering.
'Alias' fields are to assist contentType-specific templates' readability.

for example, in a custom collection template, instead of:
{{#each categories}}

you can say:
{{#each technologies}}

given you set categoriesAlias: technologies in the collection index.

Similar logic applies to all aliases and their template counterparts.
You can talk domain-driven in your templates now 💫

The idea is to brace myself to standalone contentType definitions the
CMS frontend will eventually require. For now something resembling them
can be inlined to collection frontMatter. Besides, compiler probably won't ever
care about much more than what is implemented here.

Also:
- Fix default category index overriding collection index by giving it an actual
slug, outputPath etc.
- Remove the unneeded Settings dependency from attachment, category, post and tag
- Lookup for a 'default.hbs' during rendering as a last resort, instead of 'index.hbs'
- Get rid of the default 'text' contentType

What's left:
A theme2 I guess...

444 of 698 branches covered (63.61%)

Branch coverage included in aggregate %.

12 of 24 new or added lines in 4 files covered. (50.0%)

2 existing lines in 2 files now uncovered.

2231 of 2798 relevant lines covered (79.74%)

334.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
80.77
-3.52% src/compiler/contentModel2/models/collection/category.js
2
84.96
-2.67% src/compiler/contentModel2/models/collection/index.js
4
26.09
-9.21% src/compiler/rendering2/views/collection/category.js
4
26.32
-12.15% src/compiler/rendering2/views/collection/post.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
26.09
-9.21% src/compiler/rendering2/views/collection/category.js
1
26.32
-12.15% src/compiler/rendering2/views/collection/post.js
Jobs
ID Job ID Ran Files Coverage
1 14285885590.1 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
2 14285885590.2 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
3 14285885590.3 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
4 14285885590.4 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
5 14285885590.5 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
6 14285885590.6 05 Apr 2025 09:19PM UTC 114
76.49
GitHub Action Run
7 14285885590.7 05 Apr 2025 09:20PM UTC 114
76.49
GitHub Action Run
8 14285885590.8 05 Apr 2025 09:20PM UTC 114
76.49
GitHub Action Run
9 14285885590.9 05 Apr 2025 09:20PM UTC 114
76.49
GitHub Action Run
Source Files on build 14285885590
  • Tree
  • List 114
  • Changed 10
  • Source Changed 10
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14285885590
  • 739acb18 on github
  • Prev Build on master (#14285354238)
  • Next Build on master (#14347888629)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc