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

Feature/startup #1

Merged
merged 4 commits into from
Jun 23, 2024
Merged
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
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
26 changes: 26 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
root: true,
env: { browser: true, es6: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@stylistic/recommended',
],
rules: {},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', '@stylistic'],
ignorePatterns: [
'dist/',
'node_modules/',
'db/**/*',
'public/**/*',
'**/scripts/**/*',
'test/**/*',
'src/env.d.ts',
],
}
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
pnpm-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
Expand Down Expand Up @@ -78,6 +79,7 @@ web_modules/
.env.test.local
.env.production.local
.env.local
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -88,9 +90,13 @@ web_modules/
out

# Nuxt.js build / generate output
# also covers build output for astro
.nuxt
dist

# generated types from astro
.astro/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
Expand Down Expand Up @@ -122,9 +128,21 @@ dist
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# vscode settings that are local
.vscode/settings.json

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# virtual environment for python
.venv

# macOS specific files
.DS_Store

# jetbrains setting folder
.idea/
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tools]
python = "3.12"
python = {version='3.12', virtualenv='.venv'}
node = "20.3"
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Ignore artifacts
build
coverage
18 changes: 18 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
semi: false,
singleQuote: true,
trailingComma: 'all',
printWidth: 80,
singleAttributePerLine: true,
arrowParens: 'avoid',
plugins: [
'prettier-plugin-astro',
'prettier-plugin-packagejson',
'prettier-plugin-organize-attributes',
'prettier-plugin-sort-imports',
'prettier-plugin-astro-organize-imports',
'prettier-plugin-tailwindcss',
],
attributeGroups: ['$CODE_GUIDE'],
}

4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nodeLinker: node-modules
supportedArchitectures:
os: ['darwin', 'linux']
cpu: ['x64', 'arm64']
libc: ['glibc']
23 changes: 23 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig, squooshImageService } from 'astro/config'
import vercel from '@astrojs/vercel/serverless'
import tailwind from '@astrojs/tailwind'
import sitemap from '@astrojs/sitemap'
import icon from 'astro-icon'

// https://astro.build/config
export default defineConfig({
integrations: [
tailwind(),
sitemap({
changeFreq: 'weekly',
priority: 0.8,
lastmod: new Date(),
}),
icon(),
],
output: 'server',
adapter: vercel(),
image: {
service: squooshImageService(),
},
})
46 changes: 46 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "manageit-kanban",
"type": "module",
"version": "0.0.1",
"scripts": {
"astro": "astro",
"dev": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.7.1",
"@fontsource-variable/inter": "^5.0.18",
"@fontsource/lilita-one": "^5.0.20",
"@fontsource/righteous": "^5.0.20",
"astro": "^4.11.0",
"astro-icon": "^1.1.0",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.2"
},
"packageManager": "[email protected]+sha256.2535167e742927e1d2a1610d5004576e4e8f764d2ca5470d19536790f55cd6e2",
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.5.0",
"@iconify-json/simple-icons": "^1.1.106",
"@iconify-json/solar": "^1.1.9",
"@stylistic/eslint-plugin": "^2.2.2",
"@tailwindcss/forms": "^0.5.7",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.6.0",
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-astro-organize-imports": "^0.4.8",
"prettier-plugin-organize-attributes": "^1.0.0",
"prettier-plugin-packagejson": "^2.5.0",
"prettier-plugin-sort-imports": "^1.8.5",
"prettier-plugin-tailwindcss": "^0.6.5",
"typescript-eslint": "^7.13.1"
}
}
9 changes: 9 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
3 changes: 3 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

---
3 changes: 3 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

---
16 changes: 16 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@tailwind/base;
@tailwind/components;
@tailwind/utilities;

@layer base {
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/inter-var-latin.woff2') format('woff2');
}
}

@layer components {
}
20 changes: 20 additions & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/** @type {import('tailwindcss').Config} */
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'

export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['"Inter var"', 'Inter', ...defaultTheme.fontFamily.sans],
display: [
'"Righteous"',
'"Lilita One"',
...defaultTheme.fontFamily.sans,
],
},
},
},
plugins: [],
}
27 changes: 27 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"jsx": "react-jsx",
"baseUrl": ".",
"allowJs": true,
"rootDir": ".",
"paths": {
"@assets/*": ["src/assets/*"],
"@components/*": ["src/components/*"],
"@endpoints/*": ["src/endpoints/*"],
"@icons/*": ["src/icons/*"],
"@layouts/*": ["src/layouts/*"],
"@pages/*": ["src/pages/*"],
"@scripts/*": ["src/scripts/*"],
"@styles/*": ["src/styles/*"],
"@utils/*": ["src/utils/*"],
}
},
"include": [
"src/**/*",
".eslintrc.cjs",
"astro.config.mjs",
"tailwind.config.mjs"
],
"exclude": ["node_modules", "dist", ".yarn", ".vscode", "public"]
}
Loading