sábado, 14 de noviembre de 2020

Convert PWA - Project angular/ionic

     "@ionic/storage": "2.2.0",

    "@angular/animations": "~7.2.8",

    "angular2-moment": "^1.9.0",

    "angular2-json2csv": "^1.1.2",

    "base64-img": "^1.0.4",

    "chart.js": "^2.7.3",

    "dom-to-image": "^2.5.2", 

    "jquery": "^3.2.1",

    "jquery-mask-plugin": "^1.14.15",

    "jspdf": "^1.4.1",

    "lodash": "^4.17.10",

    "moment": "^2.18.1",

    "ng-socket-io": "^0.2.4",

    "ng2-filter-pipe": "^0.1.10",

    "ng2-order-pipe": "^0.1.5",

    "ngx-device-detector": "^1.3.5",

    "ngx-infinite-scroll": "^6.0.1",

    "ngx-mask": "^7.3.5",

    "ngx-paginate": "^1.0.5",

    "ngx-pagination": "^3.0.1",

    "ngx-papaparse": "^4.0.4",

    "ngx-socket-io": "^3.0.1",

    "ngx-spinner": "^6.1.2",

    "pickerjs": "^1.2.0",

    "html2canvas": "^0.5.0-beta4",

    "rxjs-compat": "^6.2.2",

    "socket.io": "^2.1.1",

    "socket.io-client": "^2.1.1",

    "sweetalert": "^2.1.2",

    "sweetalert2": "^8.16.2",

    "uuid": "^3.3.2",


    "@ng-select/ng-select": "^2.11.2",

    "angular-in-memory-web-api": "^0.3.2",

    "pdfmake": "^0.1.63",

    "@angular/http": "~7.2.8",

    "http-server": "^0.11.1"               



//install  para el map

> npm install @ionic-native/geolocation

> npm install @ionic-native/camera


// ionic cordova plugin add cordova-plugin-geolocation

// npm install @ionic-native/geolocation

// ionic cordova plugin add cordova-plugin-camera

// npm install @ionic-native/camera

//ionicframework.com/docs/native/geolocation

//ionicframework.com/docs/native/camera

=====


//config socket


src>polyfills.ts

import 'zone.js/dist/zone';  // Included with Angular CLI.

(window as any).global = window;


//prepare push

npm install @angular/service-worker


//cambiar el nombre de angular.js

{

  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",

  "version": 1,

  "defaultProject": "app",

  "newProjectRoot": "projects",

  "projects": {

    "app": {

 


ng add @angular/pwa --project app /* (el nombre que configuro en angular.js)*/


=======/

luego para cambiar el nombre pwa es en

ngsw-config.json

>  "$schema": "./node_modules/@angular/service-worker/config/schema.json",

  "index": "/index.html",

  "assetGroups": [

    {

      "name": "app",<--cambiar este nombre que sale en pwa al instalar


>tambien en manifest.webmanifest


No hay comentarios.:

Publicar un comentario