Closed guybedford closed 2 years ago
This implements a chomp --format and a chomp --eject commmand.
chomp --format
chomp --eject
Format will reformat the chompfile.toml (serialize + deserialize)
chompfile.toml
--eject will expand all the templates into exact tasks so that no templates remain in use.
--eject
Example with an SWC task:
version = 0.1 [[task]] target = "lib/#.js" deps = ["src/#.jsx"] template = "swc" [task.template-options] auto-install = true [task.template-options.config] "jsc.parser.jsx" = true
when running chomp --eject the chompfile is rewritten into:
version = 0.1 [[task]] target = 'lib/#.js' dep = 'src/#.jsx' run = 'node ./node_modules/@swc/cli/bin/swc.js $DEP -o $TARGET --source-maps -C jsc.parser.jsx=true'
This implements a
chomp --format
and achomp --eject
commmand.Format will reformat the
chompfile.toml
(serialize + deserialize)--eject
will expand all the templates into exact tasks so that no templates remain in use.Example with an SWC task:
when running
chomp --eject
the chompfile is rewritten into: