<commit_before>WebTemplate
=============

Basic web template to start a new page

The templates uses [Progressive Web App](https://developers.google.com/web/updates/2014/11/Support-for-installable-web-apps-with-webapp-manifest-in-chrome-38-for-Android) principles

SetingUp
---------------

Use a php server to run the project

Change the path of the project on manifest.json

```"start_path" : './'```


Development phase
---------------

All the web content than should be modified is located on **app** folder.

Any page (HTML or PHP) should be located on **app** root folder, thel **views** folder is used for templates or components used for php, angular, etc.


**Scripts and Style**

To compile less and js 

```gulp build```


Additionaly, run wath to compile a new .js or .css file each time there is a change on the affected filed.

```gulp watch```

For more information on tasks, open **gulpfile.js**


Distribution phase (publish)
---------------

To compile the distribution version of the site, on the root folder run in console:

```gulp build-all```

After this, all the content on 'dist' folder should be ready to directly copy into the server. In that version, php is compiled into .html, and *.js *.css and *.html are minified

**NOTE**

Some times it will be necessary to change manifest.json settings before run the code.


Technologies
---------------

- [Gulp](http://gulpjs.com/)
- [RequireJS](https://http://requirejs.org/)
- [jQuery](https://jquery.com/)
- [Waypoint](http://imakewebthings.com/waypoints/)
- [LESS](http://lesscss.org/)
- [KaleyStyleguide](https://github.com/thomasdavis/kaleistyleguide)


Autor
---------------<commit_msg>updat documentation<commit_after>WebTemplate
=============

Basic web template to start a new page

The templates uses [Progressive Web App](https://developers.google.com/web/updates/2014/11/Support-for-installable-web-apps-with-webapp-manifest-in-chrome-38-for-Android) principles

SetingUp
---------------

Use a php server to run the project

Change the path of the project on manifest.json

```"start_path" : './'```


Install [Nodejs](https://nodejs.org/en/) and [npm](https://www.npmjs.com/) with it in the computer.

On the project folder, install the node modules running:

```npm install```


Development phase
---------------

All the web content than should be modified is located on **app** folder.

Any page (HTML or PHP) should be located on **app** root folder, thel **views** folder is used for templates or components used for php, angular, etc.


**Scripts and Style**

To compile less and js files **once**, open the console in the project and run:

```gulp build```

To compile less and js files **each time we save a less file**, open the console in the project and run:

```gulp watch ```

For more information on tasks, open **gulpfile.js**


Distribution phase (publish)
---------------

To compile the distribution version of the site, on the root folder run in console:

```gulp build-all```

After this, all the content on 'dist' folder should be ready to directly copy into the server. In that version, php is compiled into .html, and *.js *.css and *.html are minified

**NOTE**

Some times it will be necessary to change manifest.json settings before run the code.


Styleguide
---------------

To access the styleguide, open the proyect on the browser and add '/styleguide' to the url

The Styleguide has been configurated to work with the less files from the proyect

If including styleguide folder, also add the less files 'src/less/*.less'


Technologies
---------------

- [jQuery](https://jquery.com/)
- [LESS](http://lesscss.org/)
- [KaleyStyleguide](https://github.com/thomasdavis/kaleistyleguide)
- [Waypoint](http://imakewebthings.com/waypoints/)
- [Gulp](http://gulpjs.com/)


Autor
---------------
{'fraction_non_alphanumeric': 0.15558475689881734, 'fraction_numerical': 0.004204993429697766, 'mean_word_length': 3.4153132250580045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1387896', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1086, 'n_words': 451}