Cloned from sapper template + other fun stuff
docs
branchThe main reason was that I wanted a fast test set up as I considered cypress as a end to end sort of integration testing. You may refer to src/components/Nav.test.ts
for a sample test written to test individual svelte components.
Deployed to Github Pages
Note:
src/server.js
: add base url to polkapackage.json/scripts
: add --basepath <baseURL>
to export.github/workflows/build.yml
: For deploy action, update deploy folder to __sapper__/export/<baseURL>
# Install dependencies
npm install
# Run
npm run dev
# Test
npm t
npm run test
# Watch tests
npm run test:watch
# Integration test with cypress
npm run test:integration
# Validate typescript
npm run validate
# Build files
npm run build