egg-sequelize
egg-sequelize copied to clipboard
Config baseDir support array
Checklist
- [x]
npm testpasses - [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message follows commit guidelines
Affected core subsystem(s)
Affect baseDir config!
Description of change
Config options baseDir support directory array, And also compatible with string! example:
exports.sequelize = {
baseDir: ['model', 'other-model'], // load all files in `app/${baseDir}` as models, default to `model`
};
Codecov Report
Merging #89 (33816cb) into master (f585da5) will increase coverage by
0.43%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 85.71% 86.15% +0.43%
==========================================
Files 4 4
Lines 63 65 +2
==========================================
+ Hits 54 56 +2
Misses 9 9
| Impacted Files | Coverage Δ | |
|---|---|---|
| lib/loader.js | 85.00% <100.00%> (+0.51%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update a126c2b...c43fcd7. Read the comment docs.
travis-ci npm install error cause of index.d.ts change?