keystonejs/keystone-classic

add an option to ignore/filter files in the importer

Open

#3,690 opened on 2016年11月12日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)JavaScript (14,656 stars) (2,288 forks)batch import
enhancementhelp wantedneeds input

説明

I'm currently trying to enhance a project, which is based on the MERN stack, with a keystone backend – something i successfully did with MERN 1.0 and Keystone 3.x. Now i ran into an issue while i tried to import my models via .import('models') caused by the importer who recursively went through the models folder and tried to add the test files as well.

models/
├── __tests__
│   └── post.spec.js
└── post.js

I now that this is a very specific use case but it could be handy to have some kind of filter mechianism in the importer if you're adding the keystone backend to an existing express based app.

コントリビューターガイド

add an option to ignore/filter files in the importer · keystonejs/keystone-classic#3690 | Good First Issue