Introduction
Gulp Starter Kit is a comprehensive toolset for front-end developers, designed to streamline web development workflows. This kit integrates popular technologies like SCSS, Eleventy, Nunjucks, rollup.js, and Babel, providing a solid foundation for building modern web projects. It's framework-agnostic, allowing developers to use their preferred front-end frameworks while benefiting from a robust build process and development environment.
Main Features
- Framework independence - compatible with various front-end frameworks
- SCSS support for advanced CSS preprocessing
- Performance optimization through minification and concatenation of assets
- ES6+ support via Babel with automatic polyfilling
- Code quality tools: Linting for CSS, SCSS, and JavaScript
- Multiple template language support (Nunjucks, Markdown, Liquid, etc.)
- Built-in HTTP server for local development
- Live Browser Reloading for instant feedback
- Cross-device Synchronization powered by BrowserSync
- Eleventy integration for static site generation
Installation Steps
Ensure you have Node.js 12 or newer installed.
Install Gulp 4 globally if you haven't already:
npm install -g gulp
Clone the repository:
git clone https://github.com/nstungcom/gulp-starter-kit.git my-project/
Navigate to the project directory:
cd my-project
Install dependencies:
npm install
Usage Instructions
Start development server:
npm start
or
npm run dev
Build for production:
npm run build
Clean up generated files:
npm run clean
Customize your project:
- Modify SCSS files in the
src/scss
directory - Edit JavaScript in the
src/js
directory - Create templates using Nunjucks or other supported languages in the
src/templates
directory - Configure build settings in
gulpfile.js
andconfig.js
- Modify SCSS files in the
Use Eleventy for static site generation:
- Refer to the Eleventy documentation for advanced usage
- Customize the Eleventy configuration in
.eleventy.js
Leverage linting tools:
- CSS/SCSS linting with stylelint
- JavaScript linting with ESLint
Important Notes
The kit is designed to work with Node.js version 12 or newer.
Gulp 4 is required for this starter kit to function properly.
The project uses Babel for ES6+ support, ensuring wide browser compatibility.
BrowserSync is integrated for cross-device testing and synchronized browsing.
The kit supports multiple template languages through Eleventy, offering flexibility in choosing your preferred syntax.
Performance optimization is built-in, including minification and concatenation of assets.
The project structure is organized for clarity, with source files in the
src
directory.Customization options are available through configuration files like
config.js
and.eleventy.js
.For specific front-end framework integration, refer to the project's recipes documentation.
Regular updates and maintenance are recommended to keep dependencies current and ensure compatibility with the latest web development standards.