Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci sonarqube #21

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .syncpackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semverGroups": [
{
"range": ""
}
],
"versionGroups": [
{
"dependencies": ["@gg-monorepo"],
"isIgnored": true
}
]
}
24 changes: 14 additions & 10 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{
"name": "dashboard",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"name": "@gg-monorepo/dashboard",
"version": "0.0.1",
"dependencies": {
"solid-js": "1.8.7"
},
"devDependencies": {
"typescript": "5.3.3",
"vite": "5.0.10",
"vite-plugin-solid": "2.8.0"
}
},
"private": true,
"scripts": {
"build": "tsc && vite build",
"dev": "vite",
"format:check": "biome format ./src",
"format:write": "biome format --write ./src",
"lint": "biome lint ./src",
"lint:fix": "biome check --apply ./src",
"preview": "vite preview"
},
"type": "module"
}
13 changes: 13 additions & 0 deletions apps/dashboard/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=nigelbreslaw_guardian-ghost_dashboard
sonar.organization=nigelbreslaw

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=nigelbreslaw_guardian-ghost_dashboard
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
53 changes: 25 additions & 28 deletions apps/dashboard/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
import { createSignal } from 'solid-js'
import solidLogo from './assets/solid.svg'
import viteLogo from '/vite.svg'
import './App.css'
import { createSignal } from "solid-js";
import viteLogo from "/vite.svg";
import "./App.css";
import solidLogo from "./assets/solid.svg";

function App() {
const [count, setCount] = createSignal(0)
const [count, setCount] = createSignal(0);

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} class="logo" alt="Vite logo" />
</a>
<a href="https://solidjs.com" target="_blank">
<img src={solidLogo} class="logo solid" alt="Solid logo" />
</a>
</div>
<h1>Placeholder for dashboard!</h1>
<div class="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count()}
</button>
<p>
Developer stats coming soon.
</p>
</div>

</>
)
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src={viteLogo} class="logo" alt="Vite logo" />
</a>
<a href="https://solidjs.com" target="_blank" rel="noreferrer">
<img src={solidLogo} class="logo solid" alt="Solid logo" />
</a>
</div>
<h1>Placeholder for dashboard!</h1>
<div class="card">
<button type="button" onClick={() => setCount((count) => count + 1)}>
count is {count()}
</button>
<p>Developer stats coming soon.</p>
</div>
</>
);
}

export default App
export default App;
10 changes: 5 additions & 5 deletions apps/dashboard/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* @refresh reload */
import { render } from 'solid-js/web'
import { render } from "solid-js/web";

import './index.css'
import App from './App'
import App from "./App";
import "./index.css";

const root = document.getElementById('root')
const root = document.getElementById("root");

render(() => <App />, root!)
render(() => <App />, root!);
31 changes: 16 additions & 15 deletions apps/react-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{
"name": "@gg-monorepo/react-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"analyze": "source-map-explorer dist/**/*.js",
"build": "vite build",
"dev": "vite",
"dev:bun": "bunx --bun vite",
"format:check": "biome format ./src",
"format:write": "biome format --write ./src",
"lint": "biome lint ./src",
"preview": "vite preview",
"typecheck": "tsc"
},
"version": "0.0.1",
"dependencies": {
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -26,5 +13,19 @@
"typescript": "5.3.3",
"vite": "5.0.10",
"vite-plugin-mkcert": "1.17.1"
}
},
"private": true,
"scripts": {
"analyze": "source-map-explorer dist/**/*.js",
"build": "vite build",
"dev": "vite",
"dev:bun": "bunx --bun vite",
"format:check": "biome format ./src",
"format:write": "biome format --write ./src",
"lint": "biome lint ./src",
"lint:fix": "biome check --apply ./src",
"preview": "vite preview",
"typecheck": "tsc"
},
"type": "module"
}
13 changes: 13 additions & 0 deletions apps/react-frontend/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=nigelbreslaw_guardian-ghost_react-frontend
sonar.organization=nigelbreslaw

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=nigelbreslaw_guardian-ghost_react-frontend
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"organizeImports": {
"enabled": true
},
"formatter": {
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
Expand Down
24 changes: 14 additions & 10 deletions docs/starlight/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"name": "@gg-monorepo/starlight",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "0.15.1",
"astro": "4.0.7",
Expand All @@ -17,5 +9,17 @@
"devDependencies": {
"@astrojs/check": "0.3.4",
"typescript": "5.3.3"
}
}
},
"scripts": {
"astro": "astro",
"build": "astro check && astro build",
"dev": "astro dev",
"format:check": "biome format ./src",
"format:write": "biome format --write ./src",
"lint": "biome lint ./src",
"lint:fix": "biome check --apply ./src",
"preview": "astro preview",
"start": "astro dev"
},
"type": "module"
}
13 changes: 13 additions & 0 deletions docs/starlight/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=nigelbreslaw_guardian-ghost_starlight
sonar.organization=nigelbreslaw

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=nigelbreslaw_guardian-ghost_starlight
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
6 changes: 3 additions & 3 deletions docs/starlight/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineCollection } from 'astro:content';
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
import { defineCollection } from "astro:content";

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
};
27 changes: 16 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{
"name": "@GG-monorepo",
"private": true,
"name": "@gg-monorepo",
"version": "0.0.0",
"type": "module",
"devDependencies": {
"@biomejs/biome": "1.4.1",
"@vitest/coverage-v8": "^1.1.0",
"syncpack": "12.0.1",
"vitest": "^1.1.0"
},
"private": true,
"scripts": {
"build": "pnpm --stream -r build",
"lint": "pnpm -r lint",
"format:check": "pnpm -r format:check",
"format:write": "pnpm -r format:write"
},
"dependencies": {
},
"devDependencies": {
"@biomejs/biome": "1.4.1"
"coverage": "vitest run --coverage",
"format:check": "pnpm --stream -r format:check",
"format:write": "pnpm -r format:write",
"lint": "pnpm --stream -r lint",
"lint:fix": "pnpm -r lint:fix",
"syncpack": "syncpack format && syncpack set-semver-ranges && syncpack list-mismatches",
"test": "vitest"
},
"type": "module",
"workspaces": [
"apps/*",
"docs/*"
Expand Down
Loading