Commits to master and PRs are automatically built and deployed by Netlify
- PRs should be generated against
master - Wait for
@codingblocks-botto deploy site and paste link of preview - Check preview. If all good, then only
PR -> mastermerge is made
# install dependencies
npm install
# build for production with minification
npm run build# minify src images
gulp compress
# clean tmp and dist
gulp clean.
βββ dist # Compiled files (auto deployed to master)
βββ gulp # Gulp tasks and config
βββ src # Source files
βββ ...
.
βββ ...
βββ gulp
β βββ tasks # Task.js files
β βββ config.js # Exports module for tasks config
βββ ...
.
βββ ...
βββ src
β βββ ...
β βββ assets # assets for the website
β β βββ fonts
β β βββ images
β β βββ scripts
β β βββ styles
| βββ data # Common JSON data for all pages
| βββ helpers # Handlebars helpers (js exporting a function in module)
| βββ partials # Handlebars partials (hbs template)
| βββ index.hbs # HBS template file
| βββ index.json # JSON file for the HBS (/src/index.hbs)
β βββ ...
βββ ...
Common JSON data for all pages
.
βββ ...
βββ src
β βββ ...
β βββ data
β β βββ bootcamps.json # Bootcamps data (price table and upcoming batches)
β β βββ courses.json # Courses data (price table and upcoming batches)
β β βββ footer.json # Footer imgSrc data
β β βββ navbar.json # Navbar imgSrc data
β β βββ reviews.json # All reviews data
β β βββ team.json # All team member's data
β βββ ...
βββ ...
Js files export modules with a single function.
.
βββ ...
βββ src
β βββ ...
β βββ helpers
β β βββ ifEquals.js # In-case Sensitive matching of a string
β β βββ relativePath.js # Generate relative path from two absolute path strings
β β βββ removeComma.js # Remove commas from a string
β βββ ...
βββ ...
Example:
module.exports = function (..., options) {
.
.
.
}
Handlebars Template files
.
βββ ...
βββ src
β βββ ...
β βββ partials
β β βββ bootcamps.hbs # Bootcamps section
β β βββ centerlocation.hbs # Center location & contact Box
β β βββ course.hbs # Course price box
β β βββ coursecontents.hbs # Course content section
β β βββ courseenroll.hbs # Upcoming batches and price box section
β β βββ coursefaq.hbs # Course Faq section
β β βββ coursehighlights.hbs # Course Highlights section
β β βββ courses.hbs # Courses section
β β βββ courseSchema.hbs # Course JSON-LD Schema
β β βββ footer.hbs # Footer container
β β βββ head.hbs # Site-wide head dependencies
β β βββ header.hbs # Page header section
β β βββ map.hbs # Contact form with map section
β β βββ meta.hbs # Meta & open graph tags
β β βββ navbar.hbs # Navbar section
β β βββ numbers.hbs # Numbers Speak Louder section
β β βββ overview.hbs # Course overview section
β β βββ readmoretestimonials.hbs # Read more reviews buttons section
β β βββ registration.hbs # Registration iframe section
β β βββ scripts.hbs # Site-wide body bottom JS dependencies
β β βββ slider.hbs # Slider section
β β βββ team.hbs # Team section
β β βββ teamMember.hbs # Team member box
β β βββ whatstudentssay.hbs # Reviews Section
β βββ ...
βββ ...