Skip to content

Commit 96ce25f

Browse files
Merge pull request #22 from sebastianjnuwu/dev
feat(style): add UI styles
2 parents 31fd2cc + 21e16e7 commit 96ce25f

20 files changed

+399
-421
lines changed

.babelrc

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"presets": [
3-
[
4-
"@babel/preset-env",
5-
{
6-
"useBuiltIns": "usage",
7-
"corejs": 3,
8-
"targets": "> 0.25%, not dead"
9-
}
10-
]
11-
],
12-
"plugins": [
13-
"@babel/plugin-transform-runtime",
14-
"@babel/plugin-syntax-dynamic-import",
15-
["babel-plugin-transform-remove-console", { "exclude": ["error", "warn"] }]
16-
]
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"useBuiltIns": "usage",
7+
"corejs": 3,
8+
"targets": "> 0.25%, not dead"
9+
}
10+
]
11+
],
12+
"plugins": [
13+
"@babel/plugin-transform-runtime",
14+
"@babel/plugin-syntax-dynamic-import",
15+
["babel-plugin-transform-remove-console", { "exclude": ["error", "warn"] }]
16+
]
1717
}

.github/renovate.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base"],
4-
"assignees": ["sebastianjnuwu"],
5-
"schedule": ["on the last day of the month"],
6-
"dependencyDashboard": false,
7-
"fetchReleaseNotes": true,
8-
"packageRules": [
9-
{
10-
"matchPackagePatterns": ["*"],
11-
"labels": ["dependencies"],
12-
"automerge": true
13-
}
14-
]
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base"],
4+
"assignees": ["sebastianjnuwu"],
5+
"schedule": ["on the last day of the month"],
6+
"dependencyDashboard": false,
7+
"fetchReleaseNotes": true,
8+
"packageRules": [
9+
{
10+
"matchPackagePatterns": ["*"],
11+
"labels": ["dependencies"],
12+
"automerge": true
13+
}
14+
]
1515
}

.vscode/extensions.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"recommendations": [
3-
"bracketpaircolordlw.bracket-pair-color-dlw",
4-
"dracula-theme.theme-dracula",
5-
"editorconfig.editorconfig",
6-
"dbaeumer.vscode-eslint",
7-
"github.vscode-github-actions",
8-
"pkief.material-icon-theme",
9-
"biomejs.biome"
10-
]
2+
"recommendations": [
3+
"bracketpaircolordlw.bracket-pair-color-dlw",
4+
"dracula-theme.theme-dracula",
5+
"editorconfig.editorconfig",
6+
"dbaeumer.vscode-eslint",
7+
"github.vscode-github-actions",
8+
"pkief.material-icon-theme",
9+
"biomejs.biome"
10+
]
1111
}

.vscode/settings.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"editor.tabSize": 4,
3-
"files.exclude": {
4-
"**/.git": true,
5-
"**/.svn": true,
6-
"**/.hg": true,
7-
"**/CVS": true,
8-
"**/.DS_Store": true,
9-
"**/Thumbs.db": true
10-
},
11-
"java.configuration.updateBuildConfiguration": "disabled"
2+
"editor.tabSize": 4,
3+
"files.exclude": {
4+
"**/.git": true,
5+
"**/.svn": true,
6+
"**/.hg": true,
7+
"**/CVS": true,
8+
"**/.DS_Store": true,
9+
"**/Thumbs.db": true
10+
},
11+
"java.configuration.updateBuildConfiguration": "disabled"
1212
}

.vscode/workspace.code-workspace

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"folders": [],
3-
"settings": {}
2+
"folders": [],
3+
"settings": {}
44
}

biome.json

