0.1.7 • Published 7 years ago

dev-watch v0.1.7

Weekly downloads
20
License
Unlicense
Repository
-
Last release
7 years ago

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
0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago