Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to app directory #37

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

13 changes: 7 additions & 6 deletions .eslintrc.js → .eslintrc copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'prettier/react',
'prettier/@typescript-eslint',
'next/core-web-vitals',
// 'eslint:recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
// 'plugin:@typescript-eslint/recommended',
// 'plugin:react/recommended',
// 'prettier/react',
// 'prettier/@typescript-eslint',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
Expand Down
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "next/core-web-vitals",
"rules": {
"react/display-name": "off"
}
}
4 changes: 1 addition & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"trailingComma": "es5",
"singleQuote": true,
"jsxSingleQuote": true,
"bracketSpacing": true,
"semi": false,
"tabWidth": 2
}
112 changes: 112 additions & 0 deletions _package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"name": "easy-flow",
"version": "0.9.7",
"description": "A real tiime collaborative project manager based on Kanban methodology.",
"engines": {
"node": "12.x"
},
"scripts": {
"dev": "next -H 0.0.0.0",
"build": "next build",
"start": "next start -p 8080",
"deploy": "next build; gcloud app deploy",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint --fix . --ext .ts,.tsx",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"author": "Fellipe Pinheiro <[email protected]>",
"license": "MIT",
"dependencies": {
"@chakra-ui/react": "^1.3.4",
"@emotion/react": "^11.1.5",
"@emotion/styled": "^11.1.5",
"@types/js-cookie": "^2.2.6",
"@zeit/next-css": "^1.0.1",
"@zeit/next-sass": "^1.0.1",
"classnames": "^2.2.6",
"date-fns": "^2.14.0",
"dotenv": "^5.0.1",
"dotenv-webpack": "^1.8.0",
"fbemitter": "^2.1.1",
"firebase": "^8.2.1",
"firestore": "^1.1.6",
"firestorter": "^3.0.1",
"framer-motion": "^3.10.0",
"helmet": "^3.23.1",
"js-cookie": "^2.2.1",
"mobx": "^6.0.4",
"mobx-react": "^7.0.5",
"mobx-react-lite": "^3.1.6",
"next": "^9.4.4",
"next-cookies": "^2.0.3",
"nodemailer": "^6.4.10",
"normalizr": "^3.6.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-aria-menubutton": "^5.1.1",
"react-autosuggest": "^9.4.3",
"react-beautiful-dnd": "github:yogaboll/react-beautiful-dnd#include-generated",
"react-burger-menu": "^2.7.1",
"react-color": "^2.18.1",
"react-content-loader": "^4.3.4",
"react-cool-portal": "^1.0.12",
"react-day-picker": "^7.4.8",
"react-dom": "^16.13.1",
"react-firebaseui": "^4.1.0",
"react-ga": "^2.7.0",
"react-head": "^3.3.0",
"react-icons": "^3.10.0",
"react-intersection-observer": "^8.26.2",
"react-markdown": "^4.3.1",
"react-modal": "^3.11.2",
"react-onclickoutside": "^6.8.0",
"react-spring": "^8.0.27",
"react-tagsinput": "^3.19.0",
"react-textarea-autosize": "^6.1.0",
"react-toastify": "^5.5.0",
"react-transition-group": "^4.4.1",
"resize-observer-polyfill": "^1.5.1",
"shortid": "^2.2.8",
"slugify": "^1.4.0",
"styled-components": "^4.4.0"
},
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.10.1",
"@storybook/addon-actions": "^6.0.21",
"@storybook/addon-links": "^6.0.21",
"@storybook/addons": "^6.0.21",
"@storybook/react": "^6.0.21",
"@storybook/theming": "^6.0.21",
"@types/classnames": "^2.2.10",
"@types/fbemitter": "^2.0.32",
"@types/next": "^8.0.7",
"@types/nodemailer": "^6.4.0",
"@types/react": "^16.9.38",
"@types/react-burger-menu": "^2.6.1",
"@types/react-dom": "^16.9.8",
"@types/styled-components": "^4.4.3",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"babel-plugin-styled-components": "^1.10.7",
"core-js": "^3.6.5",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^2.5.1",
"husky": "^4.2.5",
"node-sass": "^4.14.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^1.19.1",
"tailwindcss": "^1.4.6",
"typescript": "^3.9.5"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run lint"
}
}
}
5 changes: 4 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
39 changes: 21 additions & 18 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
const Dotenv = require('dotenv-webpack');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const webpack = require('webpack');

module.exports = {
webpack: (config, { dev }) => {
config.plugins.push(new Dotenv({ systemvars: true }));

if (!dev) {
if (Array.isArray(config.optimization.minimizer)) {
config.optimization.minimizer.push(new OptimizeCSSAssetsPlugin({}));
}
}

config.plugins.push(new webpack.DefinePlugin({ __DEV__: dev }));

return config;
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
appDir: true,
serverActions: true
},
};
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
}

module.exports = nextConfig
Loading