janl opened a new pull request #928: feat: add package-lock.json, speeds up npm 
i with npm5+
URL: https://github.com/apache/couchdb-fauxton/pull/928
 
 
   [npm5](http://blog.npmjs.org/post/161276872334/npm5-is-now-npmlatest) comes 
with a  new lock file feature that speeds up installs.
   
   On my machine with cold cache, it shaves off a minute off of `npm install`, 
subsequent installs are a lot faster too.
   
   ```
   # without package-lock.json
   rm -rf node_modules
   npm cache clear --force
   time npm install
   [?]
   real 2m34.520s
   user 1m30.825s
   sys          0m41.041s
   
   # with package-lock.json
   rm -rf node_modules
   npm cache clear --force
   time npm install
   [?]
   real 1m28.122s
   user 1m10.513s
   sys  0m31.537s
   ```
   
   Note that after running `npm install` again, I got updates to the 
`package-lock.json` file locally, and I?m not sure which version we need to put 
into git:
   
   ```diff
   diff --git a/package-lock.json b/package-lock.json
   index 4b825299..1cbca7c2 100644
   --- a/package-lock.json
   +++ b/package-lock.json
   @@ -5409,7 +5409,8 @@
            },
            "dezalgo": {
              "version": "1.0.3",
   -          "bundled": true,
   +          "resolved": 
"https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.3.tgz";,
   +          "integrity": "sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY=",
              "dev": true
            },
            "editor": {
   @@ -5424,7 +5425,8 @@
            },
            "fs-write-stream-atomic": {
              "version": "1.0.8",
   -          "bundled": true,
   +          "resolved": 
"https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.8.tgz";,
   +          "integrity": "sha1-5Jqt3yiPh9Rv+eiC8hahOrxAd4s=",
              "dev": true
            },
            "fstream": {
   @@ -5578,7 +5580,8 @@
                            },
                            "concat-map": {
                              "version": "0.0.1",
   -                          "bundled": true,
   +                          "resolved": 
"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz";,
   +                          "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
                              "dev": true
                            }
                          }
   @@ -5587,7 +5590,8 @@
                    },
                    "path-is-absolute": {
                      "version": "1.0.0",
   -                  "bundled": true,
   +                  "resolved": 
"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz";,
   +                  "integrity": "sha1-Jj2tpmqz8vsQv3+dJN2PPlcO+RI=",
                      "dev": true
                    }
                  }
   @@ -5858,7 +5862,8 @@
            },
            "normalize-git-url": {
              "version": "3.0.2",
   -          "bundled": true,
   +          "resolved": 
"https://registry.npmjs.org/normalize-git-url/-/normalize-git-url-3.0.2.tgz";,
   +          "integrity": "sha1-jl8Uvgva7bc+ByADEKpBbCc1D8Q=",
              "dev": true
            },
            "normalize-package-data": {
   @@ -5887,7 +5892,8 @@
            },
            "npm-install-checks": {
              "version": "3.0.0",
   -          "bundled": true,
   +          "resolved": 
"https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-3.0.0.tgz";,
   +          "integrity": "sha1-1K7N/VGlPjcjt7L5Oy7ijjB7wNc=",
              "dev": true
            },
            "npm-package-arg": {
   @@ -5912,12 +5918,14 @@
                      "dependencies": {
                        "core-util-is": {
                          "version": "1.0.2",
   -                      "bundled": true,
   +                      "resolved": 
"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz";,
   +                      "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
                          "dev": true
                        },
                        "isarray": {
                          "version": "1.0.0",
   -                      "bundled": true,
   +                      "resolved": 
"https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz";,
   +                      "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
                          "dev": true
                        },
                        "process-nextick-args": {
   @@ -5927,12 +5935,14 @@
                        },
                        "string_decoder": {
                          "version": "0.10.31",
   -                      "bundled": true,
   +                      "resolved": 
"https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz";,
   +                      "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
                          "dev": true
                        },
                        "util-deprecate": {
                          "version": "1.0.2",
   -                      "bundled": true,
   +                      "resolved": 
"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz";,
   +                      "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
                          "dev": true
                        }
                      }
   @@ -6227,7 +6237,8 @@
                            },
                            "concat-map": {
                              "version": "0.0.1",
   -                          "bundled": true,
   +                          "resolved": 
"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz";,
   +                          "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
                              "dev": true
                            }
                          }
   @@ -6236,7 +6247,8 @@
                    },
                    "path-is-absolute": {
                      "version": "1.0.0",
   -                  "bundled": true,
   +                  "resolved": 
"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz";,
   +                  "integrity": "sha1-Jj2tpmqz8vsQv3+dJN2PPlcO+RI=",
                      "dev": true
                    }
                  }
   @@ -6272,7 +6284,8 @@
                },
                "core-util-is": {
                  "version": "1.0.2",
   -              "bundled": true,
   +              "resolved": 
"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz";,
   +              "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
                  "dev": true
                },
                "isarray": {
   @@ -6287,7 +6300,8 @@
                },
                "string_decoder": {
                  "version": "0.10.31",
   -              "bundled": true,
   +              "resolved": 
"https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz";,
   +              "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
                  "dev": true
                },
                "util-deprecate": {
   @@ -6304,7 +6318,8 @@
            },
            "realize-package-specifier": {
              "version": "3.0.3",
   -          "bundled": true,
   +          "resolved": 
"https://registry.npmjs.org/realize-package-specifier/-/realize-package-specifier-3.0.3.tgz";,
   +          "integrity": "sha1-0N74gpUrjeP2frpekRmWYScfQfQ=",
              "dev": true
            },
            "request": {
   @@ -6738,7 +6753,8 @@
              "dependencies": {
                "unique-slug": {
                  "version": "2.0.0",
   -              "bundled": true,
   +              "resolved": 
"https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz";,
   +              "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=",
                  "dev": true
                }
              }
   @@ -6777,7 +6793,8 @@
                    },
                    "spdx-license-ids": {
                      "version": "1.2.0",
   -                  "bundled": true,
   +                  "resolved": 
"https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.0.tgz";,
   +                  "integrity": "sha1-tUndD2Pct0Whfi6joHQC4OMy0eI=",
                      "dev": true
                    }
                  }
   ```
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to