Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Gulp starter with pug/scss/webpack/svg sprites and dashboard for html pages
Gulp Starter is a Gulp-based boilerplate for building static HTML sites with Pug templates, SCSS styles, and Webpack-bundled JavaScript, complete with SVG sprite generation and a live-reload development server. The repository is described as a "gulp starter with pug/scss/webpack/svg sprites and dashboard for html pages" and runs on Node.js, using npm or yarn for dependency management.
Gulp Starter is a preconfigured Gulp workflow that takes source files from a ./src folder and outputs a production-ready ./build folder. It provides a default gulp task that performs an initial build, watches for file changes, and serves the site with BrowserSync live reload, while the gulp build task produces an optimized production build. The starter includes separate Gulp task files in ./gulp/tasks, with each task running independently or with a :watch suffix for continuous rebuilding.
sass, webpack, copy, pug, svgo, iconfont, sprite:svg, sprite:png, server, clean, and list-pages, each runnable via gulp [task_name].--open (open browser) and --tunnel (share via localtunnel.me).npm run start (same as gulp default), npm run build (same as gulp build), npm run ghpages (push ./build to a gh-pages branch), plus lint and lint-fix for ESLint.npm run ghpages to push only the ./build folder to a gh-pages branch and share a public preview URL.list-pages task to generate an index file with links to all project pages.Clone the repository, then run npm install or yarn to install dependencies. Run gulp to start the default task, which builds the project, watches sources, and serves the site with live reload; alternatively, run gulp build for a production build. For individual tasks, type gulp [task_name], and most tasks can be run continuously with gulp [task_name]:watch. Use gulp --open to auto-open the browser or gulp --tunnel [name] to expose the local site at [name].localtunnel.me.
Gulp Starter primarily uses Pug for HTML templating, but the Gulp setup also lists Jade, Nunjucks, and Swig as alternatives. Only one template engine is used per project, and the available tasks are defined as separate files in ./gulp/tasks.
Run the default gulp task, which starts a BrowserSync server with live reload. Add the --open flag to automatically open the preview in your browser, or use --tunnel [name] to share the site publicly via localtunnel.me.
gulp and gulp build?The default gulp task builds the project in development mode, watches files for changes, and runs a live-reload server. gulp build (or npm run build) creates a production-ready build with code optimizations such as minification, and it is the equivalent of running gulp build:dev followed by production settings.
Yes, the repository provides npm scripts: npm run start for the default development task, npm run build for production builds, npm run ghpages to push the ./build folder to a gh-pages branch, and npm run lint / npm run lint-fix for ESLint checks.
Yes, the installation step explicitly supports both npm install and yarn, so either package manager can be used.
