Skip to content

Commit

Permalink
Merge pull request #9 from deeheber/dh/dependencies
Browse files Browse the repository at this point in the history
Tooling updates
  • Loading branch information
deeheber authored Sep 19, 2024
2 parents 9c3e02c + b733471 commit 7daaf2a
Show file tree
Hide file tree
Showing 67 changed files with 3,985 additions and 6,044 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.husky
.vscode
node_modules
public
dist
.yarn
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ module.exports = {
rules: {},
},
],
};
}
28 changes: 28 additions & 0 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR Validation

on:
pull_request:
branches:
- main

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install dependencies
run: npm install

- name: Run format check
run: npm run format:check

- name: Run lint check
run: npm run lint:check
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"arrowParens": "avoid",
"semi": true,
"semi": false,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ All commands are run from the root of the project, from a terminal:
| `npm run format:check` | Check code format with Prettier |
| `npm run format` | Format codes with Prettier |
| `npm run sync` | Generates TypeScript types for all Astro modules. [Learn more](https://docs.astro.build/en/reference/cli-reference/#astro-sync). |
| `npm run cz` | Commit code changes with commitizen |
| `npm run lint` | Lint with ESLint |
| `npm run lint:check` | Check code linting with ESLint |
| `docker compose up -d` | Run on docker, You can access with the same hostname and port informed on `dev` command. |
| `docker compose run app npm install` | You can run any command above into the docker container. |

Expand Down
16 changes: 8 additions & 8 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";
import { defineConfig } from "astro/config"
import tailwind from "@astrojs/tailwind"
import react from "@astrojs/react"
import remarkToc from "remark-toc"
import remarkCollapse from "remark-collapse"
import sitemap from "@astrojs/sitemap"
import { SITE } from "./src/config"

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -37,4 +37,4 @@ export default defineConfig({
},
},
scopedStyleStrategy: "where",
});
})
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
app:
image: node:18
image: node:20
ports:
- 4321:4321
working_dir: /app
Expand Down
Loading

0 comments on commit 7daaf2a

Please sign in to comment.