This is a bare bones starting point for creating quick, simple web projects with vanilla CSS and JavaScript. It is a local development alternative to CodePen.
- Live reloading with Browsersync
Change the working directory to the location you want the cloned directory to be made.
cd <path>
Clone the repo with HTTPS URLs.
git clone https://github.com/eunicode/boilerplate-gulp-basic.git <yourNewRepoName>
Or clone with SSH URLs.
git clone [email protected]:eunicode/boilerplate-gulp-basic.git <yourNewRepoName>
Then change directories to your new project.
cd <yourNewRepoName>
And remove the .git
subdirectory.
Then re-initialize the directory as a Git repository.
rm -rf .git
git init
Add/stage the files in your new repo.
Then commit the files.
git add .
git commit -m ":tada: Bootstrap project from boilerplate"
Create a new repo on GitHub. See more detailed instructions on adding an existing project to GitHub here. To avoid errors, do not initialize the new repo with README, license, or gitignore files.
Copy the remote repo URL, then configure the remote repo for your local repo.
git remote add origin https://github.com/username/yourNewRepoName.git
Push the changes in your local repo to GitHub.
git push -u origin master
yourNewRepoName
├── README.md
├── LICENSE
├── notes.md
├── node_modules
├── package.json
├── .gitignore
└── app
├── css
│ └── style.css
├── js
│ └── script.js
└── index.html
Install dependencies
npm install
Inside the newly created project, run gulp
to start the live reloading Browsersync server.
gulp
To deploy the project on GitHub Pages, run
npm run deploy