+19-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
6-
"linter": {
7-
"enabled": true,
8-
"rules": {
9-
"recommended": false,
10-
"complexity": {
11-
"noStaticOnlyClass": "error",
12-
"noUselessSwitchCase": "error",
13-
"useFlatMap": "error"
14-
},
15-
"style": {
16-
"noNegationElse": "off",
17-
"useForOf": "error",
18-
"useNodejsImportProtocol": "error",
19-
"useNumberNamespace": "error"
20-
},
21-
"suspicious": {
22-
"noDoubleEquals": "error",
23-
"noThenProperty": "error",
24-
"useIsArray": "error"
25-
}
26-
}
27-
},
28-
"files": {
29-
"ignore": ["node_modules", "build", "android"]
30-
}
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"indentStyle": "space",
6+
"indentWidth": 2,
7+
"lineWidth": 80
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"rules": {
12+
"recommended": true
13+
}
14+
},
15+
"organizeImports": {
16+
"enabled": true
17+
},
18+
"files": {
19+
"ignore": ["node_modules", "build", "dist", "android", "ios", "*.log"]
20+
}
3121
}

capacitor.config.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { CapacitorConfig } from "@capacitor/cli";
1+
import type { CapacitorConfig } from "@capacitor/cli";
22

33
// https://capacitorjs.com/docs/config
44
const config: CapacitorConfig = {
5-
appId: "uwu.cookie.app",
6-
appName: "Cookie",
7-
webDir: "build",
8-
plugins: {
9-
AdMob: {
10-
androidAppId: "ca-app-pub-6690516270288705~6535066913",
11-
maxAdContentRating: "G",
12-
tagForChildDirectedTreatment: false,
13-
tagForUnderAgeOfConsent: false,
14-
},
15-
},
5+
appId: "uwu.cookie.app",
6+
appName: "Cookie",
7+
webDir: "build",
8+
plugins: {
9+
AdMob: {
10+
androidAppId: "ca-app-pub-6690516270288705~6535066913",
11+
maxAdContentRating: "G",
12+
tagForChildDirectedTreatment: false,
13+
tagForUnderAgeOfConsent: false,
14+
},
15+
},
1616
};
1717

1818
export default config;

package.json

+53-50
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,55 @@
11
{
2-
"name": "cookie-app",
3-
"private": true,
4-
"version": "1.0.0",
5-
"type": "module",
6-
"description": "Cookie...",
7-
"author": "Sebastian Jn <[email protected]>",
8-
"scripts": {
9-
"test": "echo \"Test: yes that was a test!\" && exit 1",
10-
"start": "vite",
11-
"build": "vite build",
12-
"lint": "npx @biomejs/biome lint --write",
13-
"format": "npx @biomejs/biome format --write",
14-
"preview": "vite preview",
15-
"copy": "npx cap copy",
16-
"update": "npx cap update",
17-
"sync": "npx cap sync",
18-
"prepare": "husky",
19-
"pre-commit": "cz"
20-
},
21-
"hooks": {
22-
"prepare-commit-msg": "npx --no -- commitlint --edit $1; exec < /dev/tty && npx cz --hook || true"
23-
},
24-
"dependencies": {
25-
"@capacitor-community/admob": "^6.1.0",
26-
"@capacitor/android": "^6.2.0",
27-
"@capacitor/core": "^6.2.0",
28-
"@capacitor/push-notifications": "^6.0.3",
29-
"@capacitor/splash-screen": "^6.0.3"
30-
},
31-
"devDependencies": {
32-
"@babel/core": "^7.26.0",
33-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
34-
"@babel/plugin-transform-runtime": "^7.25.9",
35-
"@babel/preset-env": "^7.26.0",
36-
"@biomejs/biome": "1.9.4",
37-
"@capacitor/cli": "^6.2.0",
38-
"@commitlint/cli": "^19.6.1",
39-
"@commitlint/config-conventional": "^19.6.0",
40-
"babel-plugin-transform-remove-console": "^6.9.4",
41-
"core-js": "^3.39.0",
42-
"cz-conventional-changelog": "^3.3.0",
43-
"husky": "^9.1.7",
44-
"typescript": "^5.7.2",
45-
"vite": "^5.4.2",
46-
"vite-plugin-babel": "^1.3.0"
47-
},
48-
"engines": {
49-
"npm": ">=8",
50-
"node": ">=18"
51-
}
2+
"name": "cookie-app",
3+
"private": true,
4+
"version": "1.0.0",
5+
"type": "module",
6+
"description": "Cookie...",
7+
"author": "Sebastian Jn <[email protected]>",
8+
"scripts": {
9+
"test": "echo \"Test: yes that was a test!\" && exit 1",
10+
"start": "vite",
11+
"build": "vite build",
12+
"preview": "vite preview",
13+
"lint": "npx @biomejs/biome lint --write",
14+
"format": "npx @biomejs/biome format --write",
15+
"copy": "npx cap copy",
16+
"update": "npx cap update",
17+
"sync": "npx cap sync",
18+
"prepare": "husky",
19+
"pre-commit": "cz"
20+
},
21+
"hooks": {
22+
"prepare-commit-msg": "npx --no -- commitlint --edit $1; exec < /dev/tty && npx cz --hook || true"
23+
},
24+
"dependencies": {
25+
"@capacitor-community/admob": "^6.1.0",
26+
"@capacitor/android": "^6.2.0",
27+
"@capacitor/core": "^6.2.0",
28+
"@capacitor/push-notifications": "^6.0.3",
29+
"@capacitor/splash-screen": "^6.0.3",
30+
"jquery": "^3.7.1"
31+
},
32+
"devDependencies": {
33+
"@babel/core": "^7.26.0",
34+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
35+
"@babel/plugin-transform-runtime": "^7.25.9",
36+
"@babel/preset-env": "^7.26.0",
37+
"@biomejs/biome": "1.9.4",
38+
"@capacitor/cli": "^6.2.0",
39+
"@commitlint/cli": "^19.6.1",
40+
"@commitlint/config-conventional": "^19.6.0",
41+
"@types/jquery": "^3.5.32",
42+
"babel-plugin-transform-remove-console": "^6.9.4",
43+
"core-js": "^3.39.0",
44+
"cz-conventional-changelog": "^3.3.0",
45+
"husky": "^9.1.7",
46+
"sass-embedded": "^1.83.0",
47+
"typescript": "^5.7.2",
48+
"vite": "^5.4.2",
49+
"vite-plugin-babel": "^1.3.0"
50+
},
51+
"engines": {
52+
"npm": ">=8",
53+
"node": ">=18"
54+
}
5255
}

