You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a generator to scaffold boot scripts, something like:
slc loopback:boot
What kind of boot script would you like to generate?
>o sync
o async
What do you want to name your boot script? <enter name>
[generate <name>.js] in /server/boot with the following contents:
#sync
module.exports = function(app) {
}
#async
module.exports = function(app, cb) {
cb();
};
Sure, why not. Perhaps loopback:boot-script would be a better name.
At the moment, loopback-workspace does not provide any API for boot scripts. I don't think it makes much sense to introduce such API, thus I am proposing to keep the implementation of this feature in the generator only.
@raymondfeng +1 Remote method is probably even more important. We should probably go with loopback:remote-method (sticking with @bajtosloopback:boot-script suggestion from above - I agree it's more clear). We should create a separate issue for that one though.
We should probably also do loopback:operation-hook to make it feature complete.
Activity
bajtos commentedon Feb 24, 2015
Sure, why not. Perhaps
loopback:boot-scriptwould be a better name.At the moment, loopback-workspace does not provide any API for boot scripts. I don't think it makes much sense to introduce such API, thus I am proposing to keep the implementation of this feature in the generator only.
raymondfeng commentedon Feb 24, 2015
+1. We should also add 'loopback:method' to generate custom remote method, which is even more useful.
superkhau commentedon Feb 24, 2015
@raymondfeng +1 Remote method is probably even more important. We should probably go with
loopback:remote-method(sticking with @bajtosloopback:boot-scriptsuggestion from above - I agree it's more clear). We should create a separate issue for that one though.We should probably also do
loopback:operation-hookto make it feature complete.superkhau commentedon Mar 5, 2015
Moving discussion to #94
Moving discussion to #95
superkhau commentedon Mar 5, 2015
PR at #93
superkhau commentedon Mar 9, 2015
@bajtos Removed
yo-rc.jsonrelated code. PTAL again.