Skip to content

oc init to support custom templates #341

Closed
@matteofigus

Description

@matteofigus

It would be nice if we could move the templates for init in such way it works with any npm package.

Example:

oc init myComponent oc-boilerplate-jade # it would use a oc-boilerplate-jade module
oc init myComponent oc-react-redux # it would use oc-react-redux module
oc init myComponent my-module@1.23.54 # it would use my-module for version 1.23.54

For compatibility reasons, we can map jade and handlebars to something like oc-boilerplate-(jade|handlebars) and publish them to NPM.

I think this is better than before as it adds more flexibility and extensibility. It also puts us on a better position for the investments we are doing towards bringing React as first-class citizen into OC.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions