Skip to content

Commit

Permalink
Initial commit from Create Next App
Browse files Browse the repository at this point in the history
  • Loading branch information
taddison committed Jun 28, 2020
0 parents commit de0eff2
Show file tree
Hide file tree
Showing 14 changed files with 6,889 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'prettier'],

extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'prettier',
],

rules: {
// NextJs does not require you to import React into each component. so suppress errors for missing 'import React' in files.
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
settings: {
react: {
version: 'detect',
},
},
globals: {
// NextJs does not require you to import React into each component. so suppress errors for missing 'import React' in files.
React: 'writable',
},
};
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"workbench.colorCustomizations": {
"titleBar.activeForeground": "#161e2e",
"titleBar.inactiveForeground": "#374151",
"titleBar.activeBackground": "#68d4f5",
"titleBar.inactiveBackground": "#b4c6fc"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Create-next-app with:

- Tailwincd CSS (with tailwindui plugin and Inter font)
- Prettier
- ESLint with a minimal ruleset

Optimized for quick exploration of ideas.
6 changes: 6 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"baseUrl": "."
},
"exclude": ["node_modules"]
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "tailwind-js",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint --ignore-path .gitignore . --ext js",
"lint:fix": "eslint --ignore-path .gitignore . --ext js --fix",
"format": "prettier --ignore-path .gitignore --write \"**/*.{js,json,md}\""
},
"dependencies": {
"next": "9.4.4",
"react": "16.13.1",
"react-dom": "16.13.1"
},
"devDependencies": {
"@tailwindcss/ui": "^0.3.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.3.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.0.5",
"tailwindcss": "^1.4.6"
}
}
16 changes: 16 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'styles/style.css';
import Head from 'next/head';

function MyApp({ Component, pageProps }) {
return (
<>
<Head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Component {...pageProps} />
</>
);
}

export default MyApp;
13 changes: 13 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Head from 'next/head';

export default function Home() {
return (
<div>
<Head>
<title>Create Next App</title>
</Head>

<main>Site content goes here.</main>
</div>
);
}
3 changes: 3 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: ['tailwindcss', 'postcss-preset-env'],
};
Binary file added public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
purge: ['./**/*.js'],
theme: {
extend: {},
},
variants: {},
plugins: [],
};
Loading

0 comments on commit de0eff2

Please sign in to comment.