Skip to content

Commit 45ed5f8

Browse files
authored
Move to Svelte (#405)
1 parent 491c4d3 commit 45ed5f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4035
-13289
lines changed

.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_ENV=development

.env.production

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_SENTRY_DSN="https://[email protected]/6556279"

.eslintrc.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33
"browser": true,
44
"es2021": true
55
},
6-
"extends": ["google"],
6+
"extends": ["standard", "plugin:svelte/recommended", "prettier"],
77
"parser": "@typescript-eslint/parser",
88
"parserOptions": {
99
"ecmaVersion": "latest",
1010
"sourceType": "module"
1111
},
1212
"plugins": ["@typescript-eslint"],
13-
"rules": {}
13+
"rules": {},
14+
"overrides": [
15+
{
16+
"files": ["*.svelte"],
17+
"parser": "svelte-eslint-parser",
18+
"parserOptions": {
19+
"parser": "@typescript-eslint/parser"
20+
}
21+
}
22+
]
1423
}

.github/workflows/build.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ jobs:
99
# Get the code
1010
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1111

12+
- name: Enable corepack
13+
run: corepack enable # Enables use of pnpm
14+
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: ">= 18.13.0"
19+
1220
# Install dependencies
1321
- name: Install NPM Deps
14-
run: npm install
22+
run: pnpm install
1523

1624
- name: Test
17-
run: npm run test
25+
run: pnpm run test:ci
1826

1927
- name: Build
20-
run: npm run build
28+
run: pnpm run build

.gitignore

+26-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1-
build/
2-
node_modules/
3-
gauntface-pin-it-extension.zip
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
gauntface-pin-it-extension.zip

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"plugins": ["prettier-plugin-svelte"],
3+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
4+
}

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright 2022 Matthew Gaunt-Seo
1+
Copyright 2024 Matthew Gaunt-Seo
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

gulpfile.js

-169
This file was deleted.

index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/pin-it.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Pin-It Extension</title>
8+
</head>
9+
<body>
10+
<h1>Pin-It Extension</h1>
11+
<ul>
12+
<li>
13+
<a href="/options-mock.html">Options (Mock)</a>
14+
</li>
15+
</ul>
16+
</body>
17+
</html>

options-mock.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/pin-it.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Pin-It Extension Options</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/__mocks__/chrome/chrome.ts"></script>
12+
<script type="module" src="/src/frontend/apps/options/options.ts"></script>
13+
</body>
14+
</html>

options.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/pin-it.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Pin-It Extension Options</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/frontend/apps/options/options.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)