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

Commit

Permalink
Merge pull request #1 from mixmaxhq/initial-release
Browse files Browse the repository at this point in the history
feat: initial release
  • Loading branch information
skeggse authored Sep 9, 2020
2 parents 7d595e6 + 8ac58c2 commit 7e11de2
Show file tree
Hide file tree
Showing 54 changed files with 6,903 additions and 22,335 deletions.
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

0 comments on commit 7e11de2

Please sign in to comment.