Last active
April 7, 2016 21:22
-
-
Save MadcapJake/486242e5ab0bcd25d9ea5859a8bfa4a6 to your computer and use it in GitHub Desktop.
A Perl 6 module scaffold generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pm6 --argument-names name --description="A Perl 6 module scaffolder" | |
set path "$HOME/github/$name" | |
git init -q -- $path | |
mkdir -- "$path/lib"; and touch -- "$path/lib/$name.pm6" | |
mkdir -- "$path/t"; and mkdir -- "$path/eg" | |
echo ".precomp" > "$path/.gitignore" | |
echo "# $name" > "$path/README.md" | |
echo "{ | |
\"name\" : \"$name\", | |
\"version\" : \"0.1.0\", | |
\"description\" : \"FILL IN DESCRIPTION\", | |
\"depends\" : [], | |
\"build-depends\" : [], | |
\"test-depends\" : [], | |
\"provides\" : { | |
\"$name\": \"lib/$name.pm6\", | |
}, | |
\"authors\" : [ \"YOUR NAME <EMAIL ADDRESS>\" ] | |
}" > "$path/META6.json" | |
echo "\ | |
branches: | |
except: | |
- gh-pages | |
sudo: false | |
language: perl6 | |
perl6: | |
- latest | |
install: | |
- rakudobrew build-panda | |
- panda installdeps ." > "$path/.travis.yml" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment