question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

package.json of our samples are polluted by our maintenance tools

See original GitHub issue

Take a look at this example: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/hello-world/standard/package.json

cloud-repo-tools, devDependencies and most of the scripts do not serve the purpose of giving example code to our users, instead, they are data used by our maintenance tools.

Could they be in a different file that does not interfere with package.json ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fhinkelcommented, Aug 23, 2018

A lot of samples rely on this test setup:

"cloud-repo-tools": {
    "test": {
      "app": {
        "msg": "Hello, world!"
      }
    },
    "requiresKeyFile": true,
    "requiresProjectId": true
  }

If we remove the repo-tools dependency, we’d need to write those tests ourselves - which I would prefer because no user will be familiar with the repo-tools magic.

0reactions
fhinkelcommented, Sep 11, 2018

Closing this, I think our package.jsons are fairly standard and not confusing to Node devs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm audit: Broken by Design - Overreacted
If we don't want our sheep to be eaten, we need better tools. As of today, npm audit is a stain on the...
Read more >
Schematics for libraries - Angular
The Angular CLI uses this entry to find named schematics in your collection when it runs commands. projects/my-lib/package.json (Schematics Collection Reference)
Read more >
npm vs npx — What's the Difference? - freeCodeCamp
npm (node package manager) is the dependency/package manager you get out of the box when you install Node.js. It provides a way for...
Read more >
Difference between npx and npm? - Stack Overflow
Introducing npx: an npm package runner. NPM - Manages packages but doesn't make life easy executing any. NPX - A tool for executing...
Read more >
Auditing package dependencies for security vulnerabilities
Security audits help you protect your package's users by enabling you to find and fix known vulnerabilities in dependencies that could cause data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found