Skip to content

Commit

Permalink
chore: cleanup repo (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Apr 2, 2024
1 parent cd23e44 commit a023765
Show file tree
Hide file tree
Showing 97 changed files with 1,428 additions and 698 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["docs"]
}
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/3-bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
attributes:
value: |
#### If you aren't sure if something is a bug or not, please do not create an issue, instead ask in one of the following channels:
- [Discussions](https://github.com/svecosystem/withrunes/discussions/new?category=help)
- [Discussions](https://github.com/svecosystem/runed/discussions/new?category=help)
- [Discord](https://discord.gg/FKR4YhFbvB)
- type: textarea
id: bug-description
Expand Down Expand Up @@ -38,7 +38,7 @@ body:
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages svelte,withrunes,@sveltejs/kit --binaries --browsers`
description: Output of `npx envinfo --system --npmPackages svelte,runed,@sveltejs/kit --binaries --browsers`
render: bash
placeholder: System, Binaries, Browsers
validations:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Get Help
url: https://github.com/svecosystem/withrunes/discussions/new?category=help
url: https://github.com/svecosystem/runed/discussions/new?category=help
about: If you can't get something to work the way you expect, open a question in our discussion forums.
- name: Discord
url: https://hbyt.us/discord
url: https://discord.gg/WMa8MjNyCz
about: If you need to have a back-and-forth conversation, join the Discord server.
2 changes: 1 addition & 1 deletion .github/reproduire/needs-reproduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Please provide a [reproduction](https://bits-ui.com/repro).
Please provide a reproduction.

<details>
<summary>More info</summary>
Expand Down
81 changes: 41 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,47 @@ concurrency:
cancel-in-progress: true

jobs:
Check:
name: Run svelte-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 18

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Sync
run: pnpm sync

- name: Run svelte-check
run: pnpm check
# TODO: Readd this once we get the types fine for Svelte 5
# Check:
# name: Run svelte-check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0

# - uses: pnpm/action-setup@v2
# with:
# version: 8

# - uses: actions/setup-node@v3
# with:
# node-version: 18

# # PNPM Store cache setup
# - name: Get pnpm store directory
# id: pnpm-cache
# run: |
# echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
# - name: Setup pnpm cache
# uses: actions/cache@v3
# with:
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-

# - name: Install dependencies
# run: pnpm install

# - name: Build
# run: pnpm build

# - name: Sync
# run: pnpm sync

# - name: Run svelte-check
# run: pnpm check

Lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
pull_request_target:
paths:
- sites/docs/**
- packages/withrunes/**
- packages/runed/**

# cancel in-progress runs on new commits to same PR (github.event.number)
concurrency:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: withrunes
projectName: runed
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Preview
4 changes: 2 additions & 2 deletions .github/workflows/docs-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
paths:
- sites/docs/**
- packages/withrunes/**
- packages/runed/**

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: withrunes
projectName: runed
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Production
File renamed without changes.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.0
22 changes: 22 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.DS_Store
node_modules
**/build
**/.svelte-kit
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
**/.changeset/
.prettierrc
package.json
.vercel
.contentlayer
**/dist
**/.github
CHANGELOG.md
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"useTabs": true,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
],
"tailwindConfig": "./sites/docs/tailwind.config.js",
"tailwindFunctions": ["clsx", "cn", "tv"]
}
27 changes: 27 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"svelte",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"astro"
]
}
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import config, { DEFAULT_IGNORES } from "@huntabyte/eslint-config";

const CUSTOM_IGNORES = ["**/.github/**", "CHANGELOG.md", "**/.contentlayer"];

export default config({
svelte: true,
ignores: [...DEFAULT_IGNORES, ...CUSTOM_IGNORES],
});
27 changes: 20 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
{
"name": "root",
"description": "Monorepo for Runed.",
"private": true,
"version": "0.0.0",
"description": "Monorepo for Runed.",
"homepage": "https://runed.dev",
"contributors": [
{
"name": "Thomas G. Lopes",
"url": "https://thomasglopes.com"
},
{
"name": "Hunter Johnston",
"url": "https://x.com/huntabyte"
"url": "https://x.com/huntabyte"
}
],
"funding": [
"https://github.com/sponsors/huntabyte",
"https://github.com/sponsors/tglide"
],
"main": "index.js",
"repository": {
"type": "git",
Expand All @@ -25,15 +30,23 @@
"build:packages": "pnpm -F \"./packages/**\" --parallel build",
"build:content": "pnpm -F \"./sites/**\" --parallel build:content",
"ci:publish": "pnpm build:packages && changeset publish",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"check": "pnpm -r check",
"sync": "pnpm -r sync",
"postinstall": "pnpm -r sync"
},
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@svitejs/changesets-changelog-github-compact": "^1.1.0"
}
}
"@huntabyte/eslint-config": "^0.2.0",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-svelte": "2.36.0-next.13",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.13",
"svelte-eslint-parser": "^0.33.1"
},
"type": "module"
}
15 changes: 0 additions & 15 deletions packages/runed/.eslintignore

This file was deleted.

77 changes: 0 additions & 77 deletions packages/runed/.eslintrc.cjs

This file was deleted.

Loading

0 comments on commit a023765

Please sign in to comment.