Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svelterust/bun-flake
Flake for Bun
https://github.com/svelterust/bun-flake
bun flake
Last synced: about 1 month ago
JSON representation
Flake for Bun
- Host: GitHub
- URL: https://github.com/svelterust/bun-flake
- Owner: svelterust
- Archived: true
- Created: 2022-11-19T14:53:14.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T19:46:53.000Z (almost 2 years ago)
- Last Synced: 2024-11-24T16:18:16.862Z (about 1 month ago)
- Topics: bun, flake
- Language: Nix
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-flake
```
$ nix flake show github:knarkzel/bun-flake
└───packages
└───x86_64-linux
└───default: package 'bun-0.4.0'
$ nix build github:knarkzel/bun-flake
$ ./result/bin/bun
bun: a fast bundler, transpiler, JavaScript Runtime and package manager for web software.run ./my-script.ts Run JavaScript with bun, a package.json script, or a bin
x bun-repl Install and execute a package bin (bunx)init Start an empty Bun project from a blank template
create next ./app Create a new project from a template (bun c)
install Install dependencies for a package.json (bun i)
add @evan/duckdb Add a dependency to package.json (bun a)
link Link an npm package globally
remove browserify Remove a dependency from package.json (bun rm)
unlink Globally unlink an npm package
pm More commands for managing packagesdev ./a.ts ./b.jsx Start a bun (frontend) Dev Server
bun ./a.ts ./b.jsx Bundle dependencies of input files into a .bunupgrade Get the latest version of bun
completions Install shell completions for tab-completion
discord Open bun's Discord server
help Print this help menu
```## Minimal example
```nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
bun-flake = {
url = "github:knarkzel/bun-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};outputs = {
self,
nixpkgs,
bun-flake,
}: let
pkgs = import nixpkgs {system = "x86_64-linux";};
bun = bun-flake.packages.x86_64-linux.default;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [bun];
};
};
}
```