src | Loading last commit info... | |
static | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
README.md | ||
build.sh | ||
jsconfig.json | ||
package-lock.json | ||
package.json | ||
svelte.config.js | ||
vite.config.js |
notillegal.link
A dumb little site that makes links sketchy
Why does this exist?
Well you see, I bought this domain 4 years ago and it's been draining my bank account ever since so I thought I'd finally get around to doing what I've always meant to do on it. I whipped this up in the better part of an hour, so I'd say it turned out half decent.
Code graciously used from these ancient StackOverflow posts:
- https://stackoverflow.com/questions/3840600/javascript-regular-expression-remove-first-and-last-slash
- https://stackoverflow.com/questions/5717093/check-if-a-javascript-string-is-a-url
The random slug generator is just drawing from the onelistforall micro wordlist here:
Usage
There's a build.sh
that automatically stashes then clears the stash of the current directory,
syncs the repo using the Github CLI, before finally installing deps and building the SvelteKit app.
This is mostly a script for personal use to quickly updated the hosted version after committing a
change to the repo.
The original SvelteKit readme explains how to actually get started with Sveltekit so here's that:
Developing
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.