project-root/
│
├── assets/
│ ├── img/
│ ├── css/
│ ├── fonts/
│ ├── js/
│ │ └── app.js
│ └── scss/
│ ├── base/
│ │ ├── _base.scss
│ │ ├── _settings.scss
│ │ ├── _tools.scss
│ │ ├── _reset.scss
│ │ └── _fonts.scss
│ ├── blocks/
│ │ ├── _blocks.scss
│ │ ├── _header.scss
│ │ ├── _main.scss
│ │ ├── _footer.scss
│ │ └── _page.scss
│ └── style.scss
│
├── gulpfile.js
└── index.html
- Node.js (version 14+ recommended)
- npm or Yarn
- Clone the repository
git clone <repository-url>
- Install dependencies
npm install
# or
yarn install
Run the development server:
npm run dev
# or
yarn dev
Create production build:
npm run build
# or
yarn build
base/
: Global settings, variables, mixins_settings.scss
: Project-wide variables and config_tools.scss
: Mixins and functions_reset.scss
: CSS reset styles_fonts.scss
: Font declarations
blocks/
: Component-specific styles- Modular SCSS files for different page components
assets/js/app.js
: Main JavaScript entry point
- Semantic HTML5 structure
- BEM-like class naming convention
- Responsive meta viewport tag
- Gulp-based build system
- SCSS preprocessing
- Modular CSS architecture
- Responsive design preparation
Start a local development server with live reload:
npm run dev
# or
yarn dev
Generate a minified CSS build:
npm run build
# or
yarn build
Gulp Tasks
-
Clean Output Directory Deletes the assets/css/ folder to ensure a fresh build -
gulp reset
-
Compile SCSS Processes SCSS files into CSS, applies auto-prefixing, and minifies the output -
gulp scss
-
Start Local Server Runs a live-reloading development server using BrowserSync -
gulp server
-
Watch Files Monitors changes in SCSS files and automatically recompiles them -
gulp watcher
-
Development Workflow Combines all tasks for development (clean, compile SCSS, watch files, and start server)-
gulp
-
Production Workflow Builds the project for production (clean and compile SCSS) -
gulp build
- PHPStorm, Zed or Visual Studio Code
- Sass/SCSS language support
- ESLint
- Prettier
- Ensure all dependencies are installed correctly
- Check Node.js and npm versions
- Verify Gulp CLI is installed globally