Comparing version 0.1.2 to 0.1.3
var watch = require('node-watch'); | ||
function initConfig(config) { | ||
config.declarations = config.declarations !== undefined ? config.declarations : false; | ||
config.configFile = config.configFile ? config.configFile : 'package.json'; | ||
@@ -11,2 +12,11 @@ config.tempFolder = config.tempFolder ? config.tempFolder : 'dist'; | ||
function createCommand(config) { | ||
var cmd = 'tsc --p "' + config.configFile + '"'; | ||
if(config.declarations) | ||
cmd += ' --declaration'; | ||
return cmd; | ||
} | ||
module.exports = function(config) { | ||
@@ -17,3 +27,3 @@ return { | ||
config.exec('tsc --p ' + config.configFile, () => { | ||
config.exec(createCommand(config), () => { | ||
if(!config.browserify) | ||
@@ -32,3 +42,3 @@ return; | ||
config.exec('tsc --p ' + config.configFile + ' --watch'); | ||
config.exec(createCommand(config) + ' --watch'); | ||
@@ -62,5 +72,6 @@ if(!config.browserify) | ||
dest: 'public/react.js', | ||
browserify: true | ||
browserify: true, | ||
declarations : false | ||
} | ||
} | ||
} |
{ | ||
"name": "dev-watch", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Watch files and compile/transform them for development purpose", | ||
@@ -5,0 +5,0 @@ "main": "./lib/dev-watch", |
@@ -52,1 +52,8 @@ # dev-watch | ||
``` | ||
## Short road-map | ||
* Add tar/zlib module | ||
* Add 'custom' module | ||
* Add 'text replacer' module | ||
* Add 'copier' module |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15783
330
59
2