.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .TH BABEL.JS "1" "December 2021" "babel.js 7.16.6+ds1+~cs214.259.181" "User Commands" .SH NAME babel.js \- The compiler for writing next generation JavaScript .SH SYNOPSIS .B babel [\fI\,options\/\fR] \fI\,\/\fR .SH OPTIONS .TP \fB\-f\fR, \fB\-\-filename\fR [filename] The filename to use when reading from stdin. This will be used in source\-maps, errors etc. .TP \fB\-\-presets\fR [list] A comma\-separated list of preset names. .TP \fB\-\-plugins\fR [list] A comma\-separated list of plugin names. .TP \fB\-\-config\-file\fR [path] Path to a .babelrc file to use. .TP \fB\-\-env\-name\fR [name] The name of the 'env' to use when loading configs and plugins. Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development'. .TP \fB\-\-root\-mode\fR [mode] The project\-root resolution mode. One of 'root' (the default), 'upward', or 'upward\-optional'. .HP \fB\-\-source\-type\fR [script|module] .TP \fB\-\-no\-babelrc\fR Whether or not to look up .babelrc and .babelignore files. .TP \fB\-\-ignore\fR [list] List of glob paths to **not** compile. .TP \fB\-\-only\fR [list] List of glob paths to **only** compile. .TP \fB\-\-no\-highlight\-code\fR Enable or disable ANSI syntax highlighting of code frames. (on by default) .TP \fB\-\-no\-comments\fR Write comments to generated output. (true by default) .TP \fB\-\-retain\-lines\fR Retain line numbers. This will result in really ugly code. .TP \fB\-\-compact\fR [true|false|auto] Do not include superfluous whitespace characters and line terminators. .TP \fB\-\-minified\fR Save as many bytes when printing. (false by default) .TP \fB\-\-auxiliary\-comment\-before\fR [string] Print a comment before any injected non\-user code. .TP \fB\-\-auxiliary\-comment\-after\fR [string] Print a comment after any injected non\-user code. .HP \fB\-s\fR, \fB\-\-source\-maps\fR [true|false|inline|both] .TP \fB\-\-source\-map\-target\fR [string] Set `file` on returned source map. .TP \fB\-\-source\-file\-name\fR [string] Set `sources[0]` on returned source map. .TP \fB\-\-source\-root\fR [filename] The root from which all sources are relative. .TP \fB\-\-module\-root\fR [filename] Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions. .TP \fB\-M\fR, \fB\-\-module\-ids\fR Insert an explicit id for modules. .TP \fB\-\-module\-id\fR [string] Specify a custom name for module ids. .TP \fB\-x\fR, \fB\-\-extensions\fR [extensions] List of extensions to compile when a directory has been the input. [.js,.jsx,.es6,.es,.mjs,.cjs] .TP \fB\-\-keep\-file\-extension\fR Preserve the file extensions of the input files. .TP \fB\-w\fR, \fB\-\-watch\fR Recompile files on changes. .TP \fB\-\-skip\-initial\-build\fR Do not compile files before watching. .TP \fB\-o\fR, \fB\-\-out\-file\fR [out] Compile all input files into a single file. .TP \fB\-d\fR, \fB\-\-out\-dir\fR [out] Compile an input directory of modules into an output directory. .TP \fB\-\-relative\fR Compile into an output directory relative to input directory or file. Requires \fB\-\-out\-dir\fR [out] .TP \fB\-D\fR, \fB\-\-copy\-files\fR When compiling a directory copy over non\-compilable files. .TP \fB\-\-include\-dotfiles\fR Include dotfiles when compiling and copying non\-compilable files. .TP \fB\-\-no\-copy\-ignored\fR Exclude ignored files when copying non\-compilable files. .TP \fB\-\-verbose\fR Log everything. This option conflicts with \fB\-\-quiet\fR .TP \fB\-\-quiet\fR Don't log anything. This option conflicts with \fB\-\-verbose\fR .TP \fB\-\-delete\-dir\-on\-start\fR Delete the out directory before compilation. .TP \fB\-\-out\-file\-extension\fR [string] Use a specific extension for the output files .TP \fB\-V\fR, \fB\-\-version\fR output the version number .TP \fB\-h\fR, \fB\-\-help\fR display help for command