<commit_before>CSS on Sails Framework
======================

CSS on Sails Framework is a simple and flexible framework used as the foundation for XHTMLized projects in 2010 - 2014. It's soon to be replaced with more flexible solution.

In the meanwhile, this is a new, open source version of the framework with some additional improvements.

## Editorconfig

.editorconfig file helps to define consistent coding style. More at [editorconfig.org](http://editorconfig.org/)

## Grunt tasks

The framework is not dependent on Grunt but the following [Grunt](http://gruntjs.com/) tasks are available to make your work easier and to improve its quality:

* `jsbeautifier` - HTML / JS beautification of HTML files and main.js
* `cssbeautifier` - beautification of main.css
* `validation` - HTML validation
* `jshint` - Checking main.js code with JSHint

## Usage

CSS on Sails Framework and X-Setup works like before and as described at docs.cssonsails.org. To take advantage of the available Grunt tasks do the following:


1. Install [node.js](http://nodejs.org) (skip if you have it installed already)

2. Install Grunt from the command line (skip if you have it installed already)

        npm install -g grunt-cli

3. Install node packages (while in root project folder):

        npm install<commit_msg>Linking to XH Generator<commit_after>CSS on Sails Framework
======================

CSS on Sails Framework was a simple and flexible framework used as the foundation for XHTMLized projects in 2010 - 2013. It's now replaced with [XH Generator](https://github.com/xhtmlized/generator-xh).

## Editorconfig

.editorconfig file helps to define consistent coding style. More at [editorconfig.org](http://editorconfig.org/)

## Grunt tasks

The framework is not dependent on Grunt but the following [Grunt](http://gruntjs.com/) tasks are available to make your work easier and to improve its quality:

* `jsbeautifier` - HTML / JS beautification of HTML files and main.js
* `cssbeautifier` - beautification of main.css
* `validation` - HTML validation
* `jshint` - Checking main.js code with JSHint

## Usage

CSS on Sails Framework and X-Setup works like before and as described at docs.cssonsails.org. To take advantage of the available Grunt tasks do the following:


1. Install [node.js](http://nodejs.org) (skip if you have it installed already)

2. Install Grunt from the command line (skip if you have it installed already)

        npm install -g grunt-cli

3. Install node packages (while in root project folder):

        npm install
{'fraction_non_alphanumeric': 0.08658008658008658, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 4.104417670682731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4342786', 'n_tokens_mistral': 709, 'n_tokens_neox': 664, 'n_words': 332}