Skip to content

Commit 9265415

Browse files
committed
Scaffold
0 parents  commit 9265415

Some content is hidden

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

48 files changed

+7861
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: ['main']
7+
pull_request:
8+
branches: ['main']
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22.6
20+
cache: npm
21+
- name: Install Dependencies
22+
run: npm ci --no-fund
23+
- name: Test Format
24+
run: npm run test:format
25+
- name: Unit Test
26+
run: npm run test:unit
27+
- name: Build
28+
run: npm run build
29+
- name: Test Size
30+
run: npm run test:size

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/devvit.dev.yaml
2+
/dist/
3+
/node_modules/
4+
/webroot/index.js

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome", "streetsidesoftware.code-spell-checker"]
3+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"typescript.tsdk": "node_modules/typescript/lib",
4+
"editor.codeActionsOnSave": { "source.organizeImports.biome": "explicit" }
5+
}

assets/loading.gif

51 KB
Loading

assets/logo.png

1.1 KB
Loading

biome.jsonc

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"css": {
4+
"formatter": {
5+
"enabled": true,
6+
"indentStyle": "space",
7+
"quoteStyle": "single"
8+
},
9+
"linter": { "enabled": true }
10+
},
11+
"files": { "ignore": ["webroot/index.js"] },
12+
"formatter": { "indentStyle": "space" },
13+
"javascript": {
14+
"formatter": {
15+
"arrowParentheses": "asNeeded",
16+
"bracketSpacing": false,
17+
"indentStyle": "space",
18+
"jsxQuoteStyle": "single",
19+
"quoteStyle": "single",
20+
"semicolons": "asNeeded",
21+
"trailingCommas": "none"
22+
}
23+
},
24+
"json": {
25+
"formatter": { "indentStyle": "space" },
26+
"parser": { "allowComments": true }
27+
},
28+
"linter": {
29+
"rules": {
30+
"performance": { "noDelete": "off" },
31+
"complexity": { "noThisInStatic": "off" },
32+
"style": {
33+
"noInferrableTypes": "off",
34+
"noNonNullAssertion": "off",
35+
"noParameterAssign": "off",
36+
"useNumberNamespace": "off",
37+
// https://github.com/biomejs/biome/discussions/3106
38+
"useImportType": "warn",
39+
"useTemplate": "warn",
40+
"noUnusedTemplateLiteral": "warn"
41+
},
42+
"suspicious": {
43+
"noAssignInExpressions": "off",
44+
"noImplicitAnyLet": "off"
45+
}
46+
}
47+
},
48+
"vcs": { "enabled": true, "clientKind": "git" }
49+
}

devvit.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: painttv
2+
version: 0.0.0

docs/dev.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Development
2+
3+
Supplemental development notes.
4+
5+
## Codeveloping Dependencies
6+
7+
It's often useful to codevelop dependencies by linking them because it doesn't
8+
require publishing. The workflow is usually:
9+
10+
1. `npm install` (if not already done).
11+
2. `npm link <local dep1> <local dep2> <local dep3>...` (must specify all
12+
linkage in one command). @devvit/public-api is required. Verify symbolic links
13+
to your local folders with `ls -l node_modules/@devvit`.
14+
3. Start playtest.
15+
4. Edit and build dependencies as needed.
16+
5. Cleanup; unlink all dependencies by re-running `npm install`.
17+
`npm link --save-dev` if you want links to persist past install.
18+
19+
<details markdown>
20+
<summary>@devvit polyrepo example…</summary>
21+
22+
```bash
23+
npm link \
24+
~/work/reddit/src/devvit/packages/protos \
25+
~/work/reddit/src/devvit/packages/public-api
26+
```
27+
28+
</details>
29+
30+
## Ignoring OS Cache Files
31+
32+
Unwanted environment-specific files such as `.DS_Store` and `Thumbs.db` should
33+
be excluded by the user's global Git configuration. They're unwanted in every
34+
repository and not specific to play. See
35+
[gitignore documentation](https://git-scm.com/docs/gitignore) for details.
36+
37+
<details markdown>
38+
<summary>`.DS_Store` example…</summary>
39+
40+
1. Add a global exclusions file by executing
41+
`git config --global core.excludesfile '~/.gitignore'` or updating your
42+
`~/.gitconfig` manually:
43+
44+
```gitconfig
45+
excludesfile = ~/.gitignore
46+
```
47+
48+
2. Always ignore `.DS_Store` files by executing `echo .DS_Store >> ~/.gitignore`
49+
or updating your `~/.gitignore` manually:
50+
51+
```gitignore
52+
.DS_Store
53+
```
54+
55+
</details>

docs/how-to-play.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# How to Play
2+
3+
## Painting
4+
5+
## Commands
6+
7+
- `bid <dots> [painting]`
8+
Painting is a T3, a URL, or current post.
9+
10+
```
11+
@tvpaint bid 100 t3_123
12+
```
13+
14+
- `gift <@user> <painting|dots> [msg]`
15+
16+
<details markdown>
17+
<summary>Examples…</summary>
18+
19+
Give back to TV Paint.
20+
21+
```
22+
@tvpaint gift @tvpaint 100
23+
```
24+
25+
</details>
26+
27+
- `bank [@user]`
28+
29+
```
30+
painting = t3_{id} | id | url | this
31+
```
32+
33+
## Auctions
34+
35+

0 commit comments

Comments
 (0)