Code Monkey home page Code Monkey logo

boilerplate-gulp-basic's Introduction

Basic Gulp Boilerplate

Description

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.

Features

  • Live reloading with Browsersync

Getting started

Creating a project

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"

Adding repo to GitHub

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

Directory structure

yourNewRepoName
├── README.md
├── LICENSE
├── notes.md
├── node_modules
├── package.json
├── .gitignore
└── app
    ├── css
    │   └── style.css
    ├── js
    │   └── script.js
    └── index.html

Installation

Install dependencies

npm install

Development

Inside the newly created project, run gulp to start the live reloading Browsersync server.

gulp

Deploy

To deploy the project on GitHub Pages, run

npm run deploy

boilerplate-gulp-basic's People

Contributors

eunicode 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.