A nice feature to have would be build targets (e.g. 'clean', 'package', 'build', etc.). It could be passed to train with a '--target' parameter ('-t' is already taken). Train could then execute a function with the given target name instead of executing the JS script as is.