fullcube / loopback-ds-readonly-mixin

A mixin to enable readonly properties for loopback Models
MIT License
51 stars 19 forks source link

Added support to mixinsSources. #2

Closed mrbatista closed 8 years ago

mrbatista commented 8 years ago

-Added support to mixinsSources. -Print deprecate warning if define mixins in boot script.

mrfelton commented 8 years ago

Thank you for your contribution @mrbatista . I have included your updates, although I'd really like to get some tests cases for this in place. I've created a new branch in which I have tried to add tests to provide the mixin support works, although I haven't been sucessful yet.

The branch is at https://github.com/fullcube/loopback-ds-readonly-mixin/tree/mixinsources

You can run the tests like so:

DEBUG=loopback-ds-readonly-mixin ./node_modules/.bin/mocha -R spec --timeout 10000 test/test-server.js

I haven't used the mixin sources route yet so perhaps I'm doing something wrong. Would you mind taking a quick look and see what I'm missing? Thanks!

mrbatista commented 8 years ago

@mrfelton See pull request #3