Skip to content

Commit

Permalink
move app to /src
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodrigues95 committed Dec 15, 2023
1 parent f691c73 commit e209d43
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const nextConfig = {
reactStrictMode: true,
compiler: {
relay: {
src: './',
src: 'src',
language: 'typescript',
artifactDirectory: '__generated__',
},
Expand Down
3 changes: 1 addition & 2 deletions apps/web/relay.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"root": ".",
"sources": {
"src": "chatse_web",
"app": "chatse_web"
"src": "chatse_web"
},
"projects": {
"chatse_web": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/app/layout.tsx → apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../src/styles/globals.css';
import '../styles/globals.css';

import { ReactNode } from 'react';
import { Inter as FontSans } from 'next/font/google';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { commitMutation, graphql } from 'relay-runtime';
import { z, ZodError } from 'zod';

import { actionsLoginMutation } from '../../__generated__/actionsLoginMutation.graphql';
import { getRelayEnvironment } from '../../src/relay/environment';
import { actionsLoginMutation } from '../../../__generated__/actionsLoginMutation.graphql';
import { getRelayEnvironment } from '../../utils/relay/environment';

const schema = z.object({
email: z.string().email(),
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useFormState } from 'react-dom';

import { Button, Form, Text } from '@chatse/toolkit';
import { Link } from '../../src/components/link';
import { Link } from '../../components/link';
import { login } from './actions';

const Login = () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { ReactNode } from 'react';
import { RelayEnvironmentProvider } from 'react-relay';

import { useEnvironment } from '../src/relay/environment';
import { useEnvironment } from '../utils/relay/environment';

export const RootProviders = ({ children }: { children: ReactNode }) => {
const environment = useEnvironment();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
module.exports = {
presets: [require('../../tailwind-workspace-preset.js')],
content: [
path.join(__dirname, '{src,app}/**/*!(*.stories|*.spec).{js,jsx,ts,tsx,html,css}'),
path.join(__dirname, 'src/**/*!(*.stories|*.spec).{js,jsx,ts,tsx,html,css}'),
...createGlobPatternsForDependencies(__dirname),
],
darkMode: 'class',
Expand Down

0 comments on commit e209d43

Please sign in to comment.