<commit_before>.. _installation:

Installation
=============

This section covers the installation of Python LiveReload and other
essentials to make LiveReload available.

LiveReload contains two parts, the client side and the server side.
Client means the browser, it listens to the server's signal, and refreshs
your browser when catching the proper signals.

Install Browser Extensions
----------------------------

A browser extension is not required, you can insert a script into your
html page manually::

    <script type="text/javascript" src="http://127.0.0.1:35729/livereload.js"></script>

But a browser extension will make your life easier, available extensions:

+ Chrome Extension
+ Safari Extension
+ Firefox Extension

Visit: http://help.livereload.com/kb/general-use/browser-extensions


Distribute & Pip
-----------------

Installing Python LiveReload is simple with pip::

    $ pip install livereload

If you don't have pip installed, try easy_install::

    $ easy_install livereload


Enhancement
------------

Python LiveReload is designed to do some complex tasks like compiling.
The package itself has provided some useful compilers for you. But
you need to install them first.

Get Lesscss
~~~~~~~~~~~~

Lesscss_ is a dynamic stylesheet language that makes css more elegent.

Install less with npm::

    $ npm install less -g

Get UglifyJS
~~~~~~~~~~~~

UglifyJS_ is a popular JavaScript parser/compressor/beautifier.

Install UglifyJS with npm::

    $ npm install uglify-js -g


Get slimmer
~~~~~~~~~~~~

Slimmer is a python library that compressing css, JavaScript, and
html.

Install slimmer::

    $ pip install slimmer

.. _Lesscss: http://lesscss.org
.. _UglifyJs: https://github.com/mishoo/UglifyJS


Get Notification
~~~~~~~~~~~~~~~~~

If you are on Mac, and you are a Growl user::

    $ pip install gntp

If you are on Ubuntu, you don't need to do anything. Notification just works.<commit_msg>no notification now<commit_after>.. _installation:

Installation
=============

This section covers the installation of Python LiveReload and other
essentials to make LiveReload available.

LiveReload contains two parts, the client side and the server side.
Client means the browser, it listens to the server's signal, and refreshs
your browser when catching the proper signals.

Install Browser Extensions
----------------------------

A browser extension is not required, you can insert a script into your
html page manually::

    <script type="text/javascript" src="http://127.0.0.1:35729/livereload.js"></script>

But a browser extension will make your life easier, available extensions:

+ Chrome Extension
+ Safari Extension
+ Firefox Extension

Visit: http://help.livereload.com/kb/general-use/browser-extensions


Distribute & Pip
-----------------

Installing Python LiveReload is simple with pip::

    $ pip install livereload

If you don't have pip installed, try easy_install::

    $ easy_install livereload


Enhancement
------------

Python LiveReload is designed to do some complex tasks like compiling.
The package itself has provided some useful compilers for you. But
you need to install them first.

Get Lesscss
~~~~~~~~~~~~

Lesscss_ is a dynamic stylesheet language that makes css more elegent.

Install less with npm::

    $ npm install less -g

Get UglifyJS
~~~~~~~~~~~~

UglifyJS_ is a popular JavaScript parser/compressor/beautifier.

Install UglifyJS with npm::

    $ npm install uglify-js -g


Get slimmer
~~~~~~~~~~~~

Slimmer is a python library that compressing css, JavaScript, and
html.

Install slimmer::

    $ pip install slimmer

.. _Lesscss: http://lesscss.org
.. _UglifyJs: https://github.com/mishoo/UglifyJS
{'fraction_non_alphanumeric': 0.1186532717893022, 'fraction_numerical': 0.005973391257127342, 'mean_word_length': 3.628140703517588, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1151287', 'n_tokens_mistral': 1054, 'n_tokens_neox': 982, 'n_words': 429}