Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

feat: initial release #1

Merged
merged 13 commits into from
Sep 9, 2020
Merged
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
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/neckbone*
/docs
/node_modules
/test/vendor
/test
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"Promise": false
},
"rules": {
"prettier/prettier": "error",

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## How to Open a Backbone.js Ticket
## How to Open a Ticket

- Before you open a ticket or send a pull request,
[search](https://github.com/mixmaxhq/boddle/issues) for previous discussions
[search](https://github.com/mixmaxhq/neckbone/issues) for previous discussions
about the same feature or issue. Add to the earlier ticket if you find one.

- Before sending a pull request for a feature or bug fix, be sure to have
[tests](http://backbonejs.org/test/).

- Use the same coding style as the rest of the
[codebase](https://github.com/mixmaxhq/boddle/blob/master/backbone.js).
[codebase](https://github.com/mixmaxhq/neckbone/tree/master).

- All pull requests should be made to the `master` branch.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
# boddle
# neckbone

Backbone-inspired data layer, aiming at majority API compatibility with modern promises and no
underscore/jquery dependency.

To suggest a feature or report a bug:
https://github.com/mixmaxh/boddle/issues
https://github.com/mixmaxh/neckbone/issues

Many thanks to Backbone's contributors:
https://github.com/jashkenas/backbone/graphs/contributors

Special thanks to Robert Kieffer for the original philosophy behind Backbone (and, indirectly,
boddle).
neckbone).
https://github.com/broofa

## install

```sh
$ npm i -P boddle
$ npm i -P neckbone
```

## notable differences

- No support for `View`, `Router`, `History`.
- Does not use jQuery, and replaces underscore with lodash.
- Does not support `Model#mixin` or `Collection#mixin`.
- Does not provide a global event bus (e.g. `Backbone.trigger` on global `Backbone`).
- Exports setter functions for previously-rewriteable exports:
- `ajax` -> `setAJAXImplementation`
- `emulateHTTP` -> `setEmulateHTTP`
- `emulateJSON` -> `setEmulateJSON`
- `sync` -> `setSyncImplementation`
- Supports standard `class`-`extend` syntax instead of requiring e.g. `Model.extend`.
- Potential for minor differences in method semantics. e.g. due to the `lodash` switch `Model#pick` does not support a function getter - use `Model#pickBy` instead.
2 changes: 0 additions & 2 deletions backbone-min.js

This file was deleted.

1 change: 0 additions & 1 deletion backbone-min.map

This file was deleted.

Loading