slush-velvet
v1.4.5
Published
Generator for Velvet static-site generator projects.
Downloads
34
Readme
Velvet
This generator is the starting point for a Velvet-based website. It contains all the modules, boilerplate, and built-in process to get you started building and deploying a full website.
Created by Ronik Design and used to speed up internal development.
Getting started (Experienced)
To start you will need slush and this generator installed.
npm install slush slush-velvet --globalIf you are on OSX, in order to install it properly you will also need VIPS. It handles the image processing.
That is as easy as:
brew install vipsFinally, create a directory for your site, and run the generator:
slush velvetYou will be guided through a series of questions to help you set up your site.
Getting started (Novice on OSX)
You'll want to start by installing Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Then you'll need to install node, and VIPS:
brew install node vipsFinally, you'll want to install the requisite node modules from npm:
npm install slush slush-velvet --globalNow, create a directory, and start the generator:
mkdir my-site
cd my-site
slush velvetWorking with my site
You'll find documentation within the newly-created site's README that offers more detail, but the basics are as follows.
Build your site from source in the site folder:
gulp buildThat will create an intermediary .build folder, and a public output public
folder. To create a production-ready build add --production to the command,
and minification and revisioning will be applied.
Develop your site, watching files for changes and updating on the fly:
gulp developThis launches a Browser Sync local dev server, and keeps track of your files, reloading the browser when the html, css or js changes.
Deploy your site to S3:
gulp deployThis will deploy the site to an S3 bucket with a name derived from your staging_url
if it exists, otherwise, from your url. To deploy to your production url bucket
add --target=production, and additionally, to optimized the build as above, add
--production. So, a standard deployment string for a full site would look like this:
gulp deploy --production --target=productionCollaborating with git
Create your git repository in Github. Don't add any default files.
$ git init
$ git remote add origin [email protected]:[repo-name].git
$ git add .
$ git commit -am "Initial commit"
$ git branch --set-upstream-to=origin/master
$ git pull --rebase
$ git push origin masterGetting To Know Slush
Slush is a tool that uses Gulp for project scaffolding.
Slush does not contain anything "out of the box", except the ability to locate installed slush generators and to run them with liftoff.
To find out more about Slush, check out the documentation.
Contributing
See the CONTRIBUTING Guidelines
Support
If you have any problem or suggestion please open an issue here.
