Skip to content

Commit 5ea66ee

Browse files
committed
initial react tailwind setup
1 parent ddfa219 commit 5ea66ee

25 files changed

+17263
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parser": "babel-eslint",
3+
"rules": {
4+
"react/jsx-filename-extension": [
5+
1,
6+
{
7+
"extensions": [".js", ".jsx"]
8+
}
9+
],
10+
"strict": "off",
11+
"react/prop-types": "off",
12+
"react/no-danger": "off"
13+
},
14+
"globals": {
15+
"document": true
16+
},
17+
"extends": ["airbnb", "plugin:prettier/recommended", "prettier/react"]
18+
}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# dependencies
3+
/node_modules
4+
5+
# testing
6+
/coverage
7+
8+
# production
9+
/build
10+
11+
# misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
20+
# ignore generated tailwind
21+
src/styles/tailwind.css

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.16

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.cache
2+
package.json
3+
package-lock.json
4+
build

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5"
7+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Chrome",
6+
"type": "chrome",
7+
"request": "launch",
8+
"url": "http://localhost:3000",
9+
"webRoot": "${workspaceFolder}/src",
10+
"sourceMapPathOverrides": {
11+
"webpack:///src/*": "${webRoot}/*"
12+
}
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 David Buck
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# React Tailwind Setup
2+
3+
This is a simple React starter with [Tailwind](https://tailwindcss.com).
4+
5+
Create React App was used to generate the initial app.
6+
7+
Tailwind was setup with [postcss-cli](https://www.npmjs.com/package/postcss-cli), [autoprefixer](https://www.npmjs.com/package/autoprefixer) and [@fullhuman/postcss-purgecss](https://www.npmjs.com/package/@fullhuman/postcss-purgecss).
8+
9+
The project includes [Prettier](https://www.npmjs.com/package/prettier), [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier) and [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier).
10+
11+
Run `npm run start` to the React client.
12+
13+
## Tools
14+
15+
- [Tailwind](https://tailwindcss.com)
16+
- [postcss-cli](https://www.npmjs.com/package/postcss-cli)
17+
- [autoprefixer](https://www.npmjs.com/package/autoprefixer)
18+
- [@fullhuman/postcss-purgecss](https://www.npmjs.com/package/@fullhuman/postcss-purgecss)
19+
- [Prettier](https://www.npmjs.com/package/prettier)
20+
- [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier)
21+
- [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier)
22+
23+
## Versions
24+
25+
- [Version 1](https://github.com/DavidBuck/react-tailwind-setup/tree/v1.0) - React version 16.13.1.

0 commit comments

Comments
 (0)