skeleton ~master

Skeletal directory and file creational utility


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

skeleton

Creates skeleton directories and files based upon skeleton files

Features:

  • Basic file manipulation format
  • Github repository integration
  • Github gist integration
  • Bitbucket repository support for both git and mercurial
  • Regex find and replace within files
  • Arguments from command line ($0..$x) for simple format
  • Lua support, with ability to directly interface with the repository resolver.

Basic file manipulatuion format:

# Simple skeleton descriptor
#comment
# comment 2
dir_here/
mkdir dir_here2
regex package.json
    $NAME
    $0
mkdir dir3%20/docs
mynewfile relpath
dlfile myfile repo@user/somedir/somefile.d
rmdir byebye
somefile http://example.com

The first line is required. This is simply a way to say what format the descriptor is in.
Comments are prepended by # on its own line.

Note it is based upon no spaces. If you want spaces in arguments, use %20 escaping.

Lua format:

-- Lua skeleton descriptor

filesText = downloadRepoFile('repo@user myfile')
stdfile.write('myfile', filesText)

filesText = downloadFile('http://example.com/')

stdio.writeln("Hi there! muhaha")

for v in programArgs.args do
    print("I have arg", v)
end
print("My project dir is", programArgs.projectdir)
print("My repo is", programArgs.repo)
Authors:
  • Richard Andrew Cattermole
Dependencies:
vibe-d, luad, de_util:core
Versions:
0.0.3 2015-May-08
0.0.2 2015-Jan-18
0.0.1 2014-Sep-13
~master 2015-May-08
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 226 downloads total

Score:
0.8
Short URL:
skeleton.dub.pm