Skip to content

Instantly share code, notes, and snippets.

@MadcapJake
Last active April 7, 2016 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadcapJake/486242e5ab0bcd25d9ea5859a8bfa4a6 to your computer and use it in GitHub Desktop.
Save MadcapJake/486242e5ab0bcd25d9ea5859a8bfa4a6 to your computer and use it in GitHub Desktop.
A Perl 6 module scaffold generator
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