Skip to content
Merged
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
21 changes: 12 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,20 @@ on:
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: pnpm

- name: Install dependencies
Expand All @@ -43,18 +38,26 @@ jobs:

- name: Build
run: pnpm run build
env:
BASE_PATH: "/${{ github.event.repository.name }}"

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: "apps/ppp/dist/"

deploy:
needs: build
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
26 changes: 26 additions & 0 deletions apps/ppp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
node_modules

# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# Paraglide
src/lib/paraglide
1 change: 1 addition & 0 deletions apps/ppp/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
9 changes: 9 additions & 0 deletions apps/ppp/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lock
bun.lockb

# Miscellaneous
/static/
16 changes: 16 additions & 0 deletions apps/ppp/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
],
"tailwindStylesheet": "./src/app.css"
}
5 changes: 0 additions & 5 deletions apps/ppp/.vscode/extensions.json

This file was deleted.

88 changes: 0 additions & 88 deletions apps/ppp/astro.config.mjs

This file was deleted.

41 changes: 41 additions & 0 deletions apps/ppp/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import prettier from 'eslint-config-prettier';
import { fileURLToPath } from 'node:url';
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import ts from 'typescript-eslint';
import svelteConfig from './svelte.config.js';

const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));

export default defineConfig(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs.recommended,
prettier,
...svelte.configs.prettier,
{
languageOptions: {
globals: { ...globals.browser, ...globals.node }
},
rules: {
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'no-undef': 'off'
}
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
languageOptions: {
parserOptions: {
projectService: true,
extraFileExtensions: ['.svelte'],
parser: ts.parser,
svelteConfig
}
}
}
);
6 changes: 4 additions & 2 deletions apps/ppp/messages/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"hello_world": "Hello, {name} from en!",
"problemsPageTitle": "Problems",
"editorPageTitle": "Editor",
"designPatterns": "Design Patterns",
Expand All @@ -11,5 +12,6 @@
"stop": "Stop",
"forceStop": "Force stop",
"executionTimeout": "Execution timeout (ms)",
"executionTimeoutDescription": "Use zero to disable"
}
"executionTimeoutDescription": "Use zero to disable",
"currently_untranslated_problem": "This problem has not yet been translated for your language"
}
4 changes: 3 additions & 1 deletion apps/ppp/messages/ru.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"hello_world": "Hello, {name} from ru!",
"problemsPageTitle": "Проблемы",
"editorPageTitle": "Редактор",
"designPatterns": "Паттерны проектирования",
Expand All @@ -11,5 +12,6 @@
"stop": "Остановить",
"forceStop": "Остановить принудительно",
"executionTimeout": "Таймаут выполнения (мс)",
"executionTimeoutDescription": "Используйте ноль для отключения"
"executionTimeoutDescription": "Используйте ноль для отключения",
"currently_untranslated_problem": "Данная проблема пока не переведена для вашего языка"
}
Loading