cr-bundle v0.4.0
cr-bundle
cr-bundle is a CLI tool for bundling Crystal language's source codes into a single file.
Installation
First you'll need to install Crystal.
$ cd <your favorite directory>
$ git clone https://github.com/yuruhi/cr-bundle.git && cd cr-bundle
$ shards build --release
$ cp bin/cr-bundle <your favorite bin>
Usage
cr-bundle is a crystal language's bundler.
usage: cr-bundle [programfile]
-v, --version show the cr-bundle version number
-h, --help show this help message
-e SOURCE, --eval SOURCE eval code from args
-i, --inplace inplace edit
-f, --format run format after bundling
-p PATH, --path PATH indicate require path
(you can be specified with the environment `CR_BUNDLE_PATH`)
-d, --dependencies output dependencies
$ cat a.cr
require "./b"
puts "a.cr"
$ cat b.cr
puts "b.cr"
$ cr-bundle a.cr
# require "./b"
puts "b.cr"
puts "a.cr"
The directory to search can be specified with the environment CR_BUNDLE_PATH
. If it is not specified, the argument of the -p
option is used.
For detail require
sepcification, see Requiring files - Crystal.
Contributing
- Fork it (https://github.com/your-github-user/cr-bundle/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- yuruhi - creator and maintainer
Repository
cr-bundle
Owner
Statistic
- 5
- 2
- 0
- 3
- 0
- about 3 years ago
- April 11, 2021
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 03:59:25 GMT
Languages