It is possible to improve time of build/rebuild?

Recently I updated my project from alpha to 2.0.0-beta.3 and also change my webpack configuration to gulp from here:
https://github.com/driftyco/ionic-conference-app/blob/master/gulpfile.js

When I type “ionic serve” command on my lenovo laptop i have:

Running ‘serve:before’ gulp task before serve
[10:18:59] Starting ‘sass’…
[10:18:59] Starting ‘html’…
[10:18:59] Starting ‘ftest/onts’…
[10:18:59] Starting ‘scripts’…
[10:18:59] Finished ‘scripts’ after 71 ms
[10:18:59] Finished ‘fonts’ after 100 ms
[10:18:59] Finished ‘html’ after 125 ms
[10:19:01] Finished ‘sass’ after 1.69 s
[10:19:01] Starting ‘watch’…
✗ TypeScript error: test/app/components/activities/activity_item/activity_item.ts(3,27): Error TS2307: Cannot find module ‘angular2-moment/TimeAgoPipe.js’.
✗ TypeScript error: test/app/components/activities/activity_item/activity_item.ts(44,114): Error TS2339: Property ‘sourcingOrigin’ does not exist on type ‘Candidate’.
✗ TypeScript error: test/node_modules/angular2/src/facade/promise.d.ts(1,10): Error TS2661: Cannot re-export name that is not defined in the module.
9.3 MB bytes written (48.45 seconds)
[10:20:00] Finished ‘watch’ after 59 s
[10:20:00] Starting ‘serve:before’…
[10:20:00] Finished ‘serve:before’ after 43 μs

Running live reload server: undefined
Watching: 0=www//*, 1=!www/lib//*
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

ionic $ ✗ TypeScript error: test/app/components/activities/activity_item/activity_item.ts(3,27): Error TS2307: Cannot find module ‘angular2-moment/TimeAgoPipe.js’.
✗ TypeScript error: test/app/components/activities/activity_item/activity_item.ts(44,114): Error TS2339: Property ‘sourcingOrigin’ does not exist on type ‘Candidate’.
✗ TypeScript error: test/node_modules/angular2/src/facade/promise.d.ts(1,10): Error TS2661: Cannot re-export name that is not defined in the module.
9.3 MB bytes written (10.40 seconds)
JS changed: www/build/js/app.bundle.js
JS changed: www/build/js/app.bundle.js.map

package.js

{
“dependencies”: {
“angular2”: “2.0.0-beta.6”,
“angular2-moment”: “^0.4.3”,
“es6-promise”: “3.0.2”,
“es6-shim”: “^0.33.13”,
“ionic-angular”: “2.0.0-beta.3”,
“ionic-gulp-browserify-typescript”: “^1.0.1”,
“ionic-native”: “^1.1.0”,
“ionicons”: “3.0.0-alpha.3”,
“lodash”: “^4.0.1”,
“moment”: “^2.11.1”,
“reflect-metadata”: “0.1.2”,
“rxjs”: “5.0.0-beta.0”,
“zone.js”: “0.5.14”
},
“devDependencies”: {
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “^1.0.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^1.0.0”
},
“cordovaPlugins”: [
“cordova-plugin-whitelist”,
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-splashscreen”,
“ionic-plugin-keyboard”,
“cordova-plugin-statusbar”
],
“cordovaPlatforms”: [
“ios”,
{
“platform”: “ios”,
“version”: “”,
“locator”: “ios”
}
],
}

Build normally takes 40-50 seconds
Rebuild ts takes 10 seconds

Is there any way to reduce time of build/rebuild?
In alpha this take less time.

2 Likes