Skip to content

Commit

Permalink
move-to-fe-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ivadimko committed May 15, 2022
1 parent 3890f8c commit b4ffc15
Show file tree
Hide file tree
Showing 22 changed files with 17,401 additions and 4,031 deletions.
42 changes: 12 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
# Mac OS DS_Store files.
.DS_Store
*.pem

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

# local env files
.env*.local
.idea/
.vscode/

# vercel
.vercel
# Ignore env config
.env

# typescript
*.tsbuildinfo
# Ignore node_modules
node_modules
14 changes: 14 additions & 0 deletions .graphqlconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "zapravka graphql api",
"extensions": {
"endpoints": {
"Default GraphQL Endpoint": {
"url": "http://localhost:1337/graphql",
"headers": {
"user-agent": "JS GraphQL"
},
"introspect": false
}
}
}
}
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

lint-staged
npx lint-staged
8 changes: 8 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"frontend/*.{js,ts,tsx}": [
"eslint --fix"
],
"cms/*.{js,ts,tsx}": [
"eslint --fix"
]
}
2 changes: 1 addition & 1 deletion .eslintrc.js → frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
extends: [
'next/core-web-vitals',
'airbnb-typescript',
'plugin:react-hooks/recommended',
'next/core-web-vitals'
],
parserOptions: {
project: `${__dirname}/tsconfig.json`,
Expand Down
35 changes: 35 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions next.config.js → frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
};

module.exports = nextConfig
module.exports = nextConfig;
Loading

0 comments on commit b4ffc15

Please sign in to comment.