Skip to content

Commit

Permalink
Next source
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswenzz committed Dec 16, 2024
1 parent 998ac9d commit e760baf
Show file tree
Hide file tree
Showing 334 changed files with 15,425 additions and 4,790 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_GRAPHQL_URL=https://localhost/graphql
VITE_RECAPTCHA_TOKEN=6LdE8QAVAAAAAKvBLdna3qVhf6ml05DKXRXwDxmn
WEBSITE_URL=https://iswenzz.com/
WEBSITE_THEME=dark
81 changes: 29 additions & 52 deletions .github/workflows/application.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,34 @@
name: Application

on:
push:
branches: [master]
pull_request:
branches: [master]
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Build
run: |
yarn --no-immutable
yarn build
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Tests
run: |
yarn --no-immutable
yarn test
- name: CodeCov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/cobertura-coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Lint
run: |
yarn --no-immutable
yarn lint
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Build
run: |
yarn --no-immutable
yarn build
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Lint
run: |
yarn --no-immutable
yarn lint
41 changes: 22 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
.idea/*
.vs/*
.vscode/*
node_modules/*
coverage/*
build/*

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.env.local
.env.development.local
.env.test.local
.env.production.local
.idea/*
.vs/*
.vscode/*
.next/*
.vercel/*
node_modules/*
coverage/*
build/*
out/*

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.env.local
.env.development.local
.env.test.local
.env.production.local
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
coverage
build
dist
34 changes: 0 additions & 34 deletions .stylelintrc

This file was deleted.

894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
yarnPath: .yarn/releases/yarn-4.3.1.cjs
nodeLinker: node-modules
45 changes: 40 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,43 @@
import config from "./packages/izui-web/packages/izui-react/eslint.config.js";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import prettier from "eslint-config-prettier";
import pluginNext from "@next/eslint-plugin-next";
import pluginReact from "eslint-plugin-react";
import pluginReactHooks from "eslint-plugin-react-hooks";
import globals from "globals";

export default [
...config,
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
prettier,
{
ignores: ["src/api/generated/*", "build/*"]
...pluginReact.configs.flat.recommended,
languageOptions: {
...pluginReact.configs.flat.recommended.languageOptions,
globals: {
...globals.node,
...globals.browser,
...globals.serviceworker
}
}
},
{
plugins: {
"react-hooks": pluginReactHooks
},
settings: { react: { version: "detect" } },
rules: {
...pluginReactHooks.configs.recommended.rules,
"react/react-in-jsx-scope": "off"
}
},
{
plugins: {
"@next/next": pluginNext
},
rules: {
...pluginNext.configs.recommended.rules,
...pluginNext.configs["core-web-vitals"].rules
}
}
];
);
38 changes: 0 additions & 38 deletions index.html

This file was deleted.

5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
9 changes: 9 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: "https://iswenzz.com",
generateRobotsTxt: true,
// https://nextjs.org/docs/app/api-reference/file-conventions/metadata
exclude: ["/twitter-image.*", "/opengraph-image.*", "/icon.*"]
};

export default config;
12 changes: 12 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { NextConfig } from "next";
import NextBundleAnalyzer from "@next/bundle-analyzer";

const nextConfig: NextConfig = {
reactStrictMode: true
};

const withBundleAnalyzer = NextBundleAnalyzer({
enabled: process.env.NODE_ENV === "production"
});

export default withBundleAnalyzer(nextConfig);
Loading

0 comments on commit e760baf

Please sign in to comment.