zef
typescript-action
zef | typescript-action | |
---|---|---|
7 | 29 | |
206 | 1,777 | |
- | 2.0% | |
7.5 | 9.2 | |
4 days ago | 5 days ago | |
Raku | TypeScript | |
Artistic License 2.0 | 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.
zef
-
Writing a Database backed Micro-service with Raku and Humming-Bird
To begin, you'll want to make sure that you have Raku installed, I recommend using Rakubrew. Then we'll want to install Zef, if you're new to Raku, Zef is basically just NPM or CPAN for Raku, it's written by the fabulous Ugexe and is the default package manager people use with Raku. If you installed Raku with Rakubrew, you can simply run rakubrew build-zef and it will handle all of the configuration for you.
-
Tests
I tested it on my computer. I needed to install zef from here. I installed libraries needed to use rakudo_debug. Here hat I get below:
-
How do you determine what the "latest" module version is?
See: https://github.com/ugexe/zef/blob/9779091b7997468257ce3037f8bc0e9c65d1f974/t/repository.rakutest#L85-L128 for an example of how the tiering of ecosystems work, and https://github.com/ugexe/zef/commit/a12d286312c6d7bc3c8ffebe51cce4caae6268cf for some reasoning
-
Cannot Install Zef
I have Rakudo 2022.07 on my Mac. I cloned https://github.com/ugexe/zef, which got me version 0.14.4. I cd'ed into the clone and ran this:
-
requesting thoughts/advice on distributing personal tools
zef -v install https://github.com/ugexe/zef.git
-
Designing containers for GitHub actions
FROM ghcr.io/jj/raku-gha ENV PKGS="git tar" PKGS_TMP="make gcc linux-headers musl-dev" WORKDIR="/home/raku" LABEL version="1.0.3" maintainer="[email protected]" rakuversion=$VER USER root RUN apk update && apk upgrade && apk add --no-cache $PKGS $PKGS_TMP USER raku # Environment ENV PATH="${WORKDIR}/.raku/bin:${WORKDIR}/.raku/share/perl6/site/bin:${PATH}" \ ENV="${WORKDIR}/.profile"\ RAKULIB="inst#/home/raku/.raku" # Basic setup, programs and init WORKDIR $WORKDIR RUN git clone --depth 1 https://github.com/ugexe/zef.git \ && cd zef && raku -I. bin/zef install . \ && zef install Linenoise \ && cd .. && rm -rf zef USER root RUN apk del $PGKS_TMP USER raku ENTRYPOINT ["raku"]
-
Issues with installing zef
This is the issue I found on GitHub.
typescript-action
-
Hashnode Blog GitHub Action - fetch and display the latest blogs in a nice format
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.
-
Dynamically importing a downloaded file in a TypeScript GitHub action.
This is the template I used for my TypeScript action https://github.com/actions/typescript-action
-
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.
- CICD pipelines written in Typescript
- 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.
What are some alternatives?
docker-raku - Tests and experiments for new Raku docker containers
codeql-action - Actions for running CodeQL analysis
p6-GtkPlus
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
rakudo - π¦ Rakudo β Raku on MoarVM, JVM, and JS
get-changed-files - Get all of the files changed/modified in a pull request or push's commits.
MoarVM - A VM with adaptive optimization and JIT compilation, built for Rakudo
sticky-pull-request-comment - create comment on pull request, if exists update that comment.
Tomty - Tomty - Raku Test Framework
publish-unit-test-result-action - GitHub Action to publish unit test results on GitHub
cache - Cache dependencies and build outputs in GitHub Actions
vercel-action - This action make a deployment with github actions instead of Vercel builder.