bases
berry
bases | berry | |
---|---|---|
13 | 185 | |
5,650 | 7,136 | |
3.7% | 1.1% | |
7.6 | 9.2 | |
14 days ago | 2 days ago | |
TypeScript | TypeScript | |
MIT License | BSD 2-clause "Simplified" 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.
bases
-
Configuring Jest for Typescript Unit Tests
We will install ready-to-use Typescript base configurations instead of starting from scratch. In this article, we will use Typescript base configurations for node version 20. If you are using a different version of node, visit the tsconfig bases docs to find out what you need. You can also create a Typescript configuration file with settings that work for you.
-
TSConfig Applier Extension :)
This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
-
The hardest thing in Typescript for me is...
Steal from this repo: https://github.com/tsconfig/bases/blob/main/bases/next.json
-
🎓 Monorepo College Lecture 2: Build Me Up Buttercup
I personally am a big advocate for writing the least amount of tsconfig possible, and the tsconfig/bases package serves as a great source for getting tsconfig templates.
-
Use Mocha instead of Jest and boost your tests speed
Possibly depends on your tsconfig. We use the recommended base configs from here https://github.com/tsconfig/bases
-
Achieving end-to-end type safety in a modern JS GraphQL stack
A tsconfig.json preset that ensures type safety;
-
Create a NodeJS Boilerplate with Typescript
The same configuration is also available for other nodejs versions like 14 and 12.
-
Converting your vanilla Javascript app to TypeScript
After installing, we also need to set up a basic tsconfig.json file for how we want tsc to behave with our app. We will use one of the recommended tsconfig files here: https://github.com/tsconfig/bases#centralized-recommendations-for-tsconfig-bases. This contains a list of community recommended configs depending on your app type. We’re using Node 16 and want to be extremely strict on the first pass to clean up any bad code habits and enforce some consistency. We’ll use the one located: https://github.com/tsconfig/bases/blob/main/bases/node16-strictest.combined.json.
-
Possibly moving from JS to TS - have a few questions
You'll need @typescript-eslint/parser to get it working with eslint, then I would add @typescript-eslint/recommended as a plugin, then add prettier-eslint for formatting. What's more important is having a really good tsconfig file, I would recommend extending something from https://github.com/tsconfig/bases
-
How to Set Up a Node.js Project with TypeScript
The above configuration file extends the base configuration provided by the TypeScript team for Node.js v16. Additional options or overrides may be included through the compilerOptions property. It also specifies that all the files in the src directory should be included in the program, but everything in the node_modules directory is skipped entirely. Both the include and exclude properties support glob patterns.
berry
-
Node package managers (npm, yarn, pnpm) - All you need to know
Yarn
-
Create a Chat App With Node.js
Install Yarn or NPM to add the required packages and modules.
-
Assign a smart contract to an existing SFS NFT with Thirdweb deployment
Latest version of Node and Yarn
-
How to Register a Smart Contract to Mode SFS with Thirdweb
Have Node and Yarn installed with a recent version.
-
Understanding Dependencies in Programming
Node.js manages dependencies using package managers like npm (Node Package Manager), yarn, and pnpm. npm comes pre-installed with Node.js and allows you to install and uninstall Node.js packages. It uses a package.json file to keep track of which packages your project depends on. Yarn and Pnpm are alternative package managers that aim to improve on npm in various ways, such as improved performance and better lock file format.
-
Run a Linux Distro in your Android device
Depending on the stack of the repository you are cloning, you might have to install additional dependencies. For this demo, I'm using my own website, which is a static website built with Astro.js. It which requires to have Node.js installed and Yarn for package manager.
-
Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration
A package manager such as npm, Yarn, or pnpm. A package manager is a tool that helps you manage the dependencies of your project. You can use any of these package managers to install Jest and other packages.
-
Guide to ChatGPT API Implementation for Developers
To start off, you'll need Node.js installed on your local system. This ChatGPT API guide will use Yarn to install dependencies in the project, but you're free to use npm or any other package management tool if you wish. Finally, you'll need an OpenAI account for ChatGPT API access.
-
Consuming Loki logs with Grafana API and Node.js
This package is available in the Node Package Repository and can be easily installed with npm or yarn
-
How to Build an Electronic Commerce Store with Medusajs
Yarn or Npm(This tutorial uses Yarn)
What are some alternatives?
node-express-boilerplate - A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
tsconfig-applier - Welcome to `tsconfig-applier`! This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
pnpm - Fast, disk space efficient package manager
piscina - A fast, efficient Node.js Worker Thread Pool implementation
docker-node - Official Docker Image for Node.js :whale: :turtle: :rocket:
Bee-Queue - A simple, fast, robust job/task queue for Node.js, backed by Redis.
nx - Smart Monorepos · Fast CI
anvil-ts-upgrade-example - Example repository for Javascript to TypeScript upgrade blog post
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
volta - Volta: JS Toolchains as Code. ⚡
lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.