Alain Couthures’ xsltforms uses a custom .js.xml format for storing javascript source code, import dependencies and documentation. This tool converts such .js.xml files into plain .js files. For more information, see the notes on the txs tool on the xsltforms README.
Basic usage:
node index.js /path/to/xsltforms /path/to/output/dir
This will ‘unpack’ the .js.xml files to .js files in ~ /path/to/output/dir~ and write a list of imports to stdout that can be concatenated:
node index.js /path/to/xsltforms /path/to/output/dir | xargs cat > /path/to/output/dir/xsltforms.bundle.js