Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat: set up basic nitro
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Dec 2, 2023
1 parent 85aa2ca commit 2f97bad
Show file tree
Hide file tree
Showing 12 changed files with 2,496 additions and 38 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.js]
indent_style = space
indent_size = 2

[{package.json,*.yml,*.cjson}]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
.output
node-modules
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
node_modules
*.log*
.nitro
.cache
.output
.env
dist
4 changes: 3 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
save-exact=true
save-exact=true
shamefully-hoist=true
strict-peer-dependencies=false
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
# activitybridge
The bridge from other systems to activitypub.

## Setup

Make sure to install the dependencies:

```bash
pnpm i
```

## Development Server

Start the development server on <http://localhost:3000>

```bash
pnpm dev
```

## Production

Build the application for production:

```bash
pnpm build
```

Locally preview production build:

```bash
pnpm preview
```

Check out the [deployment documentation](https://nitro.unjs.io/deploy) for more information.
2 changes: 2 additions & 0 deletions nitro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//https://nitro.unjs.io/config
export default defineNitroConfig({});
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
"name": "activitybridge",
"version": "0.0.1",
"description": "",
"main": "index.js",
"private": true,
"author": "sebastian di luzio",
"scripts": {
"lint": "echo \"TODO: add linting\"",
"build": "tsc",
"start": "node dist/index.js"
"prepare": "nitropack prepare",
"dev": "nitropack dev",
"build": "nitropack build",
"preview": "node .output/server/index.mjs"
},
"dependencies": {
"matrix-appservice-bridge": "9.0.1",
"nitropack": "2.8.1"
},
"keywords": [],
"author": "sebastian di luzio",
"devDependencies": {
"@types/node": "20.10.2",
"typescript": "5.3.2"
},
"dependencies": {
"matrix-appservice-bridge": "9.0.1"
}
}
Loading

0 comments on commit 2f97bad

Please sign in to comment.