diff --git a/gulpfile.js b/gulpfile.js index 13e3280..b67b7bb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -49,6 +49,22 @@ gulp.task('sass', function() { .pipe(gulp.dest('css')); }); +gulp.task('pre-install', function() { + pump([ + gulp.src('package.json'), + replace('debonline.dyndns.org', 'git.focasoftware.com'), + gulp.dest('') + ]); +}) + +gulp.task('post-install', function() { + pump([ + gulp.src('package.json'), + replace('git.focasoftware.com', 'debonline.dyndns.org'), + gulp.dest('') + ]); +}) + gulp.task('pre-commit', function() { pump( [ diff --git a/package.json b/package.json index 044a5ba..5a1b8c7 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,9 @@ "initdev": "npm install gulp --global && npm install && npm install -g jshint", "gulp-pre-commit": "gulp pre-commit", "compile": "gulp uglify && gulp sass", - "postinstall": "npm install foca-abm-plazo-pago foca-abm-precios-condiciones foca-abm-sectores foca-admin-seguimiento foca-botonera-principal foca-busqueda-cliente foca-configuracion foca-crear-hoja-ruta foca-crear-nota-pedido foca-crear-remito foca-directivas foca-filtros foca-hoja-ruta foca-login foca-modal foca-modal-busqueda-productos foca-modal-chofer foca-modal-cotizacion foca-modal-detalle-hoja-ruta foca-modal-domicilio foca-modal-flete foca-modal-moneda foca-modal-nota-pedido foca-modal-precio-condiciones foca-modal-proveedor foca-modal-remito foca-modal-tarifa-flete foca-modal-transportista foca-modal-vehiculo foca-modal-vendedores foca-nombre-empresa foca-seguimiento foca-teclado", + "postinstall": "npm install foca-abm-plazo-pago foca-abm-precios-condiciones foca-abm-sectores foca-abm-vehiculo foca-admin-seguimiento foca-botonera-principal foca-busqueda-cliente foca-configuracion foca-crear-cobranza foca-crear-hoja-ruta foca-crear-nota-pedido foca-crear-remito foca-directivas foca-filtros foca-hoja-ruta foca-login foca-modal foca-modal-banco foca-modal-busqueda-productos foca-modal-cheque foca-modal-chofer foca-modal-cobrador foca-modal-cotizacion foca-modal-detalle-hoja-ruta foca-modal-domicilio foca-modal-efectivo foca-modal-factura foca-modal-flete foca-modal-localidad foca-modal-moneda foca-modal-nota-pedido foca-modal-precio-condiciones foca-modal-proveedor foca-modal-provincia foca-modal-remito foca-modal-tarifa-flete foca-modal-transportista foca-modal-vehiculo foca-modal-vendedores foca-nombre-empresa foca-seguimiento foca-teclado", "actualizar": "git pull origin master", - "electron": "electron .", - "electron-build": "gulp uglify && gulp html && gulp sass && electron .", - "install-dev": "npm install angular angular-cookies angular-i18n angular-ladda angular-route angular-sanitize angular-ui-swiper bootstrap font-awesome gulp gulp-clean gulp-connect gulp-jshint jshint pump gulp-replace gulp-sass gulp-angular-templatecache gulp-htmlmin gulp-uglify gulp-uglify-es jquery ladda leaflet ngstorage node-sass uglify ui-bootstrap4 git+http://git.focasoftware.com/npm/foca-abm-plazo-pago.git git+http://git.focasoftware.com/npm/foca-abm-precios-condiciones.git git+http://git.focasoftware.com/npm/foca-abm-sectores.git git+http://git.focasoftware.com/npm/foca-abm-vehiculo.git git+http://git.focasoftware.com/npm/foca-admin-seguimiento.git git+http://git.focasoftware.com/npm/foca-botonera-principal.git git+http://git.focasoftware.com/npm/foca-busqueda-cliente.git git+http://git.focasoftware.com/npm/foca-configuracion.git git+http://git.focasoftware.com/npm/foca-crear-cobranza.git git+http://git.focasoftware.com/npm/foca-crear-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-crear-nota-pedido.git git+http://git.focasoftware.com/npm/foca-crear-remito.git git+http://git.focasoftware.com/npm/foca-directivas.git git+http://git.focasoftware.com/npm/foca-filtros.git git+http://git.focasoftware.com/npm/foca-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-login.git git+http://git.focasoftware.com/npm/foca-modal.git git+http://git.focasoftware.com/npm/foca-modal-busqueda-productos.git git+http://git.focasoftware.com/npm/foca-modal-cheque.git git+http://git.focasoftware.com/npm/foca-modal-chofer.git git+http://git.focasoftware.com/npm/foca-modal-cobrador.git git+http://git.focasoftware.com/npm/foca-modal-cotizacion.git git+http://git.focasoftware.com/npm/foca-modal-detalle-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-modal-domicilio.git git+http://git.focasoftware.com/npm/foca-modal-efectivo.git git+http://git.focasoftware.com/npm/foca-modal-factura.git git+http://git.focasoftware.com/npm/foca-modal-flete.git git+http://git.focasoftware.com/npm/foca-modal-moneda.git git+http://git.focasoftware.com/npm/foca-modal-nota-pedido.git git+http://git.focasoftware.com/npm/foca-modal-precio-condiciones.git git+http://git.focasoftware.com/npm/foca-modal-proveedor.git git+http://git.focasoftware.com/npm/foca-modal-remito.git git+http://git.focasoftware.com/npm/foca-modal-tarifa-flete.git git+http://git.focasoftware.com/npm/foca-modal-transportista.git git+http://git.focasoftware.com/npm/foca-modal-vehiculo.git git+http://git.focasoftware.com/npm/foca-modal-vendedores.git git+http://git.focasoftware.com/npm/foca-seguimiento.git git+http://git.focasoftware.com/npm/foca-teclado.git git+http://git.focasoftware.com/npm/foca-modal-banco.git git+http://git.focasoftware.com/npm/foca-modal-localidad.git git+http://git.focasoftware.com/npm/foca-modal-provincia.git" + "install-dev": "gulp pre-install && npm install && gulp post-install" }, "pre-commit": [ "gulp-pre-commit"