-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e2faac6
Showing
89 changed files
with
16,181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# github | ||
GITHUB_ID='' | ||
GITHUB_SECRET='' | ||
|
||
# next-auth | ||
NEXTAUTH_SECRET='' | ||
NEXTAUTH_URL='http://localhost:3000' | ||
|
||
# postgres database | ||
POSTGRES_URL='' | ||
POSTGRES_PRISMA_URL='' | ||
POSTGRES_URL_NO_SSL='' | ||
POSTGRES_URL_NON_POOLING='' | ||
POSTGRES_USER='' | ||
POSTGRES_HOST='' | ||
POSTGRES_PASSWORD='' | ||
POSTGRES_DATABASE='' | ||
|
||
# app essentials | ||
APP_URL='https://localhost:3000/' | ||
|
||
# stripe | ||
STRIPE_SECRET_KEY='' | ||
STRIPE_WEBHOOK_SECRET_KEY='' | ||
STRIPE_SUBSCRIPTION_PRICE_ID='' | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY='' | ||
|
||
# google analytics | ||
GOOGLE_SITE_VERIFICATION_ID='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist/* | ||
.cache | ||
public | ||
node_modules | ||
*.esm.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'next/core-web-vitals', | ||
'prettier', | ||
'eslint:recommended', | ||
'plugin:prettier/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:tailwindcss/recommended', | ||
'plugin:storybook/recommended', | ||
], | ||
plugins: ['simple-import-sort', 'prettier', '@typescript-eslint'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
'sort-imports': 'off', | ||
'tailwindcss/no-custom-classname': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-require-imports': 'off', | ||
'simple-import-sort/imports': [ | ||
2, | ||
{ | ||
groups: [ | ||
['^.+\\.s?css$'], | ||
[ | ||
`^(${require('module').builtinModules.join('|')})(/|$)`, | ||
'^react', | ||
'^@?\\w', | ||
], | ||
['^components(/.*|$)'], | ||
['^lib(/.*|$)', '^hooks(/.*|$)'], | ||
['^\\.'], | ||
], | ||
}, | ||
], | ||
}, | ||
settings: { | ||
tailwindcss: { | ||
callees: ['cn'], | ||
config: 'tailwind.config.js', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Describe the feature / bug 📝: | ||
|
||
N/A | ||
|
||
### Steps to reproduce the bug 🔁: | ||
|
||
1. | ||
2. | ||
3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Issue 😱: | ||
|
||
Closes https://github.com/Skolaczk/next-starter/issues | ||
|
||
### What has been done ✅: | ||
|
||
- [ ] | ||
|
||
### Screenshots/Videos 🎥: | ||
|
||
N/A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Checks if all Translations are present & valid | ||
name: Ninja i18n action | ||
|
||
on: pull_request_target | ||
|
||
permissions: | ||
pull-requests: write # Necessary to comment on PRs | ||
issues: read # Necessary to read issue comments | ||
contents: read # Necessary to access the repo content | ||
|
||
jobs: | ||
ninja-i18n: | ||
name: Ninja - i18n Lint Action | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Run Ninja i18n | ||
# @main ensures that the latest version of the action is used | ||
uses: opral/ninja-i18n-action@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Code check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Eslint, Typescript, prettier and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: ESLint | ||
run: npm run lint | ||
- name: Type check | ||
run: npm run typecheck | ||
- name: Prettier | ||
run: npm run format:check | ||
- name: Tests | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- develop | ||
pull_request: null | ||
workflow_dispatch: null | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_URL: ${{ secrets.APP_URL }} | ||
GITHUB_ID: ${{ secrets.AUTH_GITHUB_ID }} | ||
GITHUB_SECRET: ${{ secrets.AUTH_GITHUB_SECRET }} | ||
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }} | ||
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} | ||
STRIPE_SUBSCRIPTION_PRICE_ID: ${{ secrets.STRIPE_SUBSCRIPTION_PRICE_ID}} | ||
STRIPE_WEBHOOK_SECRET_KEY: ${{ secrets.STRIPE_WEBHOOK_SECRET_KEY }} | ||
# TODO add postgres env variables | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- name: Install dependencies | ||
run: npm i | ||
- name: Install playwright browsers | ||
run: npx playwright install --with-deps | ||
- name: Run tests | ||
run: npm run e2e | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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 | ||
.idea | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# eslint cache | ||
.eslintcache | ||
|
||
# next-sitemap | ||
robots.txt | ||
sitemap.xml | ||
sitemap-*.xml | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ | ||
|
||
*storybook.log | ||
storybook-static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx --no -- commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
/public | ||
/dist | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
endOfLine: 'auto', | ||
semi: true, | ||
singleQuote: true, | ||
jsxSingleQuote: false, | ||
trailingComma: 'es5', | ||
tabWidth: 2, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { StorybookConfig } from '@storybook/nextjs'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-onboarding', | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@chromatic-com/storybook', | ||
'@storybook/addon-interactions', | ||
], | ||
framework: { | ||
name: '@storybook/nextjs', | ||
options: {}, | ||
}, | ||
staticDirs: ['../public'], | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Preview } from '@storybook/react'; | ||
import '../src/styles/globals.css'; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default preview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- tailwind css ✅ | ||
- storybook ✅ | ||
- prisma(postgres) ✅ | ||
- prettier ✅ | ||
- eslint ✅ | ||
- shadcn ✅ | ||
- magicUI ✅ | ||
- vercel deployment ✅ | ||
- pre-commit hook ✅ | ||
- jest ✅ | ||
- playwright ✅ | ||
- next-auth ✅ | ||
- i18n ✅ | ||
- stripe | ||
- docker | ||
- k8s/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/styles/globals.css", | ||
"baseColor": "neutral", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# ignore these modules while building the image | ||
|
||
.husky | ||
.next | ||
.vscode | ||
.github | ||
.storybook | ||
|
||
# git | ||
.git | ||
.gitignore | ||
|
||
node_modules | ||
docker | ||
coverage | ||
dist | ||
tmp | ||
temp | ||
|
||
.pnpm | ||
.pnpm-store | ||
|
||
# env files | ||
.env | ||
.env.example | ||
|
||
# eslint | ||
.eslintcache | ||
.eslintignore | ||
.eslintrc.js | ||
|
||
# prettier | ||
.prettierrc.js | ||
.prettierignore | ||
|
||
|
||
# non essential files | ||
next-env.d.ts | ||
tsconfig.tsbuildinfo |
Empty file.
Oops, something went wrong.