Skip to content

Commit 7b11dfe

Browse files
authored
Convert to svelte (#27)
* wow im so good at coding (convert everything to svelte) * mobile styles + optimization * adblock message (pre-vibe code) * move things to root * new workflows, locked * thanks copilot Please dont break prodddddd
1 parent 21e6de1 commit 7b11dfe

239 files changed

Lines changed: 5934 additions & 13684 deletions

File tree

Some content is hidden

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

.github/workflows/buildanddeploy.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,16 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27-
28-
- name: Setup Node.js
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: '20'
32-
33-
- name: Install htmlc globally
34-
run: npm install -g @sojs_coder/htmlc@1.3.5
35-
36-
# - name: Build Sitemap
37-
# run: node generate_sitemap.js
38-
39-
- name: Build roms.json
40-
env:
41-
ROMS_AWS_ACCESS_KEY: ${{ secrets.ROMS_AWS_ACCESS_KEY }}
42-
ROMS_AWS_SECRET_ACCESS_KEY: ${{ secrets.ROMS_AWS_SECRET_ACCESS_KEY }}
43-
run: |
44-
cd static/roms
45-
npm install
46-
node build.js
47-
27+
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v1
30+
31+
- name: Install dependencies
32+
run: bun install
33+
4834
- name: Build static site
49-
run: htmlc static --out=build
50-
35+
run: bun run build
36+
5137
- name: Deploy to gh-pages branch
5238
uses: peaceiris/actions-gh-pages@v3
5339
with:

.github/workflows/s3_deploy.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
.env
2-
build
3-
found_files.log
41
node_modules
5-
package-lock.json
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
/dist
11+
12+
# OS
13+
.DS_Store
14+
Thumbs.db
15+
16+
# Env
17+
.env
18+
.env.*
19+
!.env.example
20+
!.env.test
21+
22+
# Vite
23+
vite.config.js.timestamp-*
24+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Svelte library
2+
3+
Everything you need to build a Svelte library, powered by [`sv`](https://npmjs.com/package/sv).
4+
5+
Read more about creating a library [in the docs](https://svelte.dev/docs/kit/packaging).
6+
7+
## Creating a project
8+
9+
If you're seeing this, you've probably already done this step. Congrats!
10+
11+
```sh
12+
# create a new project in the current directory
13+
npx sv create
14+
15+
# create a new project in my-app
16+
npx sv create my-app
17+
```
18+
19+
## Developing
20+
21+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
22+
23+
```sh
24+
npm run dev
25+
26+
# or start the server and open the app in a new browser tab
27+
npm run dev -- --open
28+
```
29+
30+
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
31+
32+
## Building
33+
34+
To build your library:
35+
36+
```sh
37+
npm pack
38+
```
39+
40+
To create a production version of your showcase app:
41+
42+
```sh
43+
npm run build
44+
```
45+
46+
You can preview the production build with `npm run preview`.
47+
48+
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
49+
50+
## Publishing
51+
52+
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
53+
54+
To publish your library to [npm](https://www.npmjs.com):
55+
56+
```sh
57+
npm publish
58+
```
File renamed without changes.

bun.lock

Lines changed: 744 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/chead.html

Lines changed: 0 additions & 28 deletions
This file was deleted.

components/gtag.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/gtag_events.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)