4.2.0 • Published 5 years ago
gulp-skeleton v4.2.0
Gulp Templating - InsanityMeetsHH
Included
Required
- Node.js
- npm
$ npm i npm@latest -g
- gulp-cli
$ npm i gulp-cli@latest -g
- PHP => 5.3
- Docker (for installation with Docker)
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.js 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-templating -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)