Skip to content

Commit 08a5887

Browse files
committed
Initial commit
1 parent 5023bfc commit 08a5887

14 files changed

+4082
-0
lines changed

Diff for: .editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

Diff for: .gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
*~
3+
4+
node_modules/
5+
npm-debug.log
6+
yarn-error.log
7+
8+
coverage/
9+
docs/
10+
bundle/

Diff for: .jsdocrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"plugins": [
3+
"plugins/markdown"
4+
],
5+
"opts": {
6+
"template": "node_modules/docdash",
7+
"destination": "docs/"
8+
},
9+
"templates": {
10+
"default": {
11+
"includeDate": false
12+
}
13+
}
14+
}

Diff for: .npmignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.gitignore
2+
.npmignore
3+
.editorconfig
4+
5+
node_modules/
6+
npm-debug.log
7+
yarn-error.log
8+
yarn.lock
9+
10+
test/
11+
coverage/
12+
.travis.yml
13+
14+
docs/
15+
.jsdocrc
16+
.yaspellerrc
17+
18+
bundle/
19+
webpack.config.js

Diff for: .travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
cache: yarn
3+
node_js:
4+
- stable
5+
- "6"
6+
- "4"

Diff for: .yaspellerrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"lang": "en",
3+
"ignoreCapitalization": true,
4+
"excludeFiles": [
5+
"docs/*.js.html"
6+
],
7+
"dictionary": [
8+
"Logux",
9+
"docdash",
10+
"JSDoc",
11+
"js",
12+
"JS",
13+
"Versioning",
14+
"Redux",
15+
"UX"
16+
]
17+
}

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Change Log
2+
This project adheres to [Semantic Versioning](http://semver.org/).

Diff for: LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Logux Redux
2+
3+
<img align="right" width="95" height="95" title="Logux logo"
4+
src="https://cdn.rawgit.com/logux/logux/master/logo.svg">
5+
6+
Logux is a client-server communication protocol. It synchronizes action
7+
between clients and server logs.
8+
9+
This library provides Redux compatible API.
10+
11+
See also [Logux Status] for UX best practices.
12+
13+
[Logux Status]: https://github.com/logux/logux-status
14+
15+
<a href="https://evilmartians.com/?utm_source=logux-redux">
16+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
17+
alt="Sponsored by Evil Martians" width="236" height="54">
18+
</a>

Diff for: index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { }

Diff for: package.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "logux-redux",
3+
"version": "0.0.0",
4+
"description": "Redux compatible API for Logux",
5+
"keywords": [
6+
"logux",
7+
"client",
8+
"redux"
9+
],
10+
"author": "Andrey Sitnik <andrey@sitnik.ru>",
11+
"license": "MIT",
12+
"repository": "logux/logux-redux",
13+
"dependencies": {
14+
"logux-client": "logux/logux-client"
15+
},
16+
"devDependencies": {
17+
"docdash": "^0.4.0",
18+
"eslint": "^3.18.0",
19+
"eslint-config-logux": "^9.0.0",
20+
"eslint-config-standard": "^7.1.0",
21+
"eslint-plugin-es5": "^1.0.1",
22+
"eslint-plugin-jest": "^19.0.1",
23+
"eslint-plugin-node": "^4.2.1",
24+
"eslint-plugin-promise": "^3.5.0",
25+
"eslint-plugin-standard": "^2.1.1",
26+
"jest": "^19.0.2",
27+
"jsdoc": "^3.4.3",
28+
"lint-staged": "^3.4.0",
29+
"pre-commit": "^1.2.2",
30+
"rimraf": "^2.6.1",
31+
"webpack": "^2.3.2",
32+
"webpack-bundle-analyzer": "^2.3.1",
33+
"yaspeller-ci": "^0.4.0"
34+
},
35+
"scripts": {
36+
"lint-staged": "lint-staged",
37+
"spellcheck": "yarn run docs && yaspeller-ci *.md docs/*.html",
38+
"clean": "rimraf docs/ coverage/ bundle/ test/demo/build/",
39+
"lint": "eslint *.js test/**/*.js",
40+
"docs": "jsdoc --configure .jsdocrc *.js",
41+
"test": "jest --coverage && yarn run lint && yarn run spellcheck",
42+
"prebundle": "webpack index.js bundle/index.js",
43+
"bundle": "gzip -9 -f bundle/index.js",
44+
"postbundle": "ls -lh bundle/*.gz | awk '{print \"Size:\", $5\"B\"}'"
45+
},
46+
"jest": {
47+
"coverageThreshold": {
48+
"global": {
49+
"statements": 100
50+
}
51+
}
52+
},
53+
"eslintConfig": {
54+
"extends": "eslint-config-logux/browser"
55+
},
56+
"lint-staged": {
57+
"*.md": "yaspeller-ci",
58+
"*.js": "eslint"
59+
},
60+
"pre-commit": [
61+
"lint-staged"
62+
]
63+
}

Diff for: test/index.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
var index = require('../')
2+
3+
it('provides module', function () {
4+
expect(typeof index).toEqual('object')
5+
})

Diff for: webpack.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var Analyzer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
2+
var webpack = require('webpack')
3+
4+
module.exports = {
5+
plugins: [
6+
new webpack.optimize.UglifyJsPlugin({ minimize: true }),
7+
new Analyzer({
8+
analyzerMode: 'static',
9+
reportFilename: 'bundle-report.html',
10+
openAnalyzer: false
11+
})
12+
]
13+
}

0 commit comments

Comments
 (0)