chore: flesh out development setup

This commit is contained in:
Harsh Shandilya 2022-11-16 00:38:58 +05:30
parent 6f34566e1b
commit e8f357a125
4 changed files with 15 additions and 3 deletions

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"deno.enable": true,
"deno.unstable": true,
"deno.lint": false
}

View File

@ -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) {

View File

@ -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 <me@msfjarvis.dev>",
"license": "MIT OR Apache-2.0",
"dependencies": {}
"dependencies": {},
"devDependencies": {
"netlify-cli": "^12.2.0",
"prettier": "^2.7.1"
}
}

View File

@ -2,10 +2,12 @@
pkgs.mkShell {
buildInputs = with pkgs; [
deno
git
go
hugo
imagemagick
nodejs-16_x
yarn
];
}