Giter Site home page Giter Site logo

movable's Introduction

What is Gulp?

Gulp is a build system. That is, it is a tool that is used to take a bunch of resources (such as HTML, JavaScript, CSS files, etc), perform some processing on them, and get them prepped for production.

What does this project do?

Lots. But for now, we'll use it to compile any content it finds in the src directory, move it to the dest directory, and serve it from there.

Primarily, right now, you'll be using this so you can get access to SCSS.

How do you use it?

First, make an empty clone of this repo:

  1. Pull it down (run this in Terminal):

    git clone [email protected]:tiy-durham-fe-2015/gulp-lite.git

  2. Rename the gulp-lite directory to whatever your project name will be

    mv gulp-lite my-project-name

  3. cd into the new directory

    cd my-project-name rm -rf .git git init git add . git commit -m "Initial checkin"

Next install dependencies

Next, you'll need to make sure that gulp and all it's dependencies are installed. From the terminal:

npm install

Note, if this errors, you may need to install Node. You can do that here: http://nodejs.org/download/

Finally, run gulp

It's pretty simple. In the Terminal, in your project directory, run:

gulp

If all works as expected, you should see something like this in your terminal:

[20:16:52] Using gulpfile ~/src/my-proj/gulpfile.js
[20:16:52] Starting 'watch'...
[20:16:52] Finished 'watch' after 6.62 ms
[20:16:52] Starting 'default'...
[20:16:52] Finished 'default' after 14 ms
[20:16:52] Server started http://localhost:8000
[20:16:52] LiveReload started on port 35729

So, you should be able to go here in Chrome:

http://localhost:8000

Now, when you edit and save index.html, or the css files, etc, chrome should automatically refresh. Purty cewl.

movable's People

Contributors

hifilorau avatar

Watchers

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