Template with multiple files?

Is it possible to create a template that is multiple files? I'm working on a typescript angular app and when I create a new component I want to create:
<feature>.module.ts
<feature>.ts
<feature>.spec.js
<feature>.less


thank you.
Mark

3 comments
Comment actions Permalink

Hi there,

Currently IDE cannot do that.

Watch these tickets (star/vote/comment) to get notified on progress:


In meantime I may only suggest to try yeoman which is capable of generating new projects and stuff like that -- PhpStorm 9.5/WebStorm 11 support it (if anything: you always can run it in command line) -- it should be able to do such task as well.

0
Comment actions Permalink

Ah, good point re: yeoman. Guess I got lazy with "ide does it all" :)   Probably could bang out a shell script for my needs faster than a custom yeoman template, but that gives me a way to go.

Mark

0
Comment actions Permalink

I am a s l o w typist so would love this.

I a creating about 40 files many with the same template innards. Have edited the php file type but a pain having to type each one in. Just wanted to create a list of file names in Word and then press "Go". Next time maybe.

BTW I am in LOVE with PS. Producivity up about 800% after about 10 days of slight usage.

0

Please sign in to leave a comment.