monaca-lib
Advanced tools
Comparing version 2.6.3 to 2.7.0
@@ -5,2 +5,6 @@ | ||
v2.7.0 | ||
---- | ||
* monaca: Stop live relaod in case of transpile project. | ||
v2.6.3 | ||
@@ -7,0 +11,0 @@ ---- |
{ | ||
"name": "monaca-lib", | ||
"version": "2.6.3", | ||
"version": "2.7.0", | ||
"description": "Monaca cloud and localkit API bindings for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
@@ -35,6 +35,9 @@ (function() { | ||
for (var i = 0; i < this.callbacks.length; i++) { | ||
var cb = this.callbacks[i]; | ||
cb(changeType, f); | ||
} | ||
this.doCallbacks(); | ||
// for (var i = 0; i < this.callbacks.length; i++) { | ||
// var cb = this.callbacks[i]; | ||
// cb(changeType, f); | ||
// } | ||
}.bind(this)); | ||
@@ -45,2 +48,9 @@ | ||
FileWatcher.prototype.doCallbacks = function() { | ||
for (var i = 0; i < this.callbacks.length; i++) { | ||
var cb = this.callbacks[i]; | ||
cb(changeType, f); | ||
} | ||
} | ||
FileWatcher.prototype.stop = function() { | ||
@@ -47,0 +57,0 @@ if (this.filePath) { |
@@ -18,2 +18,11 @@ var webpackConfigFile = process.argv[2]; | ||
compiler.plugin("compile", function(params) { | ||
process.send( { monacaTranspileLifecycle: true, action: 'start-compile' } ); // start compile | ||
}); | ||
compiler.plugin("after-emit", function(compilation, cb) { | ||
process.send( { monacaTranspileLifecycle: true, action: 'end-compile' } ); // finish compile | ||
cb(); | ||
}); | ||
if (watch) { | ||
@@ -20,0 +29,0 @@ compiler.watch({ |
Sorry, the diff of this file is too big to display
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
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
32128785
691
193292