diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..be1984c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "deno.enable": true, + "deno.unstable": true, + "deno.lint": false +} diff --git a/netlify/edge-functions/root.ts b/netlify/edge-functions/root.ts index ce9b927..b2d708e 100644 --- a/netlify/edge-functions/root.ts +++ b/netlify/edge-functions/root.ts @@ -8,7 +8,7 @@ const APS_GITHUB_URL = `https://github.com/${APS_SLUG}/${APS_SLUG}`; export default async (request: Request, context: Context) => { const url = new URL(request.url); - const urlParts = url.pathname.split("/").filter(entry => entry != ""); + const urlParts = url.pathname.split("/").filter((entry) => entry != ""); switch (urlParts[0]) { case "g": switch (urlParts.length) { diff --git a/package.json b/package.json index a608d75..80267b3 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,14 @@ "main": "index.js", "scripts": { "build": "hugo", - "dev": "hugo serve" + "dev": "hugo serve", + "format": "prettier --write '**/*.{ts,js,css,json,md}' --ignore-path .gitignore" }, "author": "Harsh Shandilya ", "license": "MIT OR Apache-2.0", - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "netlify-cli": "^12.2.0", + "prettier": "^2.7.1" + } } diff --git a/shell.nix b/shell.nix index b6e4bf7..f194246 100644 --- a/shell.nix +++ b/shell.nix @@ -2,10 +2,12 @@ pkgs.mkShell { buildInputs = with pkgs; [ + deno git go hugo imagemagick nodejs-16_x + yarn ]; }