Skip to content

Commit dcf78dc

Browse files
committed
Initial release
0 parents  commit dcf78dc

30 files changed

+5284
-0
lines changed

Diff for: .eslintrc.cjs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
env: {
7+
node: true
8+
},
9+
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier/skip-formatting'],
10+
// add your custom rules here
11+
rules: {
12+
'no-console': 'warn',
13+
'vue/multi-word-component-names': 'off'
14+
},
15+
parserOptions: {
16+
ecmaVersion: 'latest'
17+
}
18+
}

Diff for: .gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
build
6+
coverage
7+
.husky
8+
.eslintcache
9+
*.local
10+
.vscode
11+
12+
/cypress/videos/
13+
/cypress/screenshots/
14+
15+
# local env files
16+
.env
17+
.env.local
18+
.env.*.local
19+
20+
# Logs
21+
logs
22+
*.log
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
lerna-debug.log*
28+
29+
# Editor directories and files
30+
.vscode/*
31+
!.vscode/extensions.json
32+
.idea
33+
*.suo
34+
*.ntvs*
35+
*.njsproj
36+
*.sln
37+
*.sw?
38+
39+
*.tsbuildinfo

Diff for: .prettierrc.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"printWidth": 9999,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": false,
7+
"singleQuote": true,
8+
"quoteProps": "as-needed",
9+
"jsxSingleQuote": false,
10+
"trailingComma": "none",
11+
"bracketSpacing": true,
12+
"bracketSameLine": false,
13+
"jsxBracketSameLine": false,
14+
"arrowParens": "avoid",
15+
"proseWrap": "always"
16+
}

Diff for: README.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# GitHub Repository Line of Code Calculator
2+
3+
Simplify GitHub repository analysis with our Line of Code Calculator. Quickly input the owner and repository name to obtain total lines of code, providing valuable insights for developers and project managers. Effortlessly streamline codebase assessments for enhanced efficiency.
4+
5+
## Prerequisites
6+
7+
Make sure you have the following software installed on your machine:
8+
9+
- [Node.js](https://nodejs.org/) (version 14 or higher)
10+
- [npm](https://www.npmjs.com/) (comes with Node.js)
11+
- [Git](https://git-scm.com/) (optional but recommended)
12+
13+
## Recommended IDE Setup
14+
15+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
16+
17+
## Getting Started
18+
19+
1. **Clone the Repository:**
20+
21+
```sh
22+
git clone https://github.com/mhamid49/GitHub-Repository-Line-of-Code-Calculator.git
23+
```
24+
25+
2. **Navigate to the Project Directory:**
26+
27+
```sh
28+
cd GitHub-Repository-Line-of-Code-Calculator
29+
```
30+
31+
3. **Configure Environment Variables:**
32+
33+
Create a .env file in the root of the project and set the following variables:
34+
35+
```env
36+
VITE_BASE_URL=http://127.0.0.1:5173
37+
VITE_GITHUB_ACCESS_TOKEN=your-github-access-token
38+
```
39+
40+
## Project Setup
41+
42+
1. **Install Dependencies:**
43+
44+
```sh
45+
npm install
46+
```
47+
48+
2. **Run the Application:**
49+
50+
- Compile and Hot-Reload for Development:
51+
52+
```sh
53+
npm run dev
54+
```
55+
56+
- Compile and Minify for Production:
57+
58+
```sh
59+
npm run build
60+
```
61+
62+
- Lint with [ESLint](https://eslint.org/):
63+
64+
```sh
65+
npm run lint
66+
```
67+
68+
## Customize configuration
69+
70+
See [Vite Configuration Reference](https://vitejs.dev/config/).

Diff for: index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

Diff for: jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

0 commit comments

Comments
 (0)