<commit_before># Webpack 2.x by sample

Learn webpack by sample, each of the samples contains a readme.md file that
indicates the purpose of the sample plus an step by step guide to reproduce it.

The Lemoncode Frontend Master Students are working on a review process, if you want to cooperate in this process or add more useful samples don't hesitate to contact us, fork the project and asking for PR once ready.

# Demos

## 00 Intro

### 00 Boilerplate

In this sample we are going to setup a web project that can be easily managed
by webpack.

We will setup an initial npm project, give support to ES6, and install webpack.

We will create a hellword.js sample.

Summary steps:
 - Intialize package.json (npm init)
 - Create a simple HTML file.

### 01 Import

In this sample we are going to start working with es6 modules (import).

We will start from sample _00 Intro/00 Boilerplate_ and add a new JavaScript that will
hold a simple algorithm to calculate the average of an score array.

We will use this JavaScript array into the main students.js file by importing
it.

Summary steps:
 - Add a new file averageService.js
 - Add an array on students.js
 - Import averageService into students.js
 - Use the averageService inside the students.js code.
 - Transpile and test on index.html


### 02 Server

In this sample we are going to enter into "dev mode". Working with files service
is not ideal when you are developing a web application, we will learn how to launch
a lite web server, how deploy our bundle into a dist folder (including index.html)
, how to debug our es6 code directly into the browser debugger and minify
our bundle.js.

We will start from sample _00 Intro/01 Import_, install `webpack-dev-server`, setup our config
to deploy on config folder and support maps (debug), then we will minify
our bundle.js file via webpack cli params.

Summary steps:
 - Install via npm webpack-dev-server.
 - Execute webpack-dev-server with live reload.
 - Add start command to package.json.

<commit_msg>Modify root README summary according to the reviewed 00 Intro / 01 Import readme<commit_after># Webpack 2.x by sample

Learn webpack by sample, each of the samples contains a readme.md file that
indicates the purpose of the sample plus an step by step guide to reproduce it.

The Lemoncode Frontend Master Students are working on a review process, if you want to cooperate in this process or add more useful samples don't hesitate to contact us, fork the project and asking for PR once ready.

# Demos

## 00 Intro

### 00 Boilerplate

In this sample we are going to setup a web project that can be easily managed
by webpack.

We will setup an initial npm project, give support to ES6, and install webpack.

We will create a hellword.js sample.

Summary steps:
 - Intialize package.json (npm init)
 - Create a simple HTML file.

### 01 Import

In this sample we are going to start working with ES6 modules (import).

We will start from sample _00 Intro/00 Boilerplate_ and add a new JavaScript service that will
hold a simple algorithm to calculate the average of an score array.

We will use this JavaScript array into the main students.js file by importing
it.

Summary steps:
 - Add a new file `averageService.js`
 - Add an array on `students.js`
 - Import averageService into `students.js`
 - Use the averageService features inside the `students.js` code.
 - Transpile and test on `index.html`


### 02 Server

In this sample we are going to enter into "dev mode". Working with files service
is not ideal when you are developing a web application, we will learn how to launch
a lite web server, how deploy our bundle into a dist folder (including index.html)
, how to debug our es6 code directly into the browser debugger and minify
our bundle.js.

We will start from sample _00 Intro/01 Import_, install `webpack-dev-server`, setup our config
to deploy on config folder and support maps (debug), then we will minify
our bundle.js file via webpack cli params.

Summary steps:
 - Install via npm webpack-dev-server.
 - Execute webpack-dev-server with live reload.
 - Add start command to package.json.


{'fraction_non_alphanumeric': 0.046867411364740166, 'fraction_numerical': 0.010684798445847498, 'mean_word_length': 3.8745562130177515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1803775', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1073, 'n_words': 654}