Repository: bagusindrayana/roastgithub Branch: master Commit: c127b7defd34 Files: 11 Total size: 13.0 KB Directory structure: gitextract_kb9tz80h/ ├── .gitignore ├── .npmrc ├── README.md ├── package.json ├── src/ │ ├── app.d.ts │ ├── app.html │ ├── lib/ │ │ └── index.ts │ └── routes/ │ └── +page.svelte ├── svelte.config.js ├── tsconfig.json └── vite.config.ts ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ node_modules # Output .output .vercel /.svelte-kit /build # OS .DS_Store Thumbs.db # Env .env .env.* !.env.example !.env.test # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* ================================================ FILE: .npmrc ================================================ engine-strict=true ================================================ FILE: README.md ================================================ # New Version - new version in branch `v2` - new version using sveltekit api so don't need to run backend api ## Local Development Backend API repo : https://github.com/bagusindrayana/roastgithub-api - Clone the repository - Run `npm install` - make .env file and add the following ``` PUBLIC_API_URL=http://localhost:3001 ``` - Run `npm run dev` ## Support Me! Trakteer Saya ================================================ FILE: package.json ================================================ { "name": "roastgithub", "version": "0.0.1", "private": true, "scripts": { "dev": "vite dev", "build": "vite build", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", "svelte": "^4.2.7", "svelte-check": "^3.6.0", "typescript": "^5.0.0", "vite": "^5.0.3" }, "type": "module", "dependencies": { "axios": "^1.7.3" } } ================================================ FILE: src/app.d.ts ================================================ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces declare global { namespace App { // interface Error {} // interface Locals {} // interface PageData {} // interface PageState {} // interface Platform {} } } export {}; ================================================ FILE: src/app.html ================================================ %sveltekit.head%
%sveltekit.body%
================================================ FILE: src/lib/index.ts ================================================ // place files you want to import through the `$lib` alias in this folder. ================================================ FILE: src/routes/+page.svelte ================================================ GitHub Profile Roasting 🔥🔥🔥

GitHub Profile Roasting 🔥🔥🔥

{#if status == "idle"}

Enter a GitHub username to get started.

{/if}
Setting
{#if status == "done"}

Roasting For {username}

{roastingResult}

{:else if status == "loading"}

Loading...

{/if}
================================================ FILE: svelte.config.js ================================================ import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors preprocess: vitePreprocess(), kit: { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported, or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. adapter: adapter() } }; export default config; ================================================ FILE: tsconfig.json ================================================ { "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { "allowJs": true, "checkJs": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, "strict": true, "moduleResolution": "bundler" } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // except $lib which is handled by https://kit.svelte.dev/docs/configuration#files // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // from the referenced tsconfig.json - TypeScript does not merge them in } ================================================ FILE: vite.config.ts ================================================ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit()] });