-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
Validate package.json in all tracks #290
Comments
Sounds interesting but I'm not sure it'll be useful. Everytime a maintainer run a build locally, all @exercism/javascript Do you find this action (run a build locally) enough for detecting incomplete changes on |
I'm with @tejasbubane. We should check those files in CI to make sure they are the same in all repos. Right now, almost all files are equal - except one:
The one with a change is the
Which has one additional npm script:
So, we are already suffering for not having an automated check in CI. We should checksum all |
First of all, that first I'm a bit lost about the code right now. But, is |
It has babel and eslint config and most importantly the required packages to install (which cannot be installed globally, atleast not all of them). Jest works with babel-jest to transpile ecmascript on the fly while running the tests. I am not sure this plugin can be installed globally. Without this plugin, Jest won't be able to understand latest ecmascript features. I am not sure if all of this would work without the package.json, but even if it did, it would be unconventional IMO since package.json is standard in all projects with some kind of build/transpile process.
Do you mean you run build locally for each PR merged? |
Hey guys, It sounds to me like @joelwallis is suggesting that we do the check as part of the CI process-- I think that's a great idea. We have two cases to cover:
Ideas? It feels like we have a chicken-and-egg problem here, and that maybe the best way to resolve it is to know if we're running on CI or locally. |
Yeah! I know
About the checking script: I see where @matthewmorgan is going. Yep, if we check all From my point of view, I only review the main one ( When I talk about the build process, I mean I run the One of those steps could be to check whatever we want on |
@rchavarria me too. I can't see where About validating |
* Validates exercises' package.json files Closes #290 * EditorConfig rules for scripts in `bin/` * cp package.json exercises/connect/package.json
We are relying on copying
package.json
in all exercises. It is difficult to check all those file changes in the PR eg. #286 has 68 file changes. Although the copying is automated using Makefile, I think we should be extra-cautious since these files are directly delivered to users.We can add some CI check similar to configlet but for our numerous
package.json
files. We can check for json structure and that all files are identical. This will make sure someone did not change anything unexpected in the PR.This of-course depends on #235. If we are unable to find any way to remove those numerous package.json files, we should make sure to keep them valid and checked in CI.
The text was updated successfully, but these errors were encountered: