mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
add general guides
This commit is contained in:
1 parent
ba094e1fb3
commit
6001b9c987
4 files changed
+43
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# pnpm
|
||||
|
||||
pnpm is a fast and disk space efficient package manager, serving as an alternative to npm and yarn.
|
||||
|
||||
- Ensure you have [installed Node.js](./nodejs.md).
|
||||
- Open a command-line terminal (e.g. Terminal, Command Prompt).
|
||||
- Enter `npm install -g pnpm` to globally install the package.
|
||||
- You can install dependencies with pnpm using `pnpm i`.
|
||||
|
||||
You can reference `package.json` files for available scripts, i.e.
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"watch": "vite build --watch",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"format": "prettier --write \"./src/**/*.{ts,tsx,css}\""
|
||||
},
|
||||
```
|
||||
|
||||
Using the example above `pnpm build` will run the build script for the given package.
|
||||
Reference in new issue
Block a user