Skip to content

Commit b5a0890

Browse files
author
Iļja Ketris
committed
bug fix
1 parent 9cc4bca commit b5a0890

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

bin/main.js

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

package-lock.json

Lines changed: 1 addition & 6 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.71",
3+
"version": "0.1.72",
44
"description": "Static site generator",
55
"engines": {
66
"node": ">=13.5"

source/main.ls

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ allDone = ->
6666
writeOne = (x, compiled) -->
6767
mkdirp Path.dirname x.outfile
6868
.then ->
69+
x.done = 3
6970
fs.writeFile x.outfile, compiled
7071
.then ->
7172
log '→', x.outfile.magenta
@@ -133,8 +134,6 @@ processFile = (hsh) ->
133134
x <<< {outfile, body, dst, attr, link, src}
134135

135136
Promise.resolve switch
136-
| not x.attr
137-
x.done = 4
138137
| x.attr.template
139138
x.done = 1.5
140139
log 'template'.red, x.infile.blue
@@ -195,7 +194,7 @@ rebuild = ->
195194
js: js
196195
}
197196

198-
.then writeOne x
197+
.then writeOne
199198
.then ->
200199
layout.done = 4
201200

0 commit comments

Comments
 (0)