Skip to content

Commit bdae899

Browse files
Initial commit
0 parents  commit bdae899

13 files changed

+819
-0
lines changed

Diff for: .github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily

Diff for: .github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on: push
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- uses: actions/[email protected]
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '14'
13+
- uses: actions/cache@v2
14+
with:
15+
path: ~/.pnpm-store
16+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/package.json') }}
17+
restore-keys: |
18+
${{ runner.os }}-pnpm-
19+
- uses: pnpm/[email protected]
20+
with:
21+
version: 6.9.1
22+
- run: pnpm install --frozen-lockfile
23+
- run: pnpm fmt:check
24+
- run: pnpm build

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
node_modules
3+
tmp
4+
*.log
5+
.DS_Store

Diff for: .node-dev.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extensions": {
3+
"ts": "esbuild-register"
4+
}
5+
}

Diff for: .prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
pnpm-lock.yaml

Diff for: .prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
printWidth: 120,
3+
semi: false,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
bracketSpacing: false,
7+
plugins: [require('prettier-plugin-organize-imports'), require('prettier-plugin-pkg')],
8+
}

Diff for: .vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode"]
3+
}

Diff for: .vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"prettier.prettierPath": "node_modules/prettier/index.js",
3+
"typescript.tsdk": "node_modules/typescript/lib",
4+
"typescript.enablePromptUseWorkspaceTsdk": true
5+
}

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ⚡ zap

Diff for: package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"build": "tsc",
5+
"clean": "rm -rf dist",
6+
"dev": "node-dev --no-notify src/index.ts",
7+
"fmt": "prettier --write .",
8+
"fmt:check": "prettier --check .",
9+
"start": "node --enable-source-maps dist/index.js",
10+
"type-check": "tsc --noEmit"
11+
},
12+
"dependencies": {
13+
"content-type": "^1.0.4",
14+
"path-to-regexp": "^6.2.0",
15+
"raw-body": "^2.4.1"
16+
},
17+
"devDependencies": {
18+
"@tsconfig/node14": "^1.0.1",
19+
"@types/content-type": "^1.1.3",
20+
"@types/node": "^14.17.0",
21+
"esbuild-register": "^2.6.0",
22+
"node-dev": "^7.0.0",
23+
"prettier": "^2.3.1",
24+
"prettier-plugin-organize-imports": "^2.2.0",
25+
"prettier-plugin-pkg": "^0.9.0",
26+
"ts-node": "^10.0.0",
27+
"typescript": "^4.3.4"
28+
}
29+
}

0 commit comments

Comments
 (0)