My Workflow
es-check-action
checks JavaScript files against a specified version of ECMAScript (ES). If a specified file's ES version doesn't match the ES version argument, this action will throw an error and log the files that didn't match the check.
In modern JavaScript builds, files are bundled up so they can be served in an optimized manner in the browsers. It is assumed by developers that future JavaScript—like ES8 will be transpiled (changed from future JavaScript to current JavaScript) appropriately by a tool like Babel or TypeScript. Sometimes there is an issue where files are not transpiled which would cause issues in browsers who don't support all the latest features (e.g. IE11).
Check out my blog post about this topic (Medium.com)
Main motivation: avoid unexpected issues with unsupported features in web browsers without having to always do manual checking in those browsers.
Submission Category:
I'd say it's Maintainer Must-Haves but it also belongs somewhat to DIY Deployments.
Yaml File or Link to Code
The source code including a example is available on GitHub.
ali-kamalizade / es-check-action
A GitHub action that checks JavaScript files ES version against a specified ES version. If a specified file's ES version doesn't match the ES version argument, this action will throw an error and log the files that didn't match the check.
es-check-action
This GitHub Action checks JavaScript files against a specified version of ECMAScript (ES). If a specified file's ES version doesn't match the ES version argument, this action will throw an error and log the files that didn't match the check.
In modern JavaScript builds, files are bundled up so they can be served in an optimized manner in the browsers. It is assumed by developers that future JavaScript—like ES8 will be transpiled (changed from future JavaScript to current JavaScript) appropriately by a tool like Babel or TypeScript. Sometimes there is an issue where files are not transpiled which would cause issues in browsers who don't support all the latest features (e.g. IE11).
Check out my blog post about this topic.
Features
- Speed: this check shouldn't take more than a few seconds
- Flexibility: choose which files should be checked
- Compability: choose the ES version you want to target.
ES5
is…
Additional Resources / Info
This action uses itself as part of a GitHub Workflow #recursion
Top comments (0)