feat(up): checkout and use helix-pages if no source scripts are present#946
feat(up): checkout and use helix-pages if no source scripts are present#946
Conversation
Codecov Report
@@ Coverage Diff @@
## master #946 +/- ##
==========================================
+ Coverage 91.55% 91.71% +0.16%
==========================================
Files 45 46 +1
Lines 1848 1908 +60
==========================================
+ Hits 1692 1750 +58
- Misses 156 158 +2
Continue to review full report at Codecov.
|
kptdobe
left a comment
There was a problem hiding this comment.
hummmm... why copying the whole helix-pages project as is ? I think this is weird...
Why dumping scrani.js especially if you do nothing with it...
I would simply create a default basic html.htl, html.pre.js and minimal style.css since this is the only thing you want to test for now.
do you mean in the tests? I want to be able to run the test offline: helix-cli/test/testUpCmdPages.js Lines 42 to 45 in 0c09cda
well, it's part of helix-pages at the moment.
ok. I remove it. |
0c09cda to
33a8b7c
Compare
There was a problem hiding this comment.
I think now it is worst... the code still contains scrani references in multiple places.
My point is more to the fact that we do not need so much code in this context. Your test only asserts that when there is no code in the project, some default code is provided and some rendering is executed. The "default code" provided does not need to be a copy of the current helix-pages project and could / should be something really basic to limit the amount of lines of code we introduce in the cli project. Really, this super long style.css do not bring any value here. Same for html_plain.htl, html_planing.pre.js...
| <meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
| <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> | ||
| <script src="https://d6uhzlpot4xwe.cloudfront.net/runtime/1.21/themes/wiper-fonts.gz.js"></script> | ||
| <script src="/scrani.js"></script> |
There was a problem hiding this comment.
| <script src="/scrani.js"></script> |
| <script src="/scrani.js"></script> | ||
| <script> | ||
| window.onload = function() { | ||
| scrani.onload(); |
There was a problem hiding this comment.
| scrani.onload(); |
ok ok .... |
|
@kptdobe I initially thought, that we could add more and more tests, to see if the html is rendered correctly. but now I think this should be done in the example project instead. but you're right. I remove the extra files. |
|
🎉 This PR is included in version 4.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #929