-
-
Notifications
You must be signed in to change notification settings - Fork 371
Split core and cli into separate packages #182
Copy link
Copy link
Closed
Description
Hi, It is a suggestion that split core(parse/generator) and cli into separate packages.
This is commonly approach.
- Babel has babel-core and babel-cli.
- Many JavaScript AST tools exist as separated package.
Pros
- Fast installation
- Currently, remark depended on native module like chokidar for
--watchWatching files #51 - Build time of native module is large :(
- We want to use remark as pure JS parser/generator, but install native module.
- Currently, remark depended on native module like chokidar for
- Separated responsibility
- That's why ESLint have not
--watchoption: Watch capabilities eslint/eslint#2513
- That's why ESLint have not
Cons
- Maintenance cost
- That's why Babel apply monorepo approach.
My Proposal
- Split
stringify.jsandparse.jsto into separate package likeremark-core remarkpackage contain cli that is the same as it is now.
What do you think about this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels