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

lynchburg

v3.1.0

Published

Lynchburg is a front-end starting point using Gulp 4, Webpack, Babel, and Browsersync.

Downloads

12

Readme

Lynchburg

Lynchburg logo

"It’s not a framework, it’s a starting point."

Lynchburg is a collection of Gulp tasks for common frontend development tasks.

  • Compiles and minifies Sass to CSS and includes Autoprefixer and the responsive typography from Rucksack
  • Formats source sass files using CSScomb according to the .csscomb.json configuration file.
  • Bundles JS files using Webpack.
  • Minifies images.
  • Production builds, which removes sourcemaps, minifies output CSS/JS, and compresses images.
  • Watches source files and runs the appropriate tasks when changes are detected.
  • Uses Browsersync to proxy a local server and update browsers when files are updated.

Install

$ npm install lynchburg

or

$ yarn add lynchburg

Prerequisites

  • Node/npm
    • If you're running macOS, the easiest way to download Node is to first install Homebrew, then run brew install node.
    • On Linux, the easiest way is to use nvm.
  • Gulp CLI
    • npm install -g gulp-cli or yarn global add gulp-cli

Basic Usage

Create a gulpfile.js with the options you want to override from the default config. If you're using Bedrock for a WordPress site, your config will probably want to look like this:

const config = {
    src: {
        views: 'web/app/themes/SITE_NAME/**/*.{html,phtml,php,twig}'
    },
    dist: {
        dir: 'web/app/themes/SITE_NAME/dist'
    },
    options: {
        browsersync: {
            proxy: 'SITE_NAME.local'
        }
    }
};

module.exports = require('lynchburg')(config);

You can now use any of Lynchburg's gulp tasks! Run gulp to run the default task and trigger a build, start Browsersync, and start watching files. Pass the --production flag to run in production mode. For example, to do a production build:

$ gulp build --production

You can see all the available tasks and a description of what each one does by running the following command:

$ gulp --tasks

Configuration

Lynchburg can be configured by passing it a config object that overrides any of the keys in the default config object. The passed config will be merged in with the default config, so you needn't redefine any keys you don't need to change.

CSScomb

CSScomb can be disabled by setting config.options.csscomb to false.