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

make-watch

v0.0.2

Published

Continuously run Make in watch mode

Downloads

4

Readme

make-watch

Build Status npm version npm downloads MIT

Continuously run Make in watch mode


Attention - This project isn't completed yet. Feel free to contribute with code, tests or documentation.


Motivation

Sometimes while developing we want to recompile a file or rerun all tests when something changes. make-watch allows you to run a make command automatically everytime that one of its dependency changes. How? make-watch analyzes your Makefile and extracts a dependency graph, so it can watch all and only the interested files. You no longer need to manually run commands if you change a file or the Makefile itself.

Installation

You can install make-watch using npm:

npm install --save-dev make-watch

or, if you prefer, you can install make-watch globally with:

npm install -g make-watch

Usage

Once you have installed make-watch, you can use it from the command line. Just replace make with make-watch. Here is an example:

# make
make-watch

# make target1.exe target2.exe
make-watch target1.exe target2.exe

# make target1.exe target2.exe
# also watch .cpp files in src and lib dir except config.cpp
# this is useful if you want to recompile your app
# when you create a new file for example
make-watch target1.exe target2.exe -I "src","lib" -x ".cpp" -i "config.cpp"

Options

| Option | Default | Description | |----------|---------------|--------------| | -V, --version | | output the version number | | -I, --include <files_and_dirs> | | list of additional files and directoris to watch | | -x, --extensions <extensions> | | list of extensions to hook into | | -i, --ignore <regex> | | ignore all additional files and directories that match this regex | | --no-makewatchrc | | whether or not to look up .makewatchrc | | -h, --help | | output usage information |

makewatchrc

Instead of cli options, you can use a .makewatchrc json file, here is an example:

{
  "include": ["src", "lib"],
  "extensions": [".cpp"],
  "ignore": "ignore.cpp"
}

make-watch will lookup to a .makewatchrc in the current directory. If one does not exist, it will travel up the directory tree trying to find it.

Change Log

This project adheres to Semantic Versioning.
Every release, along with the migration instructions, is documented on the Github Releases page.

Authors

Matteo Basso

Copyright and License

Copyright (c) 2017, Matteo Basso.

make-watch source code is licensed under the MIT License.