Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[npm] Clean up package content #113

Open
26 of 38 tasks
janpio opened this issue May 27, 2019 · 7 comments
Open
26 of 38 tasks

[npm] Clean up package content #113

janpio opened this issue May 27, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@janpio
Copy link
Member

janpio commented May 27, 2019

Currently npm packages contains folders like .github, and files like .appveyor.yml and .travis.yml. Those are probbably not useful in a package context, so should be excluded (if possible).

Implementation Progress

Platforms

Plugins

Tooling

Excluded: cordova-status, cordova, and any unused, outdated, or deprecated repos

@erisu
Copy link
Member

erisu commented May 27, 2019

It is possible.

See the cordova-electron repo for example: https://github.com/apache/cordova-electron/blob/master/.npmignore

Things I believe should also be excluded from the package:

  • Docs
  • Test specs
  • Raw src files that are not used directly but a part of some build process.
  • Third-party configuration files (linting tools, testing frameworks, code formatters, etc.)

@janpio
Copy link
Member Author

janpio commented May 27, 2019

Great.

One thing to note: The "vote" procedure usually contains steps to make sure a package actually works, which until now meant running the tests (for plugins for example via the included tests-plugin, and generally via npm test). This might conflict with the removal from the package.

@erisu
Copy link
Member

erisu commented May 27, 2019

Yeah, that might have to change.

I feel they should be excluded because it also has no value to an end user who is only trying to develop their own app. If they want to test our code, at that point they should be using GitHub as a developer for the Cordova product.

IMO, if I am releasing something, I had already ran the tests before I made the package as well as validating the CI services were green which ran the same tests. I feel that the releasers own +1 vote should also mean that they tested since these steps are written in the release guide.

Anyways, this might need to be a later discussion in another ticket or email thread.

@raphinesse raphinesse added the enhancement New feature or request label Nov 26, 2019
@raphinesse
Copy link
Contributor

raphinesse commented Nov 26, 2019

@erisu I know you did some work on this. Unfortunately the PRs/commits didn't reference this issue. I guess this is not yet done in all repos. How do we want to handle this issue. Add a todo list?

@erisu
Copy link
Member

erisu commented Nov 27, 2019

I think we can add a todo list in this ticket and check off the ones that are completed.

@brodycj
Copy link

brodycj commented Dec 16, 2019

I would also consider just adding the files field to package.json in each package to specify exactly which artifacts we do need to publish on npm.

@timbru31
Copy link
Member

timbru31 commented Jun 5, 2020

List updated as of June 2020. We are missing some platform and toolings, I've done all plugins over the past few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants