feathers-plus / cli

FeathersJS CLI supporting both REST and GraphQL architectural concepts and their query languages.
https://generator.feathers-plus.com/
Other
43 stars 7 forks source link

app#src with multiple path directory fail to start #30

Closed zucher closed 5 years ago

zucher commented 5 years ago

Steps to reproduce

(First please check that this issue is not already solved as described here)

If you define during creation an app source folder in a subdirectory, on launch the path app.js doesn't reflect the right path: for "src": "app/modules/server" we have const generatorSpecs = require('../feathers-gen-specs.json'); instead of:

const generatorSpecs = require('../../../feathers-gen-specs.json');

"app": { "environmentsAllowingSeedData": "", "seedData": false, "name": "xxxx", "description": "Project xxxx", "src": "app/modules/server", "packager": "yarn@>= 0.18.0", "providers": [ "rest", "socketio" ] }

Expected behavior

Tell us what should happen see above

Actual behavior

Tell us what happens instead see above

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): feathersjs-plus generate app / feathersjs-plus generate all

NodeJS version: v10.15.1 Operating System: Windows LWS / Debian

Browser Version: none React Native Version: none Module Loader: yarn

eddyystop commented 5 years ago

The "src" directory cannot be a path in either cli+ or featerjs/cli. Neither the docs nor the prompt suggest it can be a path.

zucher commented 5 years ago

thank you for this notice.