Skip to content

Commit 70ef5e6

Browse files
author
Iļja Ketris
committed
bugfix
1 parent b5a0890 commit 70ef5e6

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

bin/main.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "20ful",
3-
"version": "0.1.72",
3+
"version": "0.1.73",
44
"description": "Static site generator",
55
"engines": {
66
"node": ">=13.5"

source/main.ls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ processFile = (hsh) ->
9999

100100
bust = if attr.'bust-cache'
101101
then
102+
log 'bust-cache?'
102103
state.rescan = yes
103104
'-' + base58.int_to_base58 stringHash body
104105
else ''
@@ -147,9 +148,9 @@ processFile = (hsh) ->
147148

148149
.then ->
149150
if allIn! and (state.rescan or all ((.done) >> (> 1)), values site)
151+
state.rescan = no
150152
Promise.all rebuild!
151153
.then ->
152-
state.rescan = no
153154
if args._.0 is \build and all (propEq \done, 4), values site
154155
process.exit 0
155156

@@ -181,6 +182,7 @@ rebuild = ->
181182
has \cpld
182183
propEq \done, 2
183184
|> map (x) ->
185+
x.done = 3
184186
layoutName = x.attr.layout or \system
185187
layout = values site
186188
|> find pathEq <[attr template]>, layoutName
@@ -194,7 +196,7 @@ rebuild = ->
194196
js: js
195197
}
196198

197-
.then writeOne
199+
.then writeOne x
198200
.then ->
199201
layout.done = 4
200202

0 commit comments

Comments
 (0)