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

v0.26.2

Published

Webhook or static S3-powered sites with JS framework selection, powerful Gulp tasks and more...

Downloads

99

Readme

slush-stencil npm release

Bootstrapping websites of all shapes and sizes projects. Build tools, and platform selection, supporting static sites with S3 deployment, Webhook CMS- powered sites, and a choice of three client-side JS frameworks (Knockout, Backbone, React/Flux/alt).

Created by Ronik Design and used to speed up internal development.

Features

  • Scaffold static sites and Webhook projects
  • Deploy easily to S3 (requires a properly configured AWS account. The easiest approach here is probably brew install awscli then aws configure)
  • Choose from one of three JS approaches, all using ES6 and webpack
    • Knockout (The most basic setup, for enhancing your static site with some client-side magic)
    • Backbone
    • React w/ alt & React Router
  • Choose from one of three CSS approaches, all using Stylus
    • Basic setup, using custom utils, project structure and BEM
    • Bootstrap, using bootstrap-stylus
    • Skeleton.css
  • Iconfont folder and auto compilation through Gulp (creates iconfonts automatically from SVG files and generates classes)
  • Image optimization
  • Gulp-based build tools are fast!
  • Other buzzwords and cool technologies...

Getting Started

Install your global dependencies.

$ npm install -g slush slush-stencil

Deployment is optional, you can use Stencil as a simple static site generator and collection of build tools, but hook into your own publishing process

Static platform

$ mkdir [sitename]
$ cd [sitename]
$ slush stencil

To develop:

$ gulp develop

And when you're ready to deploy to S3 (and you have your AWS credentials configured):

$ gulp deploy [--production]

Webhook platform

$ npm install -g wh grunt-cli

If this is a totally new Webhook project, create your Webhook site, then run Stencil:

$ wh create [sitename]
$ cd [sitename]
$ slush stencil

Warning! Stencil uses conflict resolution and allows you to reject overwriting files, BUT you could very easily overwrite something you care about as it spews a bunch of files and folders into your current directory and merges with your package.json. Be careful, try it out first on something you don't care about, commit or backup first. But also, feel free to run it again and again.

To develop:

$ gulp develop

When you're ready to deploy with webhook:

$ gulp deploy

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.