ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
609 stars 300 forks source link

startWatchTimeout not working #1496

Open mariohmol opened 5 years ago

mariohmol commented 5 years ago

Short description of the problem:

This seems not be working: ionic_start_watch_timeout

https://github.com/ionic-team/ionic-app-scripts/blob/master/README.md

ionic serve --startWatchTimeout 30000

What behavior are you expecting?

  1. Run ionic serve --startWatchTimeout 30000
  2. After the first change in code.. the watch should print in console and it would have to wait 30s to start compiling
Ionic:

   ionic (Ionic CLI)  : 4.5.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.8

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 16 other plugins)

System:

   Android SDK Tools : 25.2.5 (/Users/mariohmol/Library/Android/sdk)
   ios-deploy        : 1.9.2
   ios-sim           : 3.1.1
   NodeJS            : v9.11.2 (/usr/local/bin/node)
   npm               : 6.4.1
   OS                : macOS High Sierra
   Xcode             : Xcode 9.4.1 Build version 9F2000
imhoffd commented 5 years ago

@mariohmol Just to confirm, have you tried setting it via the package.json config?

mariohmol commented 5 years ago

I used the command line, using the export to ENV and package.json

"config": {
    "ionic_start_watch_timeout": 2000
  }
mariohmol commented 5 years ago

@dwieeb Do you have any good reference or explanation in how the startWatchTimeout works?