Skip to content
Skeleton to create templates with gulp.
HTML JavaScript PHP CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
templates
.gitignore
CHANGELOG.md
LICENSE
README.md
docker-compose.yml
gulpfile-config.dist.json
gulpfile.js
js-lint.json
package-lock.json
package.json
scss-lint.json

README.md

Gulp Skeleton - InsanityMeetsHH

Demo page

Included

Required

Installation (Recommended)

$ git clone https://github.com/InsanityMeetsHH/gulp-templating.git [project-name]
$ cd [project-name]
$ rm -rf .git
$ npm i
$ gulp build

Change localServer in gulpfile-config.json to your local server.

Possible local servers (examples): http://imhh-gulp.localhost/ or http://localhost/imhh-gulp/public/.

Project Commands

Description
gulp watch files and start BrowserSync
gulp build executes following tasks: cleanUp, scss, js, scssLint, jsLint, img, font, svg
gulp cleanUp clean up public folder
gulp font copy font
gulp img compress/copy img
gulp js uglify/minify/concat js
gulp jsLint checks js follows lint rules
gulp scss compile/minify/concat scss
gulp scssLint checks scss follows lint rules
gulp svg compress/copy svg
gulp watch watch scss, js, img, font and svg files

Installation with Docker

  • Get this project via $ git clone or zip download
  • Open a command prompt on your OS (if not already open) and navigate to the project folder
  • $ npm i
  • $ gulp build
  • $ docker-compose up -d
  • Open localhost:8080 for website
  • If you want to remove a container $ docker rm [container-name] -f e.g. $ docker rm gulp-skeleton -f
  • If you want to remove a volume $ docker volume rm [volume-name] e.g. $ docker volume rm imhh-gulp_logs (first remove matching container)
  • If you want to remove all container $ docker rm $(docker ps -a -q) -f
  • If you want to remove all volumes $ docker volume prune (first remove all container)

Links

You can’t perform that action at this time.