-
Notifications
You must be signed in to change notification settings - Fork 43
Check 06 build page
Description of the cross-check process 06-build-page:
Video with the example of cross-check
-
Check the code for the presence of synchronous methods of the fs module (you can use the
ctrl/cmd + fkey combination and enterSyncin the search field that appears) and setTimeout().
If synchronous methods or a timer are used, the task is considered not completed - 0 points. -
Check the
index.jsfile for the presence of the experimental function fsPromises.cp().
If this function is used, the task is considered not completed - 0 points. -
In the root directory of the repository, execute the command
node 06-build-page. -
After the script terminates its execution, a
project-distfolder should be created in the06-build-pagedirectory, containing theindex.htmlandstyle.cssfiles, as well as theassetsfolder.
If this does not happen, the task is considered not completed - 0 points. -
Ensure that the
index.htmlfile contains markup from thetemplate.htmlfile with the replacement of template tags with the markup of similarly named component files from thecomponentsfolder. The markup of component files should be strictly in the places corresponding to the template tags. There should be no template tags themselves in theindex.htmlfile.
If this is not the case, the task is considered not completed - 0 points. -
Check the
style.cssfile for the correct assembly of styles from thestylesfolder. Similar to the task 05-merge-styles, styles should maintain formatting and not interfere with each other.
If the styles are assembled incorrectly, the task is considered not completed - 0 points.Note that when using liveServer, you may notice minor styling issues in the footer. This case is not considered an error.
-
Open the
assetsfolder. Ensure that its content and the content of subfolders inside it exactly match the content of theassetsfolder in06-build-page/assets.
If this is not the case, the task is considered not completed - 0 points. -
Add the test files from the
test-filesfolder to the project:-
06-build-page/test-files/components/about.html->06-build-page/components/about.html -
06-build-page/test-files/images/squirrel-2.jpg->06-build-page/assets/img/squirrel-2.jpg -
06-build-page/test-files/styles/about.css->06-build-page/styles/about.css
Don't forget to specify the new template tag in the
template.htmlfile. Then, repeat steps 3-7. -
If all points are successfully checked, 50 points are awarded for the task.