Skip to content
Merged

Dev #55

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Format code
run: npm run format
run: pnpm run format

- name: Build site
run: |
npm run build
pnpm run build
touch build/.nojekyll

- name: Upload artifact
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Format code
run: npm run format
run: pnpm run format

- name: Check types
run: npm run check
run: pnpm run check

- name: Lint code
run: npm run lint

run: pnpm run lint
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ npx sv create my-app

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
Once you've created a project and installed dependencies with `pnpm install`, start a development server:

```sh
npm run dev
pnpm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
pnpm run dev -- --open
```

## Building

To create a production version of your app:

```sh
npm run build
pnpm run build
```

You can preview the production build with `npm run preview`.
You can preview the production build with `pnpm run preview`.

> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
Loading