Skip to content

Commit

Permalink
chore: setup events app (#83)
Browse files Browse the repository at this point in the history
* chore: setup events app

* chore: update readme

* chore: update readme
  • Loading branch information
jasheal authored Jul 3, 2023
1 parent 22518af commit b556305
Show file tree
Hide file tree
Showing 18 changed files with 11,903 additions and 12,647 deletions.
17 changes: 17 additions & 0 deletions apps/events/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
extends: '@mantle/eslint-config-next',
settings: {
next: {
rootDir: ['apps/*/'],
},
},
rules: {
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
},
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
}
37 changes: 37 additions & 0 deletions apps/events/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
4 changes: 4 additions & 0 deletions apps/events/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "../../node_modules/.pnpm/[email protected]/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
3 changes: 3 additions & 0 deletions apps/events/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Events App

Hello world...
10 changes: 10 additions & 0 deletions apps/events/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['@design-system/ui'],
experimental: {
appDir: true,
},
}

module.exports = nextConfig
32 changes: 32 additions & 0 deletions apps/events/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "mantle-events",
"version": "0.0.0",
"private": true,
"scripts": {
"dev:events": "next dev --port 3006",
"build": "next build",
"test": "echo 'Running template tests'",
"start": "next start",
"lint": "eslint src --fix"
},
"dependencies": {
"@mantle/constants": "workspace:*",
"@mantle/ui": "workspace:*",
"next": "13.4.7",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@mantle/eslint-config-next": "workspace:*",
"@mantle/tailwind-config": "workspace:*",
"@mantle/tsconfig": "workspace:*",
"@types/node": "18.11.3",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"autoprefixer": "^10.4.12",
"eslint": "^8.30.0",
"postcss": "^8.4.18",
"tailwindcss": "^3.2.1",
"typescript": "4.9.4"
}
}
6 changes: 6 additions & 0 deletions apps/events/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added apps/events/public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions apps/events/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions apps/events/src/app/head.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function Head() {
return (
<>
<title>BitDAO OS App Template</title>
<link rel="icon" href="/favicon.ico" />
</>
)
}
13 changes: 13 additions & 0 deletions apps/events/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import './styles/globals.css'

export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}
9 changes: 9 additions & 0 deletions apps/events/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Typography } from '@mantle/ui'

/**
*
* @todo Updated with real components and content when ready
*/
export default function Page() {
return <Typography>Mantle Template</Typography>
}
5 changes: 5 additions & 0 deletions apps/events/src/app/styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/** The less we use this global style the better! */
13 changes: 13 additions & 0 deletions apps/events/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
// ...
presets: [require('@mantle/tailwind-config')],

// Project-specific customizations
theme: {
//...
},
}

// const config = require('@mantle/tailwind-config')

// module.exports = config
16 changes: 16 additions & 0 deletions apps/events/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "@mantle/tsconfig/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@components/*": ["components/*"]
},
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dev:converter": "turbo run dev:converter",
"dev:cms": "turbo run dev:cms",
"dev:nft": "turbo run dev:nft",
"dev:events": "turbo run dev:events",
"dev:template": "turbo run dev:template",
"test": "turbo run test",
"lint": "turbo run lint",
Expand Down
Loading

4 comments on commit b556305

@vercel
Copy link

@vercel vercel bot commented on b556305 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mantle-nft – ./apps/nft

mantle-nft.vercel.app
mantle-nft-mantle-xyz.vercel.app
mantle-nft-git-main-mantle-xyz.vercel.app
journey.mantle.xyz

@vercel
Copy link

@vercel vercel bot commented on b556305 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mantle-converter – ./apps/converter

mantle-converter-git-main-mantle-xyz.vercel.app
mantle-converter-mantle-xyz.vercel.app
mantle-converter.vercel.app

@vercel
Copy link

@vercel vercel bot commented on b556305 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on b556305 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.