Skip to content

Commit c0103e3

Browse files
initial commit
0 parents  commit c0103e3

File tree

11 files changed

+253
-0
lines changed

11 files changed

+253
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "michaelcontento" ]
3+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[package.json]
12+
indent_size = 2
13+
14+
[Makefile]
15+
indent_style = tab

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# build artefacts
2+
/build/
3+
4+
# npm
5+
/node_modules/
6+
/npm-debug.log
7+
/redux-storage-*.tgz
8+

.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esnext": true
3+
}

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: node_js
2+
node_js:
3+
- "5.5"
4+
- "5.4"
5+
- "5.3"
6+
- "5.2"
7+
- "5.1"
8+
- "5.0"
9+
- "4.2"
10+
- "4.1"
11+
- "0.12"
12+
- "0.10"

LICENSE.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Michael Contento
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.

Makefile

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
BIN = ./node_modules/.bin
2+
NPM = npm --loglevel=error
3+
4+
#
5+
# INSTALL
6+
#
7+
8+
install: node_modules/
9+
10+
node_modules/: package.json
11+
echo "> Installing ..."
12+
$(NPM) --ignore-scripts install > /dev/null
13+
touch node_modules/
14+
15+
#
16+
# CLEAN
17+
#
18+
19+
clean:
20+
echo "> Cleaning ..."
21+
rm -rf build/
22+
23+
mrproper: clean
24+
echo "> Cleaning deep ..."
25+
rm -rf node_modules/
26+
27+
#
28+
# BUILD
29+
#
30+
31+
build: clean install
32+
echo "> Building ..."
33+
$(BIN)/babel src/ --out-dir build/
34+
35+
build-watch: clean install
36+
echo "> Building forever ..."
37+
$(BIN)/babel src/ --out-dir build/ --watch
38+
39+
#
40+
# TEST
41+
#
42+
43+
lint: install
44+
echo "> Linting ..."
45+
$(BIN)/eslint src/
46+
47+
test: install
48+
echo "> Testing ..."
49+
$(BIN)/mocca
50+
51+
test-watch: install
52+
echo "> Testing forever ..."
53+
$(BIN)/mocca --watch
54+
55+
#
56+
# PUBLISH
57+
#
58+
59+
_publish : NODE_ENV ?= production
60+
_publish: lint test build
61+
62+
publish-fix: _publish
63+
$(BIN)/release-it --increment patch
64+
65+
publish-feature: _publish
66+
$(BIN)/release-it --increment minor
67+
68+
publish-breaking: _publish
69+
$(BIN)/release-it --increment major
70+
71+
#
72+
# MAKEFILE
73+
#
74+
75+
.PHONY: \
76+
install \
77+
clean mrproper \
78+
build build-watch \
79+
lint test test-watch \
80+
publish-fix publish-feature publish-breaking
81+
82+
.SILENT:

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# [redux-storage-engine-reactNativeAsyncStorage][]
2+
3+
[![build](https://travis-ci.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage.svg)](https://travis-ci.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage)
4+
[![dependencies](https://david-dm.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage.svg)](https://david-dm.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage)
5+
[![devDependencies](https://david-dm.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage/dev-status.svg)](https://david-dm.org/michaelcontento/redux-storage-engine-reactNativeAsyncStorage#info=devDependencies)
6+
7+
[![license](https://img.shields.io/npm/l/redux-storage-engine-reactNativeAsyncStorage.svg?style=flat-square)](https://www.npmjs.com/package/redux-storage-engine-reactNativeAsyncStorage)
8+
[![npm version](https://img.shields.io/npm/v/redux-storage-engine-reactNativeAsyncStorage.svg?style=flat-square)](https://www.npmjs.com/package/redux-storage-engine-reactNativeAsyncStorage)
9+
[![npm downloads](https://img.shields.io/npm/dm/redux-storage-engine-reactNativeAsyncStorage.svg?style=flat-square)](https://www.npmjs.com/package/redux-storage-engine-reactNativeAsyncStorage)
10+
[![Code Climate](https://codeclimate.com/github/michaelcontento/redux-storage-engine-reactNativeAsyncStorage/badges/gpa.svg)](https://codeclimate.com/github/michaelcontento/redux-storage-engine-reactNativeAsyncStorage)
11+
12+
`AsyncStorage` based engine for [redux-storage][].
13+
14+
## Installation
15+
16+
npm install --save redux-storage-engine-reactNativeAsyncStorage
17+
18+
## Usage
19+
20+
This will use `AsyncStorage` out of [react-native][].
21+
22+
```js
23+
import createEngine from 'redux-storage-engine-reactNativeAsyncStorage';
24+
const engine = createEngine('my-save-key');
25+
```
26+
27+
## License
28+
29+
The MIT License (MIT)
30+
31+
Copyright (c) 2015 Michael Contento
32+
33+
Permission is hereby granted, free of charge, to any person obtaining a copy of
34+
this software and associated documentation files (the "Software"), to deal in
35+
the Software without restriction, including without limitation the rights to
36+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
37+
the Software, and to permit persons to whom the Software is furnished to do so,
38+
subject to the following conditions:
39+
40+
The above copyright notice and this permission notice shall be included in all
41+
copies or substantial portions of the Software.
42+
43+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
45+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
46+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
47+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
48+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49+
50+
[redux-storage]: https://github.com/michaelcontento/redux-storage
51+
[redux-storage-engine-reactNativeAsyncStorage]: https://github.com/michaelcontento/redux-storage-engine-reactNativeAsyncStorage
52+
[react-native]: https://facebook.github.io/react-native/

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "redux-storage-engine-reactNativeAsyncStorage",
3+
"version": "1.0.0",
4+
"description": "react-native/AsyncStorage based engine for redux-storage",
5+
"main": "build/index.js",
6+
"jsnext:main": "src/index.js",
7+
"scripts": {
8+
"test": "make lint test build"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/michaelcontento/redux-storage-engine-reactNativeAsyncStorage.git"
13+
},
14+
"homepage": "https://github.com/michaelcontento/redux-storage-engine-reactNativeAsyncStorage",
15+
"keywords": [
16+
"redux",
17+
"redux-storage",
18+
"redux-storage-engine",
19+
"localStorage",
20+
"react-native"
21+
],
22+
"author": "Michael Contento <michaelcontento@gmail.com>",
23+
"files": [
24+
"build/",
25+
"src",
26+
"!**/__tests__/**"
27+
],
28+
"eslintConfig": {
29+
"extends": "michaelcontento"
30+
},
31+
"license": "MIT",
32+
"devDependencies": {
33+
"babel-cli": "^6.4.0",
34+
"babel-core": "^6.4.0",
35+
"babel-polyfill": "^6.3.14",
36+
"babel-preset-michaelcontento": "^1.3.0",
37+
"eslint": "^1.10.3",
38+
"eslint-config-michaelcontento": "^1.1.1",
39+
"eslint-plugin-mocha-only": "0.0.3",
40+
"mocca": "^0.3.0",
41+
"release-it": "^2.3.1"
42+
}
43+
}

src/__tests__/index-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
describe('engine', () => {
2+
});

0 commit comments

Comments
 (0)