Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dev-watch

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-watch

Watch files and compile/transform them for development purpose

  • 0.1.4
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

dev-watch

NPM repository for dev-watch - Watch and compile/transform folders/files

Installation

npm install -g dev-watch

Add to your JSON configuration file (it can be package.json) a property devWatch containing an Object with the different watchers you want to use.

Here is a sample :

{
  "devWatch": {
    "cmd": "dev",
    "runs": [
      {
        "type": "typescript",
        "tempFolder": "react/bin",
        "rootFile": "root",
        "dest": "public/react.js"
      },
      {
        "type": "sass",
        "srcFolder": "styles",
        "destFolder": "public/styles"
      }
    ]
  }
}

The cmd property defines the kind of things to do :

CommandDescription
devCompile and transform everytime something changes
prodCompile and transform, then exit
cleanClean the destination folders/files (might be unsafe)

The runs property defines the watchers. Call dev-watch to get a list of the watchers and their properties.

Usage

dev-watch <configuration-file-path> [<cmd>]
dev-watch package.json
dev-watch package.json clean

Short road-map

  • Add tar/zlib module
  • Add 'custom' module
  • Add 'text replacer' module
  • Add 'copier' module

Keywords

FAQs

Package last updated on 05 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc