Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 13, 2023
1 parent c407936 commit fc2bf81
Show file tree
Hide file tree
Showing 20 changed files with 433 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase
30 changes: 30 additions & 0 deletions website/.github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Dependabot

concurrency:
group: dependabot-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
approve-and-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
89 changes: 89 additions & 0 deletions website/.github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Node

concurrency:
group: node-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:

jobs:
node:
runs-on: ubuntu-latest

env:
ADBLOCK: true
TELEMETRY_DISABLED: 1
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GATSBY_TELEMETRY_OPTOUT: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1

strategy:
matrix:
node-version: [16, 18, 19]

steps:
- uses: actions/checkout@v3.5.3
- uses: pnpm/action-setup@v2.4.0
with:
version: 8.6.6
run_install: |
- recursive: true
args: [
--child-concurrency=9999,
--link-workspace-packages=true,
--lockfile-only,
--network-concurrency=9999,
--prefer-frozen-lockfile=false,
--shamefully-hoist=false,
--shared-workspace-lockfile=true,
--strict-peer-dependencies=false,
--unsafe-perm=true
]
- uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml
- run: pnpm install
working-directory: .

- run: pnpm run build
working-directory: .

- uses: actions/upload-artifact@v3.1.2
with:
name: .-node-${{ matrix.node-version }}-Target
path: ./Target
19 changes: 19 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# dependencies
package-lock.json
node_modules/
.snowpack/

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

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

Target/
.astro
5 changes: 5 additions & 0 deletions website/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
.turbo/
Source/
public/
CONTRIBUTING.md
3 changes: 3 additions & 0 deletions website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

- Initial version
2 changes: 2 additions & 0 deletions website/Public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
10 changes: 10 additions & 0 deletions website/Public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"background_color": "// TODO Set the background color of the app",
"categories": [],
"display": "minimal-ui",
"name": "// TODO Use the same title as in template.html",
"orientation": "landscape",
"short_name": "// TODO Title but lowercase",
"start_url": "/",
"theme_color": "// TODO Use the same theme color from template.html"
}
5 changes: 5 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# [astro-starter-template] 📄

Starter template for AstroJS.

[astro-starter-template]: https://npmjs.org/astro-starter-template
56 changes: 56 additions & 0 deletions website/Source/Layout/Base.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
import "@Style/Base.css";
// TODO Place your title and description here
const { title = "", description = "" } = Astro.props;
---

<!DOCTYPE html>
<html lang="en" class="no-js" dir="ltr">
<head>
<script>
document.documentElement.classList.remove("no-js");
document.documentElement.classList.add("js");
</script>

<!-- Meta -->
<title>{title}</title>
<meta charset="utf-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!-- TODO Define your color theme in hex here -->
<meta name="theme-color" content="" />
<meta name="format-detection" content="telephone=no" />
<meta name="twitter:dnt" content="on" />

<!-- Links -->
<link
rel="preconnect"
href="https://fonts.googleapis.com"
crossorigin
/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="manifest"
href="/site.webmanifest"
crossorigin="use-credentials"
/>

<style is:global>
@import "@Style/Global.css";
</style>

<!-- Favicon -->
</head>
<body>
<!-- TODO Generate the ID here -->
<div id="">
<div class="grow">
<slot />
</div>
<script>
import "@Script/FIREBASE";
</script>
</div>
</body>
</html>
10 changes: 10 additions & 0 deletions website/Source/Library/Environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as dotenv from "dotenv";
import { z } from "zod";

dotenv.config();

export default z
.object({
GH_AUTH_TOKEN: z.string().default(""),
})
.parse(process.env);
12 changes: 12 additions & 0 deletions website/Source/Script/FIREBASE.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { initializeApp as Initialize } from "firebase/app";

Initialize({
apiKey: "", // TODO Replace with your API key
appId: "", // TODO Replace with your app ID
authDomain: "", // TODO Replace with your auth domain
databaseURL: "", // TODO Replace with your database URL
measurementId: "", // TODO Replace with your measurement ID
messagingSenderId: "", // TODO Replace with your messaging sender ID
projectId: "", // TODO Replace with your project ID
storageBucket: "", // TODO Replace with your storage bucket
});
4 changes: 4 additions & 0 deletions website/Source/Style/Base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
24 changes: 24 additions & 0 deletions website/Source/Style/Global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
html {
-webkit-tap-highlight-color: transparent;
}

html,
body {
height: 100%;
}

body {
@apply flex
flex-grow
flex-col
antialiased
dark:bg-black
dark:text-white
sm:subpixel-antialiased;
}

img {
@apply inline-block
select-none
outline-none;
}
5 changes: 5 additions & 0 deletions website/Source/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
import Base from "@Layout/Base.astro";
---

<Base />
33 changes: 33 additions & 0 deletions website/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import PreFetch from "@astrojs/prefetch";
import SiteMap from "@astrojs/sitemap";
import Compress from "astro-compress";
import Critters from "astro-critters";
import ROME from "astro-rome";
import { defineConfig } from "astro/config";
import Worker from "astrojs-service-worker";

export default defineConfig({
srcDir: "./Source",
publicDir: "./Public",
outDir: "./Target",
// TODO Place your site URL here
// site: "",
experimental: {
assets: true,
viewTransitions: true,
},
compressHTML: true,
integrations: [
import.meta.env.MODE === "production" ? Worker() : null,
SiteMap(),
Critters({ Logger: 1 }),
PreFetch(),
ROME({ Logger: 1 }),
Compress({ Logger: 1 }),
],
vite: {
build: {
sourcemap: true,
},
},
});
50 changes: 50 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "astro-starter-template",
"version": "2.0.0",
"private": false,
"description": "📄 Starter template for AstroJS.",
"keywords": [
"astro",
"starter"
],
"homepage": "https://github.com/Lightrix/astro-starter-template#readme",
"bugs": {
"url": "https://github.com/Lightrix/astro-starter-template/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Lightrix/astro-starter-template.git"
},
"scripts": {
"build": "astro check && astro build",
"start": "astro dev"
},
"devDependencies": {
"@astrojs/prefetch": "0.3.0",
"@astrojs/sitemap": "2.0.1",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.4",
"@tailwindcss/typography": "0.5.9",
"astro": "2.10.5",
"astro-compress": "2.0.5",
"astro-critters": "2.0.4",
"astro-rome": "2.0.1",
"astrojs-service-worker": "1.0.0",
"autoprefixer": "10.4.14",
"cssnano": "6.0.1",
"cssnano-preset-advanced": "6.0.1",
"dotenv": "16.3.1",
"firebase": "10.1.0",
"postcss": "8.4.27",
"postcss-combine-duplicated-selectors": "10.0.3",
"postcss-combine-media-query": "1.0.1",
"postcss-import": "15.1.0",
"postcss-reporter": "7.0.5",
"postcss-url": "10.1.3",
"tailwindcss": "3.3.3",
"zod": "3.21.4"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit fc2bf81

Please sign in to comment.