Socket
Socket
Sign inDemoInstall

dev-watch

Package Overview
Dependencies
304
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dev-watch

Watch files and compile/transform them for development purpose


Version published
Weekly downloads
8
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

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",
    "isVerbose": true,
    "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

Last updated on 10 Apr 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc