Skip to content

Commit

Permalink
Migrate to SvelteKit
Browse files Browse the repository at this point in the history
Close #158

commit b759884
Author: Made Baruna <made.setia@gmail.com>
Date:   Thu Jul 21 21:57:38 2022 +0700

    Add update popup

commit 00f8b19
Author: Made Baruna <made.setia@gmail.com>
Date:   Thu Jul 21 20:09:18 2022 +0700

    Add service worker

commit 1cd1e40
Author: Made Baruna <made.setia@gmail.com>
Date:   Thu Jul 21 11:38:37 2022 +0700

    Update firebase config

commit edc036f
Author: Made Baruna <made.setia@gmail.com>
Date:   Wed Jul 20 23:33:38 2022 +0700

    Separate build getter

commit e780ab1
Author: Made Baruna <made.setia@gmail.com>
Date:   Wed Jul 20 22:16:28 2022 +0700

    Update readme

commit 7f0890a
Author: Made Baruna <made.setia@gmail.com>
Date:   Wed Jul 20 22:07:25 2022 +0700

    Fix createEnv

commit 1df04e3
Author: Made Baruna <made.setia@gmail.com>
Date:   Wed Jul 20 22:03:12 2022 +0700

    Migrate to svelte-kit
  • Loading branch information
MadeBaruna committed Jul 21, 2022
1 parent b06d4d5 commit 593938c
Show file tree
Hide file tree
Showing 103 changed files with 2,757 additions and 5,016 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
/src/node_modules/@sapper/
yarn-error.log
/__sapper__/
.svelte-kit
/build
.env
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120
}
7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Your best Genshin Impact companion! Paimon.moe helps you plan what to farm with ascension calculator and database. It also tracks your progress with a todo list and a wish counter.

Created with [Sapper](https://sapper.svelte.dev/) + [Tailwind CSS](https://tailwindcss.com/)
Created with [SvelteKit](https://kit.svelte.dev/) + [Tailwind CSS](https://tailwindcss.com/)

# Development

```
# install dependencies
yarn
pnpm i
# you need the api to run wish importer and wish tally
git clone https://github.com/MadeBaruna/paimon-moe-api
Expand All @@ -20,10 +20,10 @@ docker-compose up -d
# run in dev mode
cp .env.example .env
vi .env
yarn dev
pnpm dev
# export as production static site
yarn export
pnpm build
```

# License
Expand Down
54 changes: 19 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,34 @@
{
"type": "module",
"name": "paimon-moe",
"description": "A collection of tools to help playing Genshin Impact",
"version": "0.0.1",
"scripts": {
"dev": "NODE_OPTIONS=--max_old_space_size=4096 sapper dev",
"build": "sapper build --legacy",
"export": "NODE_OPTIONS=--max_old_space_size=4096 sapper export --legacy && cp __sapper__/build/firebase-messaging-sw.js __sapper__/export",
"start": "node __sapper__/build"
},
"dependencies": {
"compression": "^1.7.1",
"exceljs": "^4.2.1",
"localforage": "^1.9.0",
"polka": "next",
"prettier": "^2.2.1",
"sirv": "^1.0.0"
"dev": "vite dev --port 3000",
"build": "NODE_OPTIONS=--max_old_space_size=4096 vite build",
"preview": "vite preview",
"start": "node build"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/runtime": "^7.0.0",
"@mdi/js": "^5.9.55",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-dynamic-import-vars": "^1.1.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@rollup/plugin-url": "^5.0.0",
"autoprefixer": "^10.0.1",
"@sveltejs/adapter-static": "1.0.0-next.37",
"@sveltejs/kit": "^1.0.0-next.379",
"autoprefixer": "^10.4.7",
"chart.js": "^2.9.4",
"dayjs": "^1.9.4",
"dotenv": "^8.2.0",
"postcss": "^8.2.10",
"postcss-load-config": "^3.0.0",
"postcss-nested": "^5.0.1",
"rollup": "^2.3.4",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0",
"sapper": "^0.28.0",
"exceljs": "^4.3.0",
"localforage": "^1.10.0",
"lodash.debounce": "^4.0.8",
"postcss": "^8.4.14",
"postcss-nested": "^5.0.6",
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"svelte": "^3.17.3",
"svelte-i18n": "^3.3.6",
"svelte-preprocess": "^4.5.1",
"svelte-i18n": "^3.4.0",
"svelte-preprocess": "^4.10.7",
"svelte-simple-modal": "^0.6.1",
"tailwindcss": "^1.9.5"
"tailwindcss": "^3.1.6",
"vite": "^3.0.2"
}
}
Loading

0 comments on commit 593938c

Please sign in to comment.