-
git clone https://github.com/jamesjsewell/basic_browser_sync.git your_project_name
change your_project_name to the actual name of the project -
cd your_project_name
-
git remote remove origin
-
create a new github repository for your project, take the .git url of the new repository and use it in this command
git remote add origin https://github.com/jamesjsewell/your_project_name.git
again, ^ that github link is just a placeholder, use the link from your new repo -
git add .
-
git commit -m "your commit message"
-
git push origin master
npm install
npm run start
if you decide to use this example for your project, and you need more than just a basic webpage, or you want to use a different folder structure:
you'll need to edit the browser_sync_config.js
file. It's commented to make it easier to understand how it works.
Basically just add and edit paths so that browser-sync will watch the files that you need it to watch. Also you may want to go to the bottom of the file and change the path that the server is using.