Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianzone/vite-plugin-biomejs
https://github.com/ianzone/vite-plugin-biomejs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ianzone/vite-plugin-biomejs
- Owner: ianzone
- License: mit
- Created: 2024-04-21T11:10:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T10:49:46.000Z (6 months ago)
- Last Synced: 2024-12-09T15:37:12.715Z (about 1 month ago)
- Language: TypeScript
- Size: 275 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"]
}
}
}
```