Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianzone/vite-plugin-biomejs


https://github.com/ianzone/vite-plugin-biomejs

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Toolchain

[![semantic-release](https://img.shields.io/badge/semantic-e10079?logo=semantic-release&labelColor=grey)](https://semantic-release.gitbook.io/semantic-release)

# Commands

## Getting started

```bash
pnpm install -g @antfu/ni nx
ni
```

## Package management

```bash
# Create a package
mkdir
cd
pnpm init
```

| Management | Root | Local package |
| ----------------- | ---------------- | --------------------------------- |
| Add from registry | `ni -w ` | `ni -F ` |
| Add from local | | `ni --workspace -F ` |
| Update | `nu` | `nu -F ` |
| Update All | `nu -r --latest` | |
| Remove | `nun -w ` | `nun --workspace -F ` |

## Build

| Build | command |
| -------- | ------------------- |
| one | `nx build ` |
| all | `nr build:all` |
| affected | `nr build:affected` |

## Test

## Publish

```json
{
"login": "npm login --registry=https://registry.npmjs.org",
"publish": "npm publish --access=public --registry=https://registry.npmjs.org",
"unpublish": "npm unpublish --force --registry=https://registry.npmjs.org"
}
```

# Reference

[Tutorial: Getting Started with Package-Based Repos](https://www.youtube.com/watch?v=hzTMKuE3CDw)

[Setup a monorepo with PNPM workspaces and add Nx for speed](https://www.youtube.com/watch?v=ngdoUQBvAjo)

# nx.json

```json
{
"namedInputs": {
// exclude markdown files from caching
"noMarkdown": ["!{projectRoot}/**/*.md"]
},
"targetDefaults": {
"build": {
// exclude markdown files from caching for the package and its dependencies
"inputs": ["noMarkdown", "^noMarkdown"],
// when build a package, build all packages that it's depended on
"dependsOn": ["^build"]
}
}
}
```