A starter template for Progressive Web App with Svelte + TypeScript + SugarSS
$ tree src
src
├── App.svelte
├── assets
│ ├── android-chrome-192x192.png
│ ├── android-chrome-512x512.png
│ ├── apple-touch-icon.png
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon.ico
│ ├── maskable_icon.png
│ ├── maskable_icon_x128.png
│ ├── maskable_icon_x192.png
│ ├── maskable_icon_x384.png
│ ├── maskable_icon_x48.png
│ ├── maskable_icon_x512.png
│ ├── maskable_icon_x72.png
│ ├── maskable_icon_x96.png
│ ├── safari-pinned-tab.svg
│ └── svelte-typescript-sugarss.svg
├── components
│ ├── Counter.svelte
│ └── Counter.test.ts
├── index.html
├── main.ts
├── routes
│ ├── Home.svelte
│ └── NotFound.svelte
├── site.webmanifest
└── sw.ts
3 directories, 25 files
Requires:
tmux
(used by npm run dev
)npx degit sakkke/svelte-ultimate-template [project-name]
cd [project-name]
npm i
npm run dev
npm run dev
<C-b>:killw<CR>
npm run dev
npm run test:watch
npm run lint:watch
npm run lint:style:watch
./LICENSE
name
, description
, author
in ./package.json
./src/index.html
./src/assets
and ./public
./src/site.webmanifest
./README.md
Default assets created with:
.github/workflows/main.yml
on: push
jobs:
+ deploy:
+ needs: test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '16'
+ cache: npm
+ - run: npm ci
+ - run: npm run build
+ - uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public
+
test:
...
Unlicense