Skip to content

Commit

Permalink
feat: 馃幐 Add new next.js app Github to LinkedIn (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
flexbox committed Mar 9, 2023
1 parent 605f971 commit 04b54ab
Show file tree
Hide file tree
Showing 15 changed files with 1,879 additions and 610 deletions.
34 changes: 34 additions & 0 deletions apps/githubtolinkedin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": [
"plugin:@nrwl/nx/react-typescript",
"next",
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": [
"error",
"apps/githubtolinkedin/pages"
]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"rules": {
"@next/next/no-html-link-for-pages": "off"
},
"env": {
"jest": true
}
}
6 changes: 6 additions & 0 deletions apps/githubtolinkedin/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
export const ReactComponent: any;
export default content;
}
11 changes: 11 additions & 0 deletions apps/githubtolinkedin/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable */
export default {
displayName: 'githubtolinkedin',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nrwl/next/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/githubtolinkedin',
};
5 changes: 5 additions & 0 deletions apps/githubtolinkedin/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/basic-features/typescript for more information.
17 changes: 17 additions & 0 deletions apps/githubtolinkedin/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//@ts-check

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withNx } = require('@nrwl/next/plugins/with-nx');

/**
* @type {import('@nrwl/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
nx: {
// Set this to true if you would like to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
},
};

module.exports = withNx(nextConfig);
21 changes: 21 additions & 0 deletions apps/githubtolinkedin/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { AppProps } from 'next/app';
import { Inter } from '@next/font/google';
import Head from 'next/head';
import './styles.css';

const inter = Inter({ subsets: ['latin'] });

function CustomApp({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<title>GitHub to LinkedIn</title>
</Head>
<main className={inter.className}>
<Component {...pageProps} />
</main>
</>
);
}

export default CustomApp;
21 changes: 21 additions & 0 deletions apps/githubtolinkedin/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export function Index() {
/*
* Replace the elements below with your own.
*
* Note: The corresponding styles are in the ./index.css file.
*/
return (
<div className="wrapper">
<div className="container">
<div id="welcome">
<h1>
<span> Hello there, </span>
Welcome githubtolinkedin 馃憢
</h1>
</div>
</div>
</div>
);
}

export default Index;
Loading

0 comments on commit 04b54ab

Please sign in to comment.