ghorsington cc53dd75a0 Move async helpers to shared | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
.vscode | %!s(int64=4) %!d(string=hai) anos | |
src | %!s(int64=4) %!d(string=hai) anos | |
static | %!s(int64=4) %!d(string=hai) anos | |
.eslintrc.json | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
Dockerfile | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
package.json | %!s(int64=4) %!d(string=hai) anos | |
rollup.config.js | %!s(int64=4) %!d(string=hai) anos | |
svelte.config.js | %!s(int64=4) %!d(string=hai) anos | |
tailwind.config.js | %!s(int64=4) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=4) %!d(string=hai) anos |
This is an extension to the official Sapper Rollup template with TypeScript preprocessing and a GraphQL server through TypeGraphQL (Apollo Server).
If you're looking for something with much, much more bundled in, check out my opinionated project base.
svelte-preprocess
manifest.json
's most important fields filled outeslint:fix
package scriptChoose either to clone or fork depending on your preference.
git clone https://github.com/babichjacob/sapper-typescript-graphql-template
Click the Use this template
button on this project's GitHub page.
cd sapper-typescript-graphql-template
npm install # pnpm also works
npm run dev
If you do not need to include heavy Babel transforms and polyfills to support old browsers on your site, then remove the --legacy
flag in the build
package script to lighten it up.
npm run prod
If you do not need to include heavy Babel transforms and polyfills to support old browsers on your site, then remove the --legacy
flag in the export
package script to lighten it up.
npm run export
Many of the fields in static/manifest.json
(short_name
, name
, description
, categories
, theme_color
, and background_color
) are filled with demonstrative values that won't match your site. Similarly, you've got to take new screenshots to replace the included static/screenshot-1.png
and static/screenshot-2.png
files. If you want, you can add app shortcut definitions for "add to home screen" on Android. Once you change theme_color
, update the meta name="theme-color"
tag in src/template.html
to match.
The Apple touch icon, favicon, and logo-
files (also all in the static
directory) are created by placing the logo within a "safe area" centered circle that takes up 80% of the canvas's dimension. For instance, the constraining circle in logo-512.png
is 512 × 0.80 = 409.6 ≈ 410 pixels wide and tall.
Create an issue and I'll try to help.
Create an issue or pull request and I'll try to fix.
I'm sorry, because of my skill level and the fragility of (the combination of) some of these tools, there are likely to be problems in this project. Thank you for bringing them to my attention or fixing them for me.
MIT
This README was generated with ❤️ by readme-md-generator