source_press allows you to combine multiple source files into a single file.
It works on any language as long as .press.yml
is configured correctly.
$ gem install source_press
$ srcpress
cd
to the directory containing your source files- Create a .press.yml config file, use
srcpress gen-config
to generate a template file - Run source_press from the command-line with
srcpress
- That's it, other options and language-specific settings are described in the template
.press.yml
file
In order for source_press to work you'll need to provide a few details in a .press.yml file; the only required setting being a list of files or directories to compile.
$ srcpress gen-config
Name + extension of compiled file. Can be left as null/blank.
When set to true, overrides output file if it's already in the directory.
Language specific file/library import keywords.
ie:
Ruby - 'require', 'require_relative'
Python - 'import', 'from'
C/C++ - '#include'
Can be left as null/blank
Relative/full path to files in the order in which they should appear in the compiled file.
If the order is unimportant, please include a path to the directory/directories containing the files.
$ srcpress config=file_name.yml
$ srcpress --silent
$ srcpress -v