Skip to content

Commit

Permalink
Open-source themer.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mjswensen committed Dec 27, 2024
1 parent c79924d commit 174fb35
Show file tree
Hide file tree
Showing 67 changed files with 15,308 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"remoteUser": "node",
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode"]
"extensions": ["esbenp.prettier-vscode", "svelte.svelte-vscode"]
}
},
"postCreateCommand": "cd cli && npm install"
"postCreateCommand": {
"install cli dependencies": "cd cli && npm install",
"install web dependencies": "cd web && npm install"
}
}
37 changes: 35 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,47 @@ env:
CI: true

jobs:
test:
test-cli-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
- name: Run CLI unit tests
uses: devcontainers/[email protected]
with:
push: never
runCmd: |
cd cli
npm run test
test-web-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run web unit tests
uses: devcontainers/[email protected]
with:
push: never
runCmd: |
cd web
npm run test:unit
lint-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint web
uses: devcontainers/[email protected]
with:
push: never
runCmd: |
cd web
npm run lint
svelte-check-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run svelte-check
uses: devcontainers/[email protected]
with:
push: never
runCmd: |
cd web
npm run check
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"cSpell.words": [
"alacritty",
"bbedit",
Expand Down
10 changes: 10 additions & 0 deletions web/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

package-lock.json
30 changes: 30 additions & 0 deletions web/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
11 changes: 11 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
/test-results
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions web/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
10 changes: 10 additions & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

package-lock.json
8 changes: 8 additions & 0 deletions web/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
Loading

0 comments on commit 174fb35

Please sign in to comment.