Skip to content

Commit

Permalink
Merge pull request #1 from tegarimansyah/refactor/move-to-svelte
Browse files Browse the repository at this point in the history
Refactor/move to svelte
  • Loading branch information
tegarimansyah authored Jun 28, 2023
2 parents 42210cf + 9ff351d commit 75c87dc
Show file tree
Hide file tree
Showing 38 changed files with 4,178 additions and 3,687 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
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
14 changes: 14 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
};
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
node_modules
/build
/.svelte-kit
/package
.env
.vscode
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
archive
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
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
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 120,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
40 changes: 32 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,42 @@

Declutter your unused repo. Create your github personal access token, give permission for these scopes:

* repo
* gist
* delete_repo
* repo => To access your repo
* delete_repo => To delete your repo

then declutter your repo.

![docs/img/screenshot.png](docs/img/screenshot.png)

## To Do
## Why I create this?

* [ ] Actually delete the repo (currently just console log it)
* [ ] Implement Vuex for toggle and username+token
* [ ] Sort by
* [ ] Multiple deletion
I create my github account when I can't really code, but I have a ton of ideas. Each ideas, I will create a repo but that's only half-baked code. Now I want to make my github profile more professional-look that show case my capabilities, removing unused repo and not mix up decent repos with my broken repos. Hope this can also help you.

Well, at least I relief github from hundreds of megabytes of my trash code.

## Tech Stack:

* [SvelteKit](https://svelte.dev/)
* [Github Rest API](https://docs.github.com/en/rest) called by [axios](https://axios-http.com/docs/intro)
* [Tailwind CSS](https://tailwindcss.com/) (some from [Tailwind UI](https://tailwindui.com))
* [DaisyUI](https://daisyui.com/)

## Development

```sh
$ npm install
$ npm run dev -- --host
```

## Contribution

* Bug report -> Create issue
* Feature request -> Create issue
* Ask something? -> Create issue or mention @tegar_imansyah in twitter
* Code contribution -> Read CONTRIBUTING.md

## Find it helpful?

* Share your story to your social media. Please also let me know by mentioning @tegar_imansyah or fill this form.

## License: MIT
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

17 changes: 17 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and 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
}
Loading

1 comment on commit 75c87dc

@vercel
Copy link

@vercel vercel bot commented on 75c87dc Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.