Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyush1712 committed May 13, 2024
0 parents commit 10557d1
Show file tree
Hide file tree
Showing 122 changed files with 15,581 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Summary

This PR fixes #issue_number.

# Description

The approach taken to fix this issue was to...

# Notes/Considerations

- [ ] Tests
- [ ] Documentation

# Screenshots (if applicable)

This PR changes the following pages:

- Page 1 <img src='' />
- Page 2 <img src='' />
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# run pnpm lint and pnpm format-check in parallel on every pull request and push to master branch
# also check for pnpm build after installing dependencies

name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
environment:
name: My Environment
env:
VARS_CONTEXT: ${{ toJson(vars) }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2
- uses: actions/cache@v3
with:
path: |
~/.pnpm
${{ github.workspace }}/node_modules
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Format check
run: pnpm format-check
- name: Build
run: pnpm build
47 changes: 47 additions & 0 deletions .github/workflows/update_songs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Update Utils Folder

on:
push:
branches: master
paths:
- "spotify/data.py"

jobs:
update-and-commit:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install spotipy python-dotenv
- name: Run index.py to update utils folder
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_SECRET: ${{ secrets.SPOTIFY_SECRET }}
run: python spotify/index.py

- name: Commit model
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated Songs on Homepage
branch: master
commit_options: "--no-verify --signoff"
file_pattern: .
repository: .

tagging_message: "v1.0.0"
status_options: "--untracked-files=no"
add_options: "-u"
push_options: "--force"
skip_dirty_check: true
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env.*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# development
.vscode

# latex
*.aux
*.fdb_latexmk
*.fls
*.log
*.out
*.synctex.gz
# next-video
!public/videos/*.json
!public/videos/*.js
!public/videos/*.ts
public/_next-video
.env*.local
Empty file added .husky/pre-commit
Empty file.
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build/
public/**.html
public/**.json
node_modules
venv
*.yaml
src/utils/songs.json
*.aux
*.fdb_latexmk
*.fls
*.log
*.out
*.synctex.gz
/.venv/
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"singleQuote": false,
"trailingComma": "none",
"tabWidth": 4,
"bracketSpacing": true,
"useTabs": true,
"arrowParens": "avoid",
"printWidth": 150,
"proseWrap": "never",
"endOfLine": "lf",
"bracketSameLine": true
}
7 changes: 7 additions & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
spotify/
*.aux
*.fdb_latexmk
*.fls
*.log
*.out
*.synctex.gz
Loading

1 comment on commit 10557d1

@vercel
Copy link

@vercel vercel bot commented on 10557d1 May 13, 2024

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.