Code Monkey home page Code Monkey logo

gulp-starter-kit's Introduction

gulp-starter-kit

This repository provides a foundation for your web development projects using Gulp, simplifying your build process and streamlining tasks.

Features

  • Automate common tasks: Effortlessly compile SCSS/CSS, minify JavaScript/CSS, optimize images, and more.
  • Streamlined development: Enjoy live reloading and file watching to see changes instantly.
  • Production-ready builds: Generate minified and optimized files for performance in deployment.
  • Organized structure: Benefit from a well-structured project layout with reusable components.
  • Customization: Adapt and expand the Gulpfile to suit your specific project needs.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:9050:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Project Structure:

your-project-name/
├── src/
│   ├── components/
│   │   ├── meta/
│   │   │   └── index.html
│   │   ├── footer.html
│   │   └── header.html
│   ├── css/
│   │   ├── parts/
│   │   │   ├── _footer.scss
│   │   │   └── _header.scss
│   │   ├── _buttons.scss
│   │   ├── _fonts.scss
│   │   ├── _main.scss
│   │   ├── _variables.scss
│   │   └── style.scss
│   ├── fonts/
│   │   └── your-fonts.woff
│   ├── images/
│   │   └── your-images.png
│   ├── js/
│   │   └── main.js
│   ├── third-party/
│   │   └── third-party files
│   └── index.html
├── .gitignore
├── config.js
├── gulpfile.js
├── package.json
├── postcss.config.js
└── README.md
  • src: Contains your source code.
    • components: Reusable UI components, including meta header, footer, header, and mobile menu.
    • css: SASS stylesheets organized by purpose (_variables, _buttons, etc.) and individual components.
    • fonts: Custom fonts used in your project.
    • images: Images used in your project.
    • js: JavaScript files, with main.js as the entry point.
    • third-party: Third-party libraries or dependencies.
    • index.html: Main HTML file, potentially importing your components.
  • .gitignore: Specifies files to be excluded from version control.
  • config.js: Stores various configuration options used throughout the project.
  • gulpfile.js: The heart of the build process, defining tasks for compilation, minification, and other automation.
  • package.json: Lists project dependencies and scripts.
  • postcss.config.js: Configuration for PostCSS, used for processing CSS with plugins.
  • README.md: This file, containing documentation and instructions.

Customization:

Feel free to modify the scripts, tasks, and configurations in the gulpfile.js and config.js files to match your project's requirements. Add new components, adjust Sass and JavaScript settings, or modify any other configurations as needed.

For more information on Gulp and its plugins, refer to the official documentation: Gulp js. Also this repo is inspired by lazymozek/gulp-with-tailwindcss and incorporates its concepts with additional features.

gulp-starter-kit's People

Contributors

softxengineer avatar

Stargazers

 avatar Vishal Suryavanshi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.