Friday, March 18, 2022

Responsive testing for Iphone and Ipod resolution sizes

iPad-set6 1024 1366

iPad-set5 834 1112

iPad-set4 820 1180

iPad-set3 810 1080

iPad-set2 768 1024

iPad-set1 744 1133


iPhone(set1)--320--568

iPhone(set2)--375--812

iPhone(set3)--375--667

iPhone(set4)--390--844

iPhone(set5)--414--896

iPhone(set6)--414--736

iPhone(set7)--428--926

iPhone(set8)--428--926

iPhone(set9)--476--847



Desktop(set5)--1920--1080

Desktop(set4)--1366--768

Desktop(set3)--1440--900

Desktop(set2)--1536--864

Desktop(set1)--1024--768

Labels:

Saturday, December 25, 2021

Angular Points

1.  Angular   Peer  Dependencies.

What are peer dependencies in a Node module?

A simple explanation of the peerDependencies field in the package.json file


{

  //...

  "peerDependencies": {

    "libraryName": "1.x"

  }

}

You might have already seen dependencies and devDependencies, but not peerDependencies.

dependencies are the packages your project depends on.

devDependencies are the packages that are needed during the development phase. Say a testing framework like Jest or other utilities like Babel or ESLint.

In both cases, when you install a package, its dependencies and devDependencies are automatically installed by npm.

peerDependencies are different. They are not automatically installed.

When a dependency is listed in a package as a peerDependency, it is not automatically installed. Instead, the code that includes the package must include it as its dependency.

npm will warn you if you run npm install and it does not find this dependency.


Example: let’s say package a includes dependency b:

a/package.json

{

  //...

  "dependencies": {

    "b": "1.x"

  }

}

Package b in turn wants package c as a peerDependency:

b/package.json

{

  //...

  "peerDependencies": {

    "c": "1.x"

  }

}

In package A, we must therefore add c as a dependency, otherwise when you install package b, npm will give you a warning (and the code will likely fail at runtime):


a/package.json

{

  //...

  "dependencies": {

    "b": "1.x",

    "c": "1.x"

  }

}

The versions must be compatible, so if a peerDependency is listed as 2.x, you can’t install 1.x or another version. It all follows semantic versioning.

Download my free Node.js Handbook and check out my courses!

Monday, September 7, 2020

Meanings 7 Sep 2020

 

                         trade-off  (OR) tradeoff  == What you are getting and what you are giving up

































Tuesday, March 5, 2019

new











Saturday, December 29, 2018

dec 29 2018