npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slush-velvet

v1.4.5

Published

Generator for Velvet static-site generator projects.

Downloads

25

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 --global

If 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 vips

Finally, create a directory for your site, and run the generator:

slush velvet

You 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 vips

Finally, you'll want to install the requisite node modules from npm:

npm install slush slush-velvet --global

Now, create a directory, and start the generator:

mkdir my-site
cd my-site
slush velvet

Working 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 build

That 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 develop

This 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 deploy

This 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=production

Collaborating 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 master

Getting 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.