plopjs / plop

Consistency Made Simple
http://plopjs.com
MIT License
7.18k stars 280 forks source link

Typescript docs #428

Closed benallfree closed 7 months ago

benallfree commented 7 months ago

Alright here's a first cut at the docs.

A couple suggestions to consider before merging:

  1. Add an --init-ts switch for convenience. I added it here and can pull it in. Tests pass.
  2. Test/verify that plopfile.ts is automatically searched. I believe Liftoff does, but it would be nice not to need --plopfile=plopfile.ts
  3. There are a couple test fixes I'd like to pull into this PR. The typescript test wasn't loading plopfile.ts and the tsconfig.json had a path error. All of this can be fixed and will work now with a simple import 'tsx' in the test suite.

Let me know :)

benallfree commented 7 months ago

@crutchcorn

crutchcorn commented 7 months ago

I'm actually gonna merge this PR standalone, but agreed with #1-3

Thanks for your help lately! 😄😄