Go to file
Ray Elliott acad81485b remove file 2020-06-19 12:54:42 +03:00
src update 2020-06-06 18:52:10 +00:00
.browserslistrc restructure directory structure 2020-05-01 15:30:14 +01:00
.eslintignore restructure directory structure 2020-05-01 15:30:14 +01:00
.eslintrc.js restructure directory structure 2020-05-01 15:30:14 +01:00
.gitignore update 2020-05-29 15:05:45 +00:00
.prettierrc Update '.prettierrc' 2020-05-15 21:41:38 +03:00
README.md Update 'README.md' 2020-05-20 20:16:25 +03:00
babel.config.js restructure directory structure 2020-05-01 15:30:14 +01:00
gulpfile.js add project files 2020-05-28 17:50:03 +00:00
package-lock.json add project files 2020-05-28 17:50:03 +00:00
package.json move dependencies to devDependencies 2020-05-21 15:22:25 +01:00
tagscan-external.sh add scripts to scan tags 2020-05-29 15:04:42 +00:00
tagscan.sh add scripts to scan tags 2020-05-29 15:04:42 +00:00
yarn.lock remove modern-css-reset 2020-05-20 19:12:13 +01:00

README.md

Features

  • JS transpilation, minification with Babel, Terser.
  • SASS compilation, css minification.
  • HTML file includes.
  • Mustache templating
  • SVG optimisation.
  • BrowserSync.

TODO

  • Image optomisation.

Usage

Build Directory

Default build directory is ./build. To change edit gulpfile.js.

HTML File Includes

Uses gulp-file-include - npm.

Include file with:

@@include('./logo.svg')

Files are relative to the include directory: src/includes/.

Mustache Templates

Include a template with:

{{> templates/example}}

Templates are relative to the HTML file and the .mustache extension must be ommitted.