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

yake

v0.2.0

Published

Yet another implementation of jake - with a twist

Downloads

9

Readme

Yake

The name, __Y__et another j/Y/R AKE.

Why - thats takes a bit longer.

Like a number of folks I got tired of grunt and gulp with all their dependencies and having to learn how to use plugins. Also I am a bit old school having been brought up on (and before) make. Though I have used make in a number of php and js projects it is a bit too temperamental for my taste, does not translate to the modern generation well, and further php and js projects tend not to require the file task dependencies that are makes diet.

I was introduced to using npm together with ./taskfile for building and really liked the simplicity. However when one has node+javascript available writing even a small shell script does not taste right. I have been spoiled by node+javascript+chrome debugger.

Hence I went looking for a simple javascript solution.

That's when I found jake, and a very nice tool it is too.

But still it seemed a little too sophisticated, and by now I was looking for a little javascript project where I could play around with functional programming ideas that I had been reading about.

So I got the idea of implementing a cut down jake in my version of a functional approach.

Requirements

So this is the list of my requirements:

  • written in javascript and node
  • run either like Rake/jake or as ./taskfile (see usage)
  • easy command line execution
  • undertand preresuisite tasks
  • be lightweight (both in number of dependencies and the length of the task file). If it is as convenient as taskfile I will be satisfied
  • support task descriptions and -T option
  • pass through colored output for example from webpack

On top of that some things it did not have to do:

  • have file tasks like r/jake
  • plugins for things like webpack, less etc - simply use the command line

And finally things I might get it to do eventually if I find the need:

  • have watch tasks built in
  • async tasks
  • passing arguments from the command line through to task action functions

Install

Simple

	npm --save-dev install yake

Usage

As noted above, a goal was to allow this tool to be used in either of two ways.

As a command

As in

	yake [options] taskname arg1 arg2 .... argn
	
	where options are:
	
		-T --showTasks 	show all tasks with descriptions
		-f --file			path to a config file, defaults to one of ['yakefile']