trailsjs / generator-trails-old

:package: Trails Generator.
Other
6 stars 8 forks source link

should correctly update index.js if one of services, controllers, etc. does not exist #59

Open tjwebb opened 8 years ago

tjwebb commented 8 years ago

For example, in a trailpack, there is no api/index.js file by default. yo trails:service does creates the api/service/index.js file correctly, but the generated tests fail because it assumes that api/index.js already contains a line like exports.service = require('./services')

jaumard commented 8 years ago

But when you generate a new project it does have it https://github.com/trailsjs/trails/blob/master/archetype/api/index.js

gliwka commented 7 years ago

I'll take care of it. I've run into this myself.