ncc
typescript-action
Our great sponsors
ncc | typescript-action | |
---|---|---|
15 | 29 | |
8,822 | 1,741 | |
1.3% | 3.5% | |
6.2 | 9.2 | |
14 days ago | 4 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ncc
-
So you're using a weird language
You could use ncc to compile a binary:
-
Contributors to AWS Lambda container cold starts
This appears to be caused by lazy loading of image layer data, particularly during container initialization, and latency introduced by the read operations. In general, you want to access as few files and as little data as possible during the initialization of your functions. For example, we've seen improvement when using ncc to bundle Node.js applications.
-
Tools of the Trade: Dyte CLI
What we do however, is bundle all these dependencies, and our own code into a single JS file using the nifty ncc tool (thanks Vercel!)
-
Label automation at your fingertips
Vercel's ncc compiler
-
Managing JavaScript GitHub Action ncc packing
The most unclear and confusing part is packing the code using ncc. The necessity of this step is caused by GitHub’s approach to running your Action.
-
Ask HN: How do you (security) audit external software using NPM packages?
This may be slightly tangential but I recently discovered ncc[1] from vercel which can take a single node project and compile it and all dependencies to a single file.
As an added benefit it also collapses all contained dependencies license files into a single licenses.txt file too!
-
Compiling a Apollo Federated Graph with esBuild 🚀
The current process of building a package locally is by running through a gulp task, using ttypescript to compile the TS and @vercel/ncc to build the binary:
-
I launched Autobundle project which automatic bundle your dependency, ideally from Bundlephobia, powered by esbuild
- "introduce bugs": I dont' think so, my product is running like this, bundling every commit but I didn't see any problem. For bigger app: vercel using this way to delivery they's serverless application with https://github.com/vercel/ncc.
-
Solution to serverless function getting too big?
Here is link number 1 - Previous text "ncc"
typescript-action
-
Hashnode Blog GitHub Action - fetch and display the latest blogs in a nice format
View on GitHub
While learning about GitHub Actions, I came across the GitHub Actions Org, and they have a bunch of templates for building custom GitHub actions. So, I started searching for a template that has TypeScript support, ensuring type safety to write bug-free code. I found the typescript-action template that includes support for tests, linter, versioning, and more.
-
Develop, test, and deploy your extensions for all popular CIs from a single codebase
I found the GitHub actions documentation easier to read than Azure, so I would recommend starting writing and testing your extensions on GitHub by using the official template actions/typescript-action. The mentioned template provides a good starting point; I won't repeat the steps here. Play with it, write some simple stuff, and then return here for the next steps.
-
Speeding up GitHub Actions with npm cache
GitHub maintain a set of repos called actions. One of which is called cache.
-
AdaGPT: My Learnings While Building a GitHub Action
To get started quickly with a JavaScript action, I recommend using the official templates from GitHub for JavaScript and TypeScript.
-
Rust is not hard! Part 1: GitHub Actions
On the TypeScript side, setup was much easier. There was already a template from GitHub that took care of the basics. Most of the time spent here was updating dependencies and getting my editor to play nicely with it—18 minutes, about 10% of the total.
- Unpopular opinion: CI/CD engines are an awful idea
-
Creating GitHub Actions for community engagement
Now that you know how to create your own GitHub Actions, why not give it a try? Head to the GitHub Marketplace and start exploring the existing Actions, or create your own and share it with the community. With GitHub Actions, the possibilities are endless, so start building and see what you can accomplish
-
How to Debug Tests in the CI Pipeline
Your build most likely fails because your tests fail. Most CI pipelines today, like Jenkins, Circleci, GitLab, TeamCity, Bamboo, and GitHub Actions, are configured to automatically cause the build process to fail when tests fail.
-
actions-rs organization became unmaintained
Kind of surprising that there are no official GitHub Action to use. Haskell moved theirs to their own organization, while most others live under the actions organization. I hope the community get some traction with getting this updated and fixed, and I hope everything is well with svartalf.
What are some alternatives?
pkg - Package your Node.js project into an executable
esbuild - An extremely fast bundler for the web
Next.js - The React Framework
codeql-action - Actions for running CodeQL analysis
nft - Node.js dependency tracing utility
vercel - Develop. Preview. Ship.
get-changed-files - Get all of the files changed/modified in a pull request or push's commits.
sticky-pull-request-comment - create comment on pull request, if exists update that comment.
picomatch - Blazing fast and accurate glob matcher written JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions. Used by GraphQL, Jest, Astro, Snowpack, Storybook, bulma, Serverless, fdir, Netlify, AWS Amplify, Revogrid, rollup, routify, open-wc, imba, ava, docusaurus, fast-glob, globby, chokidar, anymatch, cloudflare/miniflare, pts, and more than 5 million projects! Please follow picomatch's author: https://github.com/jonschlinkert
publish-unit-test-result-action - GitHub Action to publish unit test results on GitHub
umi - A framework in react community ✨
javascript-action - Create a JavaScript Action with tests, linting, workflow, publishing, and versioning