Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

chore: finish migration of yarn/npm to pnpm everywhere

Gavin Mogan0e6442c469f9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 835407b41..478e5ad16 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,10 +29,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- cache: 'yarn'
+ cache: 'pnpm'
env:
DATABASE_TYPE: ${{ matrix.db-type }}
- - run: npm install --global yarn
- - run: yarn install
- - run: yarn test
- - run: yarn build
+ - run: npm install --global pnpm
+ - run: pnpm install
+ - run: pnpm test
+ - run: pnpm build
diff --git a/.gitignore b/.gitignore
index 70a1e1931..9cf14dd6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
node_modules
.pnp
.pnp.js
+.pnpm-store
# testing
/coverage
diff --git a/README.md b/README.md
index cf84d7624..fcbe856f1 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ A detailed getting started guide can be found at [umami.is/docs](https://umami.i
```bash
git clone https://github.com/umami-software/umami.git
cd umami
-npm install
+pnpm install
```
### Configure Umami
@@ -64,7 +64,7 @@ mysql://username:mypassword@localhost:3306/mydb
### Build the Application
```bash
-npm run build
+pnpm run build
```
_The build step will create tables in your database if you are installing for the first time. It will also create a login user with username **admin** and password **umami**._
@@ -72,7 +72,7 @@ _The build step will create tables in your database if you are installing for th
### Start the Application
```bash
-npm run start
+pnpm run start
```
_By default, this will launch the application on `http://localhost:3000`. You will need to either [proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) requests from your web server or change the [port](https://nextjs.org/docs/api-reference/cli#production) to serve the application directly._
@@ -107,8 +107,8 @@ To get the latest features, simply do a pull, install any new dependencies, and
```bash
git pull
-npm install
-npm run build
+pnpm install
+pnpm run build
```
To update the Docker image, simply pull the new images and rebuild: