Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add single storage builds #274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ Choose which build is right for you!
- [store.modern.min.js](dist/store.modern.min.js): Full support for all modern browsers. Add plugins separately. [Source](dist/store.modern.js)
- [store.v1-backcompat.min.js](dist/store.v1-backcompat.min.js): Full backwards compatibility with [store.js v1](https://github.com/marcuswestin/store.js/releases/tag/v1.3.20). [Source](dist/store.v1-backcompat.js)


Individual storage builds (not containing any fallback logic)

- [store.only.local-storage.min.js](dist/store.only.local-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.local-storage.js)
- [store.only.session-storage.min.js](dist/store.only.session-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.session-storage.js)
- [store.only.cookie-storage.min.js](dist/store.only.cookie-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.cookie-storage.js)
- [store.only.memory-storage.min.js](dist/store.only.memory-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.memory-storage.js)

### Make your own Build

If you're using npm you can create your own build:
Expand Down
8 changes: 8 additions & 0 deletions dist/store.only.cookie-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var engine = require('../src/store-engine')

var storages = [
require('../storages/cookieStorage')
]
var plugins = []

module.exports = engine.createStore(storages, plugins)
2 changes: 2 additions & 0 deletions dist/store.only.cookie-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/store.only.local-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var engine = require('../src/store-engine')

var storages = [
require('../storages/localStorage')
]
var plugins = []

module.exports = engine.createStore(storages, plugins)
2 changes: 2 additions & 0 deletions dist/store.only.local-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/store.only.memory-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var engine = require('../src/store-engine')

var storages = [
require('../storages/memoryStorage')
]
var plugins = []

module.exports = engine.createStore(storages, plugins)
2 changes: 2 additions & 0 deletions dist/store.only.memory-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/store.only.session-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var engine = require('../src/store-engine')

var storages = [
require('../storages/sessionStorage')
]
var plugins = []

module.exports = engine.createStore(storages, plugins)
Loading