Skip to content

Commit 96cd6ac

Browse files
authored
Merge pull request #84 from devmount/chores/pnpm-migration
📦️ Migrate to pnpm, update deps and docs
2 parents d1a6e4c + f584011 commit 96cd6ac

8 files changed

Lines changed: 2166 additions & 3516 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Testing the current state and reporting bugs is a great way to help! Here's how:
6060
```bash
6161
git clone https://github.com/devmount/sloth.css
6262
cd sloth.css
63-
npm i
64-
npm run docs:serve
63+
pnpm install
64+
pnpm docs:serve
6565
```
6666

6767
Now you can check <http://localhost:8080> (or the next available free port) to have the documentation pages served right from the latest repository state. If you run into any problems or find any issues, create a [bug report](https://github.com/devmount/sloth.css/issues/new?assignees=&labels=bug&projects=&template=bug_report.md) or start [a discussion thread](https://github.com/devmount/sloth.css/discussions).

.github/workflows/docs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ jobs:
1515
deploy:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- name: Use Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: '20.x'
18+
- uses: actions/checkout@v6
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v6
2321
- name: Build docs
2422
run: |
25-
npm ci
26-
npm run docs:build
23+
pnpm install
24+
pnpm docs:build
2725
- name: Push Build files to prod
28-
uses: burnett01/rsync-deployments@7.0.1
26+
uses: burnett01/rsync-deployments@v8
2927
with:
3028
switches: -avzr --delete
3129
path: docs/public/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Check [the documentation](https://slothcss.devmount.com) to see it live in actio
1818

1919
## Installation
2020

21-
See the [installation instructions](https://slothcss.devmount.com/getting-started/installation) for different setup options. Add it to your project's dependencies:
21+
See the [installation instructions](https://slothcss.devmount.com/getting-started/installation) for different setup options. Add it to your project's dependencies, e.g.:
2222

2323
```bash
24-
npm i @devmount/sloth.css
24+
pnpm add @devmount/sloth.css
2525
```
2626

2727
Or for a quick start include the following CSS file in your HTML head to get the complete package (drop-in core styles, utility classes and CSS components):

docs/pages/getting-started/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ Testing the current state and reporting bugs is a great way to help! Here's how:
5959
```bash
6060
git clone {{ repoUrl }}/sloth.css
6161
cd sloth.css
62-
npm i
63-
npm run docs:serve
62+
pnpm install
63+
pnpm docs:serve
6464
```
6565

6666
Now you can check <http://localhost:8080> (or the next available free port) to have the documentation pages served right from the latest repository state. If you run into any problems or find any issues, create a [bug report]({{ repoUrl }}/sloth.css/issues/new?assignees=&labels=bug&projects=&template=bug_report.md) or start [a discussion thread]({{ repoUrl }}/sloth.css/discussions).

docs/pages/getting-started/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 'Installation - Sloth.css'
33
description: Installation instructions and how to get started
4-
tags: cdn npm drop-in setup download
4+
tags: cdn npm pnpm drop-in setup download
55
---
66

77
## Installation
88

9-
You can load Sloth.css directly via CDN or by installing it manually or via NPM. You can choose between 3 different variants according to your needs:
9+
You can load Sloth.css directly via CDN, install it manually or use a package manager. You can choose between 3 different variants according to your needs:
1010

1111
1. `sloth.core.min.css`: Drop-in styling for semantic markup
1212
2. `sloth.util.min.css`: Utility classes for quick prototyping
@@ -38,15 +38,15 @@ Download the latest [Sloth.css release]({{ repoUrl }}/releases) (7.5KB):
3838

3939
Extract the CSS files you need and include them in your markup or your bundler.
4040

41-
### Install via NPM
41+
### Install via package manager
4242

43-
If you don't want to use the CDN or manual download, you can install Sloth.css via npm with the following command.
43+
If you don't want to use the CDN or manual download, you can add Sloth.css via the package manager of your choice, e.g.:
4444

4545
```bash
46-
npm i @devmount/sloth.css
46+
pnpm add @devmount/sloth.css
4747
```
4848

49-
Now you need to make one of the CSS files under `node_modules/@devmount/sloth.css/` you want available to your app or include it in your build step or bundler. Since Sloth.css already serves minified styles, the simplest way would be to just include the file you want in your CSS, e.g.:
49+
Now you need to make one of the CSS files under `node_modules/@devmount/sloth.css/` available to your app or include it in your build step or bundler. Since Sloth.css already serves minified styles, the simplest way would be to just include the file you want in your CSS, e.g.:
5050

5151
```css
5252
@import '@devmount/sloth.css/sloth.min.css';

0 commit comments

Comments
 (0)