Skip to content

Commit 7499ab9

Browse files
authored
Update playwright tests (#2)
* test: update playwright test make it useful lol * build: bump version to 0.0.3, add test-results to gitignore * build(prettier): update prettier config and ignore list * chore(prettier): run prettier formatter on repo * build(lint): add shadcn components to eslintignore * docs: update readme, use pnpm
1 parent 2c71301 commit 7499ab9

Some content is hidden

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

45 files changed

+9940
-11744
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ node_modules
1111
pnpm-lock.yaml
1212
package-lock.json
1313
yarn.lock
14+
15+
# Ignore shadcn bits
16+
src/lib/components/ui

.eslintrc.cjs

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ module.exports = {
55
'eslint:recommended',
66
'plugin:@typescript-eslint/recommended',
77
'plugin:svelte/recommended',
8-
'prettier'
8+
'prettier',
99
],
1010
parser: '@typescript-eslint/parser',
1111
plugins: ['@typescript-eslint'],
1212
parserOptions: {
1313
sourceType: 'module',
1414
ecmaVersion: 2020,
15-
extraFileExtensions: ['.svelte']
15+
extraFileExtensions: ['.svelte'],
1616
},
1717
env: {
1818
browser: true,
1919
es2017: true,
20-
node: true
20+
node: true,
2121
},
2222
overrides: [
2323
{
2424
files: ['*.svelte'],
2525
parser: 'svelte-eslint-parser',
2626
parserOptions: {
27-
parser: '@typescript-eslint/parser'
28-
}
29-
}
30-
]
27+
parser: '@typescript-eslint/parser',
28+
},
29+
},
30+
],
3131
};

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ node_modules
88
!.env.example
99
vite.config.js.timestamp-*
1010
vite.config.ts.timestamp-*
11-
*.report.html
11+
*.report.html
12+
test-results/

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
pnpm-lock.yaml
33
package-lock.json
44
yarn.lock
5+
# Ignore markdown
6+
*.md
7+
# Ignore static dir
8+
static/
9+
# Ignore yaml
10+
*.yml

.prettierrc

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": true,
4-
"trailingComma": "none",
2+
"arrowParens": "always",
3+
"bracketSameLine": true,
4+
"bracketSpacing": true,
5+
"embeddedLanguageFormatting": "auto",
6+
"htmlWhitespaceSensitivity": "ignore",
7+
"insertPragma": false,
58
"printWidth": 100,
9+
"proseWrap": "preserve",
10+
"quoteProps": "preserve",
11+
"requirePragma": false,
12+
"semi": true,
13+
"singleAttributePerLine": true,
14+
"singleQuote": true,
15+
"tabWidth": 2,
16+
"trailingComma": "all",
17+
"useTabs": true,
618
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
719
"overrides": [
820
{

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ This is a site that lets you browse NES games by their cartridge art. You can al
44

55
## Getting Started
66

7-
0. Install Node.js (20.x) and clone the repo
8-
1. Run `npm ci` to install the dependencies
9-
2. Run `npm run scrape` to run the web scraper
7+
0. Install Node.js (20.x), [pnpm](https://pnpm.io/installation), and clone the repo
8+
1. Run `pnpm install` to install the dependencies
9+
2. Run `pnpm run scrape` to run the web scraper
1010
- This scrapes [nescartdb](https://nescartdb.com/) for info and cartridge art
11-
3. Run `npm run dev` to dev against the site
12-
4. Run `npm run preview` to run the prod build of the site
13-
5. Run `npm run build` to build the dist (outputs to `/build`).
11+
3. Run `pnpm run dev` to dev against the site
12+
4. Run `pnpm run preview` to run the prod build of the site
13+
5. Run `pnpm run build` to build the dist (outputs to `/build`).
1414

1515
## Todo
1616

components.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"utils": "$lib/utils"
1212
},
1313
"typescript": true
14-
}
14+
}

0 commit comments

Comments
 (0)