boltjs / bolt

Bolt. A javascript module system.
http://boltjs.io
Other
11 stars 0 forks source link

Add a "bolt clean" sub-command #20

Closed marlimox closed 11 years ago

marlimox commented 11 years ago

Seems like there should be one. I'm constantly typing rm -rf gen/bolt before running a bolt build.

It could be as simple as wrapping that command (the node equivalent, anyway), but it would also support reading the output dir configuration from project.json.

Also, do you think the output dir should be cleaned before every build? I've noticed old leftover artifacts after doing a bolt build - particularly if you change your build configuration, any output files from a previous build that are not clobbered by the new build will hang around.