Skip to content

Commit

Permalink
refactor(tools): replace deno with node
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xD committed Jul 28, 2023
1 parent 03343d0 commit 8006e80
Show file tree
Hide file tree
Showing 9 changed files with 2,067 additions and 1,285 deletions.
1 change: 1 addition & 0 deletions tools/android/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.env
3 changes: 0 additions & 3 deletions tools/android/.vscode/settings.json

This file was deleted.

6 changes: 4 additions & 2 deletions tools/android/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Android tools for push notifications

## Setup
- [Install deno](https://deno.land/[email protected]/getting_started/installation)
- Install Node
- Install pnpm: `npm install --global pnpm`
- Install dependencies: `pnpm install`

## Usage
- Create a env file: `cp example.env .env`
- Update `.env` file with your credentials. This file is git ignored won't be committed to the repo.
- Run script: run `deno task start`
- Run script: run `pnpm start`
11 changes: 0 additions & 11 deletions tools/android/deno.jsonc

This file was deleted.

1,262 changes: 0 additions & 1,262 deletions tools/android/deno.lock

This file was deleted.

22 changes: 22 additions & 0 deletions tools/android/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "push-tool-android",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "tsx send_android.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^16.3.1",
"firebase-admin": "^11.10.1",
"tsx": "^3.12.7",
"zod": "^3.21.4"
},
"devDependencies": {
"@types/node": "^20.4.5",
"typescript": "^5.1.6"
}
}
Loading

0 comments on commit 8006e80

Please sign in to comment.