This project is based on a simple and fast workflow focused mainly on the front-end task. It gives a solid starting point for newcomers who wants a ready-to-deploy local environment setup. The sources used to build this project includes:
-
Dynamic Configuration: Choose your preferred markup (Pug/HTML), stylesheet (Sass/SCSS/CSS), and script (JavaScript/TypeScript) languages, and the tool will generate a customized Gulpfile for you.
-
Beginner-Friendly: Ideal for those new to web development who want to experiment with real-world tools and workflows.
-
Extensible: Start simple, and gradually explore more advanced features as you become comfortable.
-
Minimal Setup: Get up and running quickly without the need for complex configuration.
-
Realistic Environment: Experience coding outside of online IDEs, and start using Git or other tools as you grow your skills.
-
Bonus: you can add Josh Comeau css reset and Necolas css normalize
Before you begin, ensure you have the following installed on your system:
- Node.js (v14 or later)
- npm (comes with Node.js) or Yarn
Using npm:
npm install
Or using Yarn:
yarn install
To start the development server with live reloading:
yarn start
Or
npm start
This will run the gulp
command, which starts a local server and watches for file changes.
To create a production-ready build:
yarn build
Or
npm build
This will generate optimized files in the dist
directory.
This task will open the browser window usually with the URL http://localhost:3000/. Any saved changes made to the project files, will reflect automatically over the browser.
.
├── src/ # ** Your code folder! **
│ ├── img/ # Image files
│ ├── js/ # JS/TS files
│ ├── styles/ # Sass/SCSS files
│ └── templates/ # Pug/HTML files
│
├── _gulp/ # Gulp configuration and tasks
├── dist/ # Production build output
├── gulpfile.js # Gulp entry point
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
The src/ directory is created after the Yarn or npm install, this is where your code journey begins. The dist/ and build/ folders can be used to host your web project in a simple and convenient way. there are a lot of options to host it, including Github Pages
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
For more detailed information about the gulp tasks and project configuration, please refer to the comments in the gulpfile.js
and the files in the _gulp
directory.