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

generator-tight

v0.0.5

Published

Bolt boilerplate generator

Downloads

5

Readme

Tight

Build Status

Tighten that Bolt! This generator will set up Bolt for you with a local extension and a feature-packed theme ready for you to make the best website the world has yet seen.

Important! This is not designed to be a "ready-to-deploy" theme. It is designed to be barebones boilerplate so you can get to making what you need to make.

Installing and Running

You're going to need to have the command line version of Composer installed (so no php composer.phar business), and Node.js/npm. This uses Yeoman and Gulp (and potentially Bower), so you're going to want to have those installed.

npm -g install yo gulp bower

Then you're going to want to install this here generator

npm -g install generator-tight

After that, you're ready to go! Make the directory you want to put the site in, cd into it, and then run the generator

mkdir my-awesome-website
cd my-awesome-website
yo tight

You'll be asked some questions and your site generated. Useful README.md documents will be placed in their relevant locations, so read up on those.

Bolt

Tight sets up Bolt sensibly. It works out the Composer install for you, and gives you some good default config options to roll with.

Note that, by default, we disable all default routes to listing, content and taxonomy pages. They're just commented out, so you can re-enable them really easily!

We've also got SEO built right in! The Sitemap extension is installed by default, and the theme can intelligently build metadata.

Ready to deploy? There are scripts for optimising the installation of Bolt for deployment by any means, but there is also an FTP deploy script baked right in.

Theme

Powered by Gulp. Full of file-system watching BrowserSync action so that you never have to refresh your browser again. Edit a file, static assets are recompiled and injected into your browser. Easy.

Client dependencies can be managed with either Bower or npm (or both!).

JS can be written just as standard JS, or it can utilise Browserify for some good module management. RequireJS support is coming.

CSS can use a preprocessor (currently just LESS but SASS support is coming), or you can use normal CSS. CSS comes with cssnext so you can use the CSS of the future, today! That means variables and other cool stuff. The LESS mode comes with some super simple classes to get you started - but you can just delete that.

The templates are set up so you don't have to write any more than you need to. We make good use of template inheritance so everything is extensible.

When you're ready for production, you can be comfortable knowing that your static assets will be minified, compressed and cached for a long time in the browser.

Extension

This comes with a really simple local extension so you can author any custom PHP code for your website. It has a couple of custom twig functions required for the theme to work, but it also gets rid of all of that boilerplate and comes with its own autoloader!

Contributing/Tests

Tests are done using Zombie.js and, as such, require io.js as opposed to Node. So you'll have to have that installed if you want to run the tests.

npm test

License

The MIT License (MIT)

Copyright (c) 2015 Christian Silver

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.