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

@the-goat/cli

v2.0.15

Published

![npm version](https://badgen.net/npm/v/@the-goat/goat?icon=npm) ![npm downloads](https://badgen.net/npm/dt/@the-goat/goat?icon=npm) ![npm weekly downloads](https://badgen.net/npm/dw/@the-goat/goat?icon=npm) ![npm licence](https://badgen.net/npm/license/@

Downloads

17

Readme

npm version npm downloads npm weekly downloads npm licence last commit github issues github stars David dependencies David devdependencies

Goat

Goat is a simple to use taskrunner for frontend development.

Why Goat

Instead of defining and maintaining separate setups for compiling, linting and building your code, goat aims to have a predefined, flexible setup that's easy to initialize and to keep up to date.

Available Modules

Goat uses module which define tasks. Per project you can choose which tasks you want to use.

Also goat includes an integrated watch command which combines all watch enabled tasks in one command.

The following modules are already included:

Styles

A complete workflow to compile your SASS/SCSS. It Integrates an autoprefixer, compass support and a minifier.

Babel

Automatically compile your ES6 to ES5 compatible code. Files suffixed with .es6.js will be detected and converted to work according to the defined browser support settings.

Eslint

Lint files suffixed with .es6.js according to the AirBnB standard

Modernizr

Generate custom modernizr.js files by analizing your css and js files.

Fractal

Initialize a styleguide using Fractal.

Using Third party modules

Goat modules are installable directly from Goat itself. By running goat module add MODULE_NAME, goat will install the module (npm package) globaly on your system and add it to the configuration. After this, the module can be used on your system.

Usage

Initialize

To start using goat in your project, just run goat init.

Check available Tasks

Run goat to display the help which lists all the available tasks.

Watch project

Run all watch enabled tasks simultaneously typing goat watch in your terminal.

Building a module

Each goat module must include two things.

  1. A goat property inside the package.json "goat": { "name": "Module name", "description": "Brief description of the functionality" }
  2. a entry file which exports a function, this function receives the Goat class, which can be used to build your module.
  module.exports = function my_module(Goat) {
    return new Goat({
      name: 'My Module',
      command: 'my-module',
      description: 'a example module',
      schema: require('./src/schema'), // localtion of a schema describing the module config
      method: (config) => {
        // method to be executed
      },
      watch: (config) => {
        // Optional method which is executed when the -w flag is added or by running goat watch
        // config includes a event watch property
        const { events } = config;
        events.watch({
          name: 'Watch event',
          pattern: '**/*.s+(a|c)ss',
          events: /file:/,
          method: () => {
            //method to be executed
          },
        });
      },
      init: {
        configuration: require('./init/configuration.json'), // default configuration for your module
      },
    });
  };

License

All code released under MIT