Skip to content

Commit 5d6b1f9

Browse files
committed
Migrated to Webpack 2
1 parent 7684f1c commit 5d6b1f9

19 files changed

+1512
-1309
lines changed

.eslintrc.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"extends": [
3-
"eslint:recommended",
4-
"google"
3+
"airbnb-base",
4+
"plugin:import/warnings",
5+
"plugin:import/errors"
6+
],
7+
"plugins": [
8+
"import"
59
],
610
"root": true,
711
"env": {
@@ -20,13 +24,20 @@
2024
}
2125
},
2226
"rules": {
27+
"import/no-mutable-exports": 1,
28+
"import/prefer-default-export": 1,
29+
"import/no-extraneous-dependencies": [
30+
"error", { "devDependencies": true }
31+
],
2332
"valid-jsdoc": [1, {
2433
"requireReturnDescription": false
2534
}],
2635
"one-var": [2, {
2736
"uninitialized": "always"
2837
}],
2938
"max-len": 0,
30-
"object-curly-spacing": [2, "never"]
39+
"object-curly-spacing": [2, "never"],
40+
"no-underscore-dangle": 0,
41+
"no-param-reassign": 0
3142
}
3243
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
<!-- markdownlint-disable MD024 MD033 -->
44

5+
## 2.0.2
6+
7+
### Improvements
8+
9+
1. Project migrated to Webpack 2.
10+
11+
---
12+
513
## 2.0.1
614

715
### Fixes

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ $ yarn add proxy-storage
5353
`proxy-storage` can be included directly from a CDN in your page:
5454

5555
```html
56-
<!-- last version: 2.0.1 -->
57-
<script src="https://cdn.rawgit.com/jherax/proxy-storage/2.0.1/dist/proxy-storage.min.js"></script>
56+
<script src="https://cdn.rawgit.com/jherax/proxy-storage/2.0.2/dist/proxy-storage.min.js"></script>
5857
```
5958

60-
In the above case, the [library](#api) is included into the namespace
61-
`proxyStorage`as a global object.
59+
In the above case, [`proxyStorage`](#api) is included as a global object in the browser.
6260

6361
```javascript
6462
// get the default storage mechanism
@@ -111,7 +109,7 @@ require(['proxy-storage'], function(proxyStorage) {
111109
});
112110
```
113111

114-
See an example with RequireJS here: http://jsfiddle.net/FdKTn/65/
112+
See an example with RequireJS here: http://jsfiddle.net/FdKTn/67/
115113

116114
# API
117115

@@ -436,7 +434,8 @@ If you want to fork or build your own, you must run this project.
436434

437435
### Requirements
438436

439-
1. Git ([git-linux](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) or [git-windows](https://git-for-windows.github.io/)).
437+
1. Git ([git-linux](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
438+
or [git-windows](https://git-for-windows.github.io/)).
440439
1. [Node.js](https://nodejs.org/en/) (latest stable version v6+).<br>
441440
It is preferable install **[nvm](https://github.com/creationix/nvm)**
442441
(Node Version Manager).
@@ -450,7 +449,7 @@ If you are running Windows, you can install
450449
Follow every step mentioned
451450
[here](https://github.com/coreybutler/nvm-windows#installation--upgrades)
452451
so that nvm will be correctly installed to manage multiple installations
453-
of node.js (with npm) on a Windows computer.
452+
of **node.js** (with **npm**) on a Windows computer.
454453

455454
### Building the project
456455

@@ -478,11 +477,7 @@ And finally execute the webpack task:
478477
$ yarn run build
479478
```
480479

481-
This command will lint the code with
482-
[ESLint](http://eslint.org/docs/user-guide/getting-started) and after that
483-
it will transpile with [Babel](https://babeljs.io/) the ES2015 Module in
484-
`src/` folder to an UMD ES5 Module in `dist/` and finally it will generate
485-
the minified and source map files.
480+
This command will lint the code with [ESLint](http://eslint.org/docs/user-guide/getting-started) and transpile the source files from `src/` to `dist/` as an [UMD](http://davidbcalhoun.com/2014/what-is-amd-commonjs-and-umd/) with [Babel](https://babeljs.io/). It also generates the minified and source map files.
486481

487482
## Versioning
488483

0 commit comments

Comments
 (0)