angular-template-formatter icon indicating copy to clipboard operation
angular-template-formatter copied to clipboard

Expose APIs for Node scripts

Open aervin opened this issue 6 years ago • 2 comments

Love this extension, use it on a daily basis. Thanks for the great work!

I would love the ability to run all of a project's HTML templates through the formatter during precommit, like it's possible to do w/ Prettier and JS/TS files. The deterministic template diffs would be a big win IMO. Is this already possible?

aervin avatar Jun 10 '18 15:06 aervin

There is a cliformat.ts file in the src directory, I use this to automate formatting my angular templates with my build system.

stringham avatar Jun 12 '18 15:06 stringham

@stringham Is it possible to leverage cliformat.ts as an ordinary npm package? I guess that's what I'm after.

aervin avatar Jun 13 '18 17:06 aervin