Basic web development setup for gulp projects using bootstrap, popper and jquery.
This build is currently up to date with gulps latests version and will not work with [email protected] due to breaking changes and major security updates please refer to the Official Gulp Website for more information on [email protected]
-
Before getting started please refer to the JSON Package section.
-
To get started please refer to the Quick Setup section.
Development must follow the package.json schema to import node_module dependencies to project library, this function has been integrated with gulps default task for simplicity.
If you decide to change the package.json schema make sure you include both "dependencies" and "devDependencies" to prevent errors from occurring while starting your server.
"dependencies": {
"bootstrap": "^4.4.1",
"@popperjs/core": "^2.3.3",
"jquery": "^3.5.0"
},
"devDependencies": {
"browser-sync": "^2.26.7",
"gulp": "^4.0.2",
"gulp-npm-dist": "^1.0.3",
"gulp-rename": "^1.4.0",
"gulp-replace": "^1.0.0",
"gulp-sass": "^4.0.2",
"pump": "^1.0.1"
}
To get started in under 5 minutes, just fork this repo and clone it locally
$ git clone https://github.com/YOURFORKEDPROJECT
change directories to your forked project and run the following command to install all the dependencies required for the gulp starter kit
npm install
Please run the following commands after all dependencies are downloaded
- Export scss & create style.css file
run ---> "gulp style"
- Export bootstrap scss & create bootstrap.css file
run ---> "gulp bootstrap"
- Export bootstrap JS & create bootstrap.js file
run ---> "gulp bootstrapJS"
- Export jquery JS & create jquery.js file
run ---> "gulp jquery"
- Export popper JS & create popper.js file
run ---> "gulp popper"
- Export node_modules dist to library (Currently set as default task)
run ---> "gulp"
- To start the server
run ---> "gulp watch"