Skip to content

Add development mode #9

@Paveltarno

Description

@Paveltarno

I've been thinking about implementing another binary for running the package in development mode..
Ideally such a command will:

  1. Store the code generated by Babel in-memory
  2. Watch the project files and reload on change

I would go with implementing that with pm2 or nodemon and executing babel-node each time.
However, @mishguru/package binaries use programmatic hooks to tap into babel but babel-node does not have a programmatic interface (not an "official" one anyway)..

Possible solutions:

  1. I guess I can still use a module bundler like webpack for this and use it's bindings with Babel but it seems as a bit of an overkill..
  2. I can use a bash script but that would be inconsistent with the rest of the library.
  3. I can require them babel-node main module by requiring it directly (require('babel-node/src/babel-node')

Any ideas or suggestions are welcome [=

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions