Skip to content

(cli): remove prettier #290

@ryoppippi

Description

@ryoppippi

low priority

problem

prettier is really large. we want to remove it

solution

Instead of pass the whole code to prettier, we can indent the code

  1. use detect-indent to identify the code indent width
  2. calculate the width of indent of /// INSERT CONTROLLER HERE code and /// INSERT IMPORT HERE
  3. change the indent of the insert code based of step2 with indent-string
  4. remove prettier and related function

Also

  • we need to write a test
  • implement the indent logic into utils.ts
  • implement code inserting logic into connectors.ts(we can include code formatting logic)
  • call the insert function from start.ts

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions