Skip to content

Commit

Permalink
Merge branch 'main' of github.com:thesis/acre into init-dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 13, 2023
2 parents df42fc4 + a8fd958 commit f52c2d2
Show file tree
Hide file tree
Showing 15 changed files with 10,271 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"eslint.workingDirectories": [
"./core/",
],
"eslint.workingDirectories": [{ "mode": "auto" }]
}
3 changes: 3 additions & 0 deletions website/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cache/
public
src/gatsby-types.d.ts
4 changes: 4 additions & 0 deletions website/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": ["@thesis-co"]
}
4 changes: 4 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.cache/
public
src/gatsby-types.d.ts
1 change: 1 addition & 0 deletions website/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/iron
3 changes: 3 additions & 0 deletions website/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cache/
public
src/gatsby-types.d.ts
3 changes: 3 additions & 0 deletions website/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require("@thesis-co/prettier-config"),
}
1 change: 1 addition & 0 deletions website/.tsconfig-eslint.json
10 changes: 10 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Acre website

## Installation

1. Install dependencies and start the app.
```bash
yarn install
yarn start
```
2. Open [http://localhost:8000](http://localhost:8000) to view it in the browser.
13 changes: 13 additions & 0 deletions website/gatsby-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { GatsbyConfig } from "gatsby"

const config: GatsbyConfig = {
siteMetadata: {
// TODO: Update the needed data when the final domain name will be ready.
siteUrl: "https://www.yourdomain.tld",
title: "Acre",
},
graphqlTypegen: true,
plugins: [],
}

export default config
40 changes: 40 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "website",
"version": "1.0.0",
"private": true,
"description": "Acre website",
"keywords": [
"gatsby"
],
"prettier": "@thesis/prettier-config",
"scripts": {
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean",
"typecheck": "tsc --noEmit",
"format": "npm run lint:js && npm run lint:config",
"format:fix": "npm run lint:js:fix && npm run lint:config:fix",
"lint:js": "eslint .",
"lint:js:fix": "eslint . --fix",
"lint:config": "prettier -c '**/*.@(json|yaml|toml)'",
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'"
},
"dependencies": {
"gatsby": "^5.12.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@thesis-co/eslint-config": "^0.6.1",
"@thesis/prettier-config": "github:thesis/prettier-config",
"@types/node": "^20.3.3",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"eslint": "^8.53.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
}
}
11 changes: 11 additions & 0 deletions website/src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as React from "react"

function NotFoundPage() {
return (
<main>
<h1>Page not found</h1>
</main>
)
}

export default NotFoundPage
11 changes: 11 additions & 0 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as React from "react"

function IndexPage() {
return (
<main>
<h1>Landing page</h1>
</main>
)
}

export default IndexPage
19 changes: 19 additions & 0 deletions website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "esnext"],
"jsx": "react",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": [
"./src/**/*",
"./gatsby-node.ts",
"./gatsby-config.ts",
"./plugins/**/*"
]
}
Loading

0 comments on commit f52c2d2

Please sign in to comment.