tsconfig.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"compilerOptions": {
3-
"target": "ESNext",
4-
"outDir": "build",
5-
"useDefineForClassFields": true,
6-
"module": "ESNext",
7-
"lib": ["ESNext", "DOM"],
8-
"moduleResolution": "Node",
9-
"strict": true,
10-
"resolveJsonModule": true,
11-
"isolatedModules": true,
12-
"esModuleInterop": true,
13-
"noEmit": true,
14-
"noUnusedLocals": true,
15-
"noUnusedParameters": true,
16-
"noImplicitReturns": true,
17-
"skipLibCheck": true
18-
}
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"outDir": "build",
5+
"useDefineForClassFields": true,
6+
"module": "ESNext",
7+
"lib": ["ESNext", "DOM"],
8+
"moduleResolution": "Node",
9+
"strict": true,
10+
"resolveJsonModule": true,
11+
"isolatedModules": true,
12+
"esModuleInterop": true,
13+
"noEmit": true,
14+
"noUnusedLocals": true,
15+
"noUnusedParameters": true,
16+
"noImplicitReturns": true,
17+
"skipLibCheck": true
18+
}
1919
}

vite.config.ts

+16-13
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ import { defineConfig } from "vite";
22
import babel from "vite-plugin-babel";
33

44
export default defineConfig({
5-
root: "./www",
6-
build: {
7-
outDir: "../build",
8-
minify: false,
9-
emptyOutDir: false,
10-
},
11-
plugins: [
12-
babel({
13-
babelConfig: {
14-
presets: ["@babel/preset-env"],
15-
},
16-
}),
17-
],
5+
root: "./www",
6+
build: {
7+
outDir: "../build",
8+
minify: false,
9+
emptyOutDir: false,
10+
},
11+
plugins: [
12+
babel({
13+
babelConfig: {
14+
presets: ["@babel/preset-env"],
15+
},
16+
}),
17+
],
18+
server: {
19+
port: 8080,
20+
},
1821
});

0 commit comments

Comments
 (0)