minimalknave127 / GS-GULP_TEMPLATE

Template for GulpJS project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--- COMMANDS ---

gulp - compile all files and serve web gulp serve - serve without compiling

Add your files to src folder

Add your images and svg to assets/compress folder

To import files use @@webRoot instead of ./

Example:

-- WRONG --

<script src="/js/main.js"></script>

-- CORRECT --

<script src="@@webRoot/js/main.js"></script>

--_COMPONENTS---

Store components (header, footer, etc..) inside src/components folder

Import of _header.html and _footer.html from src/components folder to index.html:

<script src="@@webRoot/js/main.js"></script> @@include("_header.html"):

@@include("_footer.html"): # GS-GULP_TEMPLATE

About

Template for GulpJS project


Languages

Language:JavaScript 79.7%Language:HTML 16.4%Language:SCSS 3.9%