Skip to content

Add generator for boot scripts #90

Description

@superkhau

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();
};

@bajtos @raymondfeng @ritch Thoughts?

Connected to #93

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions