Skip to content

WIP #81

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

WIP #81

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
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,29 @@ jobs:
steps:
- checkout
- run: npx prettier . --check
# Install dependencies
- run: npm ci
# TODO : do we need caching for dependencies?
# Build the application
- run: npm run build
# TODO: check that style.css matches compiled tailwind
# Store the build artifacts to be used in the deploy job
- persist_to_workspace:
root: .
paths:
- dist
- scripts

deploy:
docker:
# specify the version you desire here
- image: cimg/node:20.8.1
working_directory: ~/repo
steps:
- checkout
# Attach the workspace with the build artifacts
- attach_workspace:
at: .
# Deploy using the script
- run: ./scripts/deploy.sh

workflows:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
Expand Down
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

[![Ceasefire Now](https://badge.techforpalestine.org/ceasefire-now)](https://techforpalestine.org/learn-more)

## Get started

- `npm i` to install dependencies
- `npm run dev` to build and watch the CSS

## Formatting

To format, use VSCode Prettier extension, or run:
Expand All @@ -13,7 +18,7 @@ To check it: `npx prettier --check .`

Formatting in checked in CI

## Start the Tailwind CLI build process

To build and watch the CSS, use the following command:
`npm run dev`
## TODOs
- [ ] is there a better way than `~/assets/...` to reference things?
`~/assets/..`
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
},
);
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Caveat:[email protected]&family=Fira+Code:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="/favicon.ico" />
<title>Darklang</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading