https://github.com/pikesley/skellington
Generate a Sinatra app or Jekyll site skeleton
https://github.com/pikesley/skellington
jekyll ruby sinatra
Last synced: about 1 year ago
JSON representation
Generate a Sinatra app or Jekyll site skeleton
- Host: GitHub
- URL: https://github.com/pikesley/skellington
- Owner: pikesley
- License: mit
- Created: 2015-01-17T01:35:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T18:20:30.000Z (over 8 years ago)
- Last Synced: 2025-03-21T18:51:47.760Z (over 1 year ago)
- Topics: jekyll, ruby, sinatra
- Language: Ruby
- Homepage: http://sam.pikesley.org/projects/skellington/
- Size: 266 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://travis-ci.org/pikesley/skellington)
[](https://gemnasium.com/pikesley/skellington)
[](http://dependencyci.com/github/pikesley/skellington)
[](https://coveralls.io/r/pikesley/skellington)
[](https://codeclimate.com/github/pikesley/skellington)
[](https://rubygems.org/gems/skellington)
[](http://pikesley.mit-license.org)
# Skellington
Extremely opinionated generator for your [Sinatra](http://www.sinatrarb.com/) app or [Jekyll](https://jekyllrb.com/) site. Sets up:
* Sinatra
* [Rspec](http://rspec.info/)
* [Jasmine](http://jasmine.github.io/2.0/introduction.html)
* [Bootstrap](http://getbootstrap.com/)
* [Compass](http://compass-style.org/)
* An MIT License file
* A Code-of-Conduct file
* Jekyll
* [Jekyll](https://jekyllrb.com/)
* [Bootstrap](http://getbootstrap.com/)
* Reasonable default things
* An MIT License file
* A Code-of-Conduct file
Should work fine for both RVM- and rbenv-based setups
## Installation
git clone https://github.com/pikesley/skellington
cd skellington
bundle
rake
rake install
or just
gem install skellington
## Usage
### Sinatra
$ skellington generate naming-things-is-hard --licensor 'Beyoncé'
Generating ... done
Your new Sinatra app NamingThingsIsHard has been created
(Note that 'naming-things-is-hard' has been changed to 'naming_things_is_hard' because Ruby finds '-'s troubling)
Now do
cd naming_things_is_hard
bundle
bundle exec rake
And presuming that passes OK
git add .
git commit -m 'First commit'
Then try (in 2 different windows)
bundle exec rake run:sass
bundle exec rake run:app
which will launch Compass and then run the app (at http://localhost:9292)
For post-install hints, try
skellington postinstall
### Jekyll
$ gem install skellington
$ skellington generate hello-from-the-magic-tavern --framework jekyll
Generating ... done
Your new Jekyll site HelloFromTheMagicTavern has been created
(Note that 'hello-from-the-magic-tavern' has been changed to 'hello_from_the_magic_tavern' because Ruby finds '-'s troubling)
Now do
cd hello_from_the_magic_tavern
bundle
bundle exec jekyll serve
which will launch the site (at http://localhost:4000/hello-from-the-magic-tavern/)
And presuming that works OK
git add .
git commit -m 'First commit'
You should also fill in your name in LICENSE.md
### Options
* --framework
* Framework for which to generate
* Default: sinatra
* Possible values: sinatra, jekyll
* --bootstrap
* Bootstrap major version to include
* Default: 3
* Possible values: 3, 4
* VERY EXPERIMENTAL
* --licensor
* Name to include in the license file
---
This all assumes a bunch of things, at least:
* That you have a reasonable git installation
Also, it will set up the new project using whatever version of ruby is cromulent when you run it