mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
fix all linting issues, upgrade most packages
This commit is contained in:
parent
c7774ddca3
commit
3c3af304f7
45 changed files with 1148 additions and 1848 deletions
|
@ -1,15 +1,13 @@
|
|||
module.exports = {
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
name: 'api',
|
||||
rootDir: '../../',
|
||||
testEnvironment: 'miniflare',
|
||||
testEnvironmentOptions: {
|
||||
wranglerConfigPath: 'packages/api/wrangler.toml',
|
||||
envPath: '.env',
|
||||
envPath: '../../.env',
|
||||
},
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/packages/api/tsconfig.test.json',
|
||||
tsconfig: '<rootDir>/tsconfig.test.json',
|
||||
useESM: true,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -6,18 +6,16 @@
|
|||
"scripts": {
|
||||
"build": "yarn build:dev --minify",
|
||||
"build:dev": "esbuild --bundle --sourcemap --platform=node --format=esm --outdir=dist --out-extension:.js=.mjs ./src/index.ts",
|
||||
"dev": "miniflare --watch --debug",
|
||||
"lint:types": "tsc --noEmit"
|
||||
"lint:types": "tsc --noEmit",
|
||||
"start": "miniflare --watch --debug",
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^3.3.1",
|
||||
"@roleypoly/misc-utils": "*",
|
||||
"@roleypoly/types": "*",
|
||||
"@roleypoly/worker-utils": "*",
|
||||
"@types/deep-equal": "^1.0.1",
|
||||
"@types/node": "^13.13.0",
|
||||
"deep-equal": "^2.0.5",
|
||||
"@types/node": "^17.0.13",
|
||||
"esbuild": "^0.14.14",
|
||||
"itty-router": "^2.4.10",
|
||||
"jest-environment-miniflare": "^2.2.0",
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export {};
|
|
@ -1,5 +0,0 @@
|
|||
describe('GET /~template', () => {
|
||||
it('returns Not Implemented when called', () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import { Context, RoleypolyHandler } from '@roleypoly/api/src/utils/context';
|
||||
import { notImplemented } from '@roleypoly/api/src/utils/response';
|
||||
|
||||
export const template: RoleypolyHandler = async (request: Request, context: Context) => {
|
||||
return notImplemented();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue