Coder Social home page Coder Social logo

spa5k / fastify-file-routes Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 2.0 67.97 MB

A Fastify plugin that provides a file system routes, based on the way Next.JS file system routing works, including all possible features.

License: MIT License

Shell 1.66% JavaScript 7.56% TypeScript 90.77%
fastify fastify-plugin filesystem hacktoberfest nextjs routing

fastify-file-routes's Introduction

github contribution grid snake animation

fastify-file-routes's People

Contributors

semantic-release-bot avatar spa5k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastify-file-routes's Issues

Feature Request: Support for generics for types in methods.

Feature description

Support for generics for types in methods.
Something similar to what fastify already has for their method routes.
for instances:

server.get<{
    Querystring: IQuerystring;
    Headers: IHeaders;
    Reply: ReplyBodyType;
  }>(fullpath, async (request, reply) => {
    console.log("name");
    reply.status(200).send({ success: true, message: "hello world" });
  });

This types all of the querystring, headers, and reply using a very nice and simple and neat syntax.

Feature motivation

Typing is quite neat and useful in TS. And this way and syntax is also very nice.
Thanks

TypeError: Unknown file extension ".ts" for /app/src/routes/index.ts

Hi,
I has recently started to receive this error: " Unknown file extension ".ts" for /app/src/routes/index.ts"
Appears in a place where fastify-file-routes package tries to import a file const module2 = await import(path5);
path5 = '/app/src/routes/index.ts'
Help please!

Start the app with command tsnd -r tsconfig-paths/register --poll --respawn --inspect=0.0.0.0:9229 src/server.ts
ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.5.2)

image

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm npm-run-all Available

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency npm-run-all with npm-run-all2 5.0.0
  • fix(deps): update dependency picocolors to v1.0.1
  • chore(deps): update dependency esbuild to v0.23.0
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency eslint-plugin-import to v2.29.1
  • chore(deps): update dependency eslint-plugin-promise to v6.6.0
  • chore(deps): update dependency eslint-plugin-sonarjs to v0.25.1
  • chore(deps): update dependency fastify to v3.29.5
  • chore(deps): update dependency node-dev to v7.4.3
  • chore(deps): update dependency node-fetch to v3.3.2
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency start-server-and-test to v1.15.4
  • chore(deps): update dependency ts-node to v10.9.2
  • chore(deps): update dependency tslib to v2.6.3
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update dependency vite to v2.9.18
  • chore(deps): update dependency vitest to v0.34.6
  • chore(deps): update pnpm to v6.35.1
  • chore(deps): update pnpm/action-setup action to v2.4.1
  • chore(deps): update typescript-eslint monorepo to v5.62.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update commitlint monorepo to v19 (major) (@commitlint/cli, @commitlint/config-conventional)
  • chore(deps): update dependency @types/jest to v29
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency c8 to v10
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-galex to v4
  • chore(deps): update dependency eslint-plugin-promise to v7
  • chore(deps): update dependency eslint-plugin-sonarjs to v1
  • chore(deps): update dependency eslint-plugin-unicorn to v55
  • chore(deps): update dependency fastify to v4
  • chore(deps): update dependency fastify-plugin to v4
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency node-dev to v8
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency start-server-and-test to v2
  • chore(deps): update dependency tsup to v8
  • chore(deps): update dependency typescript to v5
  • chore(deps): update dependency ubuntu to v22
  • chore(deps): update dependency vite to v5
  • chore(deps): update dependency vitest to v2
  • chore(deps): update github/codeql-action action to v3
  • chore(deps): update pnpm to v9
  • chore(deps): update pnpm/action-setup action to v4
  • chore(deps): update semantic-release monorepo (major) (@semantic-release/commit-analyzer, @semantic-release/github, @semantic-release/npm, @semantic-release/release-notes-generator, semantic-release)
  • chore(deps): update typescript-eslint monorepo to v8 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v2
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
.github/workflows/diagram.yml
.github/workflows/release.yml
  • actions/checkout v2
  • pnpm/action-setup v2.0.1
  • actions/setup-node v2
  • ubuntu 20.04
.github/workflows/test.yml
  • actions/checkout v2
  • pnpm/action-setup v2.0.1
  • actions/setup-node v2
  • ubuntu 20.04
npm
package.json
  • fastify-plugin 3.0.1
  • picocolors 1.0.0
  • @commitlint/cli 16.2.1
  • @commitlint/config-conventional 16.2.1
  • @semantic-release/changelog 6.0.1
  • @semantic-release/commit-analyzer 9.0.2
  • @semantic-release/git 10.0.1
  • @semantic-release/github 8.0.2
  • @semantic-release/npm 9.0.1
  • @semantic-release/release-notes-generator 10.0.3
  • @spa5k/eslint-config 0.0.2
  • @types/jest 27.4.1
  • @types/node 17.0.21
  • @typescript-eslint/eslint-plugin 5.14.0
  • @typescript-eslint/parser 5.14.0
  • c8 7.11.0
  • commitizen 4.2.4
  • dotenv 16.0.0
  • esbuild 0.14.25
  • eslint 8.10.0
  • eslint-config-galex 3.6.5
  • eslint-import-resolver-node 0.3.6
  • eslint-plugin-import 2.25.4
  • eslint-plugin-inclusive-language 2.2.0
  • eslint-plugin-jest-formatting 3.1.0
  • eslint-plugin-promise 6.0.0
  • eslint-plugin-sonarjs 0.12.0
  • eslint-plugin-unicorn 41.0.0
  • fastify 3.27.4
  • fastify-plugin 3.0.1
  • husky 7.0.4
  • node-dev 7.2.0
  • node-fetch 3.2.2
  • npm-run-all 4.1.5
  • prettier 2.5.1
  • semantic-release 19.0.2
  • start-server-and-test 1.14.0
  • ts-node 10.7.0
  • tslib 2.3.1
  • tsup 5.12.9
  • typescript 4.6.2
  • vite 2.8.6
  • vitest 0.6.0
  • fastify >=3.0.0
  • pnpm 6.31.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.