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 🙏

© 2026 – Pkg Stats / Ryan Hefner

grunt-lemonsync

v1.3.3

Published

A grunt plugin for working on LemonStand themes locally and pushing changes to stores.

Readme

grunt-lemonsync

A grunt plugin for working on LemonStand themes locally and pushing changes to stores.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-lemonsync --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-lemonsync');

The "lemonsync" task

Overview

In your project's Gruntfile, add a section named lemonsync to the data object passed into grunt.initConfig().

grunt.initConfig({
  lemonsync: {
    options: {
      // Options specific to your LemonStand store go here.
    },
    src: {
      // Local theme files go here.
    },
  },
});

Options

options.access_token (required)

Type: String

The LemonStand Access Token. You can load it via JSON as shown in the example (remember to store your token in a secure place and exclude it from commits).

options.store_host (required)

Type: String

The domain name of your LemonStand store. E.G. my-store.lemonstand.com.

options.theme_api_code (required)

Type: String

A unique code to identify your theme in LemonStand's backend. The code can contain only Latin symbols, digits and the hyphen symbol.

options.theme_repository (required)

Type: String

The git repository to clone the theme from. A /theme directory will be added to to your project.

options.clean (optional)

Type: String

Values:

  • local - replaces local theme files with store theme files
  • remote - deletes theme files from store that do not exist locally

You can use a flag to indicate whether you'd like to traget the local or remote theme. E.G. grunt --clean=local

Basic Usage Examples

In this example, the LemonStand Access Token is loaded via a JSON file.

{
  "lsAccessToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "lsStore": "my-store.lemonstand.com"
}
var target = grunt.option('clean') || false;

grunt.initConfig({

  lsConfig: grunt.file.readJSON('lemonstand-config.json'),

  lemonsync: {
      options: {
        access_token: '<%= lsConfig.lsAccessToken %>',
        store_host: '<%= lsConfig.lsStore %>',
        theme_api_code: 'my-first-custom-theme',
        theme_repository: 'https://github.com/lemonstand/ls2-theme-zest',
        clean: target
      },
      src: [
        'theme/content/**', 
        'theme/pages/**', 
        'theme/partials/**', 
        'theme/resources/**', 
        'theme/templates/**', 
        'theme/theme.yaml'
      ]
    }
});

Release History

  • 2016-11-14   v1.3.3   Bug fixes
  • 2016-11-14   v1.3.2   Doc updates
  • 2016-11-14   v1.3.1   Doc updates
  • 2016-11-14   v1.3.0   Download modified files from LS store
  • 2016-10-11   v1.2.1   Bug fixes
  • 2016-10-10   v1.2.0   Performance improvements
  • 2016-10-10   v1.1.0   Clone themes from git repository
  • 2016-09-06   v1.0.0   Download and install themes from git repository
  • 2016-09-04   v0.1.2   Added MIME type detection
  • 2016-09-04   v0.1.1   Updated package.json
  • 2016-09-04   v0.1.0   First release