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

scriptype / writ-cms / 20903618537
39%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2026 11:24PM UTC
Jobs 5
Files 113
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

11 Jan 2026 11:23PM UTC coverage: 30.125% (-3.0%) from 33.105%
20903618537

push

github

scriptype
Introduce no-rootDirectory-yet case (create)

This is the first onboarding case when desktop app will be used to init
writ. For now, add a new mode in the cli (create) that starts the CMS
without an initial state.

Speaking of which, now the cli delegates the watch mode's work to CMS.

Reasoning:
- If 'writ build' is entered, then it's ok to just run writ once
- If 'writ watch' is entered, it means we are entering the live preview
+ cms mode. So let the CMS handle the rest
- Because the CMS will anyway have to handle everything when writ is
started via desktop app

Speaking of which, now CMS server is not started within the routines of
ssg. CMS initialization logic is moved up to the clients (cli, desktop
(tbd)). This made the interior of the ssg immediately simpler. No need
for the routines-wrapping index. It's all index.js now. Injecting
cms.setState to watcher's onChange has also become simpler.

Now, since the CMS will be responsible to run build and watch, new api
endpoints, server routes and frontend modules are added. The prototype
CMS UI now has these new buttons:
- ssg.build()
- ssg.watch()
- get ssg options

SSG options is what's passed as initial state to the CMS from the CLI
(or other client). Currently, if no initial state is passed, meaning no
rootDirectory to run writ in, none of the new buttons (or any others)
work. But this is by design, for now. This case is going to evolve into
onboarding flow, where the user inputs the ssg options and more and then
watching and building will be triggered by the cms

While at it:
- Make the explore-panel (container of buttons) draggable
- Inject settings to watcher

419 of 3383 branches covered (12.39%)

Branch coverage included in aggregate %.

31 of 113 new or added lines in 12 files covered. (27.43%)

128 existing lines in 31 files now uncovered.

1262 of 2197 relevant lines covered (57.44%)

1533.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
17.14
-2.3% src/watcher/index.js
3
0.0
src/cms/api/models/ssgOptions.js
3
0.0
src/cms/server/public/app/getSSGOptions.js
3
0.0
src/cms/server/public/app/ssgBuild.js
3
0.0
src/cms/server/public/app/ssgWatch.js
6
0.0
src/cms/api/models/ssg.js
6
0.0
0.0% src/cms/server/public/api.js
6
0.0
src/cms/server/router/api/ssgOptions.js
7
81.4
-7.49% src/index.js
10
0.0
-78.57% src/cms/index.js
12
0.0
src/cms/server/router/api/ssg.js
22
0.0
0.0% src/cms/server/public/app.js

Uncovered Existing Lines

Lines Coverage ∆ File
2
0.0
-33.33% src/cms/server/router/api/categories.js
2
0.0
-16.67% src/cms/server/router/api/category.js
2
0.0
-33.33% src/cms/server/router/api/collections.js
2
0.0
-33.33% src/cms/server/router/api/contentModel.js
2
0.0
-33.33% src/cms/server/router/api/fileSystemTree.js
2
0.0
-16.67% src/cms/server/router/api/homepage.js
2
0.0
-100.0% src/cms/server/router/api/index.js
2
0.0
-16.67% src/cms/server/router/api/post.js
2
0.0
-33.33% src/cms/server/router/api/posts.js
2
0.0
-18.18% src/cms/server/router/api/settings.js
2
0.0
-16.67% src/cms/server/router/api/subpage.js
2
0.0
-33.33% src/cms/server/router/api/subpages.js
2
0.0
-28.57% src/cms/server/router/api/tag.js
2
0.0
-33.33% src/cms/server/router/api/tags.js
3
0.0
-100.0% src/cms/api/index.js
3
0.0
-100.0% src/cms/api/models/fileSystemTree.js
4
0.0
-80.0% src/cms/api/models/categories.js
4
0.0
-80.0% src/cms/api/models/contentModel.js
4
0.0
-80.0% src/cms/api/models/posts.js
4
0.0
-80.0% src/cms/api/models/tag.js
4
0.0
-80.0% src/cms/api/models/tags.js
5
0.0
-83.33% src/cms/api/models/collections.js
5
0.0
-83.33% src/cms/api/models/subpages.js
5
0.0
-78.57% src/cms/index.js
6
0.0
-27.27% src/cms/api/helpers.js
6
0.0
-46.15% src/cms/api/models/settings.js
7
0.0
-33.33% src/cms/server/index.js
10
0.0
-27.78% src/cms/api/models/category.js
10
0.0
-35.71% src/cms/api/models/homepage.js
10
0.0
-28.57% src/cms/api/models/post.js
10
0.0
-32.26% src/cms/api/models/subpage.js
Jobs
ID Job ID Ran Files Coverage
1 20903618537.1 11 Jan 2026 11:24PM UTC 113
30.13
GitHub Action Run
2 20903618537.2 11 Jan 2026 11:24PM UTC 113
30.13
GitHub Action Run
3 20903618537.3 11 Jan 2026 11:24PM UTC 113
30.13
GitHub Action Run
4 20903618537.4 11 Jan 2026 11:24PM UTC 113
30.13
GitHub Action Run
5 20903618537.5 11 Jan 2026 11:24PM UTC 113
30.13
GitHub Action Run
Source Files on build 20903618537
  • Tree
  • List 113
  • Changed 36
  • Source Changed 8
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20903618537
  • 8fa5ffba on github
  • Prev Build on master (#20600484504)
  • Next Build on master (#20903747010)
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