Skip to content

Commit e13015d

Browse files
fix(workflow): changed workflow from linting to build only and setupped tailwind configs
1 parent ed9a79a commit e13015d

File tree

7 files changed

+121
-33
lines changed

7 files changed

+121
-33
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
rules: {
2424
quotes: ["error", "double", { avoidEscape: true }],
2525
"no-shadow": "off",
26+
"strict": "off",
2627
"react/jsx-uses-react": ["off"],
2728
"react/react-in-jsx-scope": ["off"],
2829
"no-unused-vars": [

.github/workflows/ci.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Lint
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
- develop
8-
pull_request:
9-
branches:
10-
- main
11-
- develop
12-
13-
jobs:
14-
lint:
15-
name: Lint
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v2
21-
22-
- name: Setup Node.js
23-
uses: actions/setup-node@v2
24-
with:
25-
node-version: '20.11.0'
26-
27-
- name: Install dependencies
28-
run: npm install
29-
30-
- name: Run ESLint and Prettier
31-
run: npm run lint
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '20.11.0'
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Build project
31+
run: npm run build

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
build
3+
dist
4+
*.json

src/assets/styles/index.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,74 @@
11
@import "tailwindcss/base";
22
@import "tailwindcss/components";
33
@import "tailwindcss/utilities";
4+
5+
/* Reset default browser styles */
6+
html,
7+
body,
8+
h1,
9+
h2,
10+
h3,
11+
h4,
12+
h5,
13+
h6,
14+
p,
15+
blockquote,
16+
pre,
17+
a,
18+
abbr,
19+
address,
20+
cite,
21+
code,
22+
del,
23+
dfn,
24+
em,
25+
img,
26+
ins,
27+
kbd,
28+
q,
29+
samp,
30+
small,
31+
strong,
32+
sub,
33+
sup,
34+
var,
35+
b,
36+
i,
37+
dl,
38+
dt,
39+
dd,
40+
ol,
41+
ul,
42+
li,
43+
fieldset,
44+
form,
45+
label,
46+
legend,
47+
table,
48+
caption,
49+
tbody,
50+
tfoot,
51+
thead,
52+
tr,
53+
th,
54+
td,
55+
article,
56+
aside,
57+
figure,
58+
footer,
59+
header,
60+
hgroup,
61+
menu,
62+
nav,
63+
section,
64+
time,
65+
mark,
66+
audio,
67+
video {
68+
margin: 0;
69+
padding: 0;
70+
border: 0;
71+
font-size: 100%;
72+
font: inherit;
73+
vertical-align: baseline;
74+
}

src/pages/Home/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Home() {
2-
return <div>Home</div>;
2+
return <div className="bg-background">Home</div>;
33
}
44

55
export default Home;

tailwind.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
export default {
33
content: ["./src/**/*.{js,jsx}"],
44
theme: {
5-
extend: {},
5+
extend: {
6+
colors: {
7+
background: '#232323',
8+
primary: '#F24E3F',
9+
text: '#F7F7F7',
10+
},
11+
fontFamily: {
12+
sans: ['Roboto', 'sans-serif'],
13+
},
14+
},
615
},
716
plugins: [],
817
};

vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import react from "@vitejs/plugin-react";
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
server: {
8+
port: 3000,
9+
}
710
});

0 commit comments

Comments
 (0)