-
Notifications
You must be signed in to change notification settings - Fork 30
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 + f
key combination and enterSync
in 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.js
file 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-dist
folder should be created in the06-build-page
directory, containing theindex.html
andstyle.css
files, as well as theassets
folder.
If this does not happen, the task is considered not completed - 0 points. -
Ensure that the
index.html
file contains markup from thetemplate.html
file with the replacement of template tags with the markup of similarly named component files from thecomponents
folder. 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.html
file.
If this is not the case, the task is considered not completed - 0 points. -
Check the
style.css
file for the correct assembly of styles from thestyles
folder. 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
assets
folder. Ensure that its content and the content of subfolders inside it exactly match the content of theassets
folder 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-files
folder 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.html
file. Then, repeat steps 3-7. -
If all points are successfully checked, 50 points are awarded for the task.