Skip to content

Instantly share code, notes, and snippets.

@ahmadshah
Last active August 29, 2015 13:56
Show Gist options
  • Save ahmadshah/9346821 to your computer and use it in GitHub Desktop.
Save ahmadshah/9346821 to your computer and use it in GitHub Desktop.
Development Automation Tools

Development Automation Tools

Installing Node.js and NPM

Windows

If you are not sure whether you already have running try this

  • Open up your command prompt
  • type node --version and you will see the current node version
  • type npm --version and you will see the current npm version

If you cannot see any versions follow the installation below:

  • Download the .msi installer from [http://nodejs.org/](node.js page)
  • Run the downloaded installer and follow the instructions
  • Restart your machine

Browsersync

Installation

Once you alredy have Node.js and NPM running you can easily installed NPM packages available on the net. Browsersync helps to automate cross browser and responsive testing. http://www.browsersync.io/

  • Open up your command prompt
  • Run npm install -g browser-sync command and wait for the installation to finish. Specifying -g will tell NPM to install the package globally so it can accessible from all your projects.

Usage

  • Open up your command prompt
  • Navigate to your project directory
  • Run browser-sync --server --files "css/*.css" "*.html"
  • Make sure your other devices are connected using the same network
  • Open using the IP address provided to view the pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment