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

mojito-shaker

v4.3.2

Published

Compiles and deploys asset rollups for Mojito applications.

Downloads

383

Readme

Shaker

Shake it!

Shaker is a powerful static asset manager for Mojito applications. It gives users absolute control in transforming, validating, uploading, organizing, and combining resources in order to maximize performance and build dynamic applications.

For more information, please see the online documentation.

Build Status

Installation

Shaker can be installed either locally or globally (using -g option), but we encourage you to install it locally, since the reference to the inner mojits will be relative to the app.

  1. Get the mojito-shaker npm package and install it:

     $ cd myMojitoApp
     $ npm install mojito-shaker [-g]
  2. If you installed it locally you will have to link it:

     $ cd ./node_modules/mojito-shaker/ && sudo npm link
  3. Confirm that Shaker has been installed correctly by running:

     $ mojito-shake
  4. If you got some error, check if you have correctly configured the Node environment. You can try to set the right $NODE_PATH to the modules using:

     $ export NODE_PATH=:$NODE_PATH:`npm root -g`

Quick Start

Within a Mojito application root folder:

Edit application.json to configure the mojitDirs and the HTMLFrame so that it looks like:

[
    {
        "settings": [ "master" ],
        "mojitsDirs": ["mojits","node_modules/mojito-shaker/mojits"],
        "specs": {
            "htmlframe": {
                "type": "ShakerHTMLFrameMojit"
            }
        }
    }
]

Note: If you installed mojito-shaker globally you will have to point to the absolute path instead.

Execute Shaker and Start the server:

$ mojito-shake [--context "{key1}:{value1}[,{key2}:{value2}]"] [--run]
$ mojito start [--context "{key1}:{value1}[,{key2}:{value2}]"]

Go to URL:

http://localhost:8666/

Documentation

You can access the documentation here: http://developer.yahoo.com/cocktails/shaker

If you want to build and contribute to the documentation, you will have to install Sphinx and under /docs run:

$ make html

Licensing and Contributions

Shaker is licensed under a BSD license.

To contribute to the Shaker project, please review the Mojito Contributor License Agreement.

Dependencies (Third-party libraries)

gear, async, mkdirp, mime, and optionally knox to use the S3 task.

Credits

The following image is used in accordance with the Creative Commons 2.0 License:

http://www.flickr.com/photos/breatheindigital/4623226056/