The template is built with Sass and Gulp build system with these features:
Handlebars HTML templates with Panini – a super simple flat file generator for use with Gulp. It compiles a series of HTML pages using a common layout. These pages can also include HTML partials, external Handlebars helpers, or external data as JSON or YAML.
Sass compilation, prefixing with autoprefixer, and javaScript concatenation
Built-in BrowserSync server - will automatically reload your page when files are changed. It also live-injects CSS changes when you save a Sass file. This task runs continuously and defaults to localhost.
For production builds - CSS compression, JavaScript compression, Image compression and more.
To create compressed, production-ready assets run gulp production. This will delete everything in the dist folder and recreate all of your complied files. Never make updates directly into the dist folder as these files get overridden each time.
Folder Structure:
dist/ - compiled distribution files
node_modules - front-end dependencies
src/ - contains all of your core, working files—static assets, pages, templates, etc
src/assets/ - scss files, JS files, images, and fonts
src/data/ - external data (JSON or YAML)
src/layouts/ - HTML layouts templates
src/pages/ - site pages
src/partials/ - handlebars partials files.
gulpfile.js - all task definitions
package.json - handles the project dependencies
.htmllintrc - handles the HTML lint rules
.sass-lint.yml - handles the SCSS lint rules
reports - txt generated file for accessibility issues
请发表评论