Skip to content

Commit

Permalink
Update README with testing information
Browse files Browse the repository at this point in the history
  • Loading branch information
bmw2621 committed Jul 28, 2021
1 parent 8e953bf commit 96f557c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.17.3
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Starts the Svelte application in development mode (hot reload watching for file

Builds the app for production, creating a single executable will all assets bundled. It correctly bundles Svelte in production mode and optimizes the build for the best performance.

### `yarn test`

Runs go test and jest. Go test will fail without the `assets.go` file that is run during code generation, so `go generate` runs first. Frontend and backend tests can be run individually with `yarn svelte:test` or yarn `go:test` respectively.

### `node ./scripts/setupTypeScript.js`

Uses the Svelte Template provided script to add typescript to the frontend project
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "svelte-app",
"name": "svelte-lorca-template",
"version": "1.0.0",
"private": true,
"private": false,
"scripts": {
"start": "npm run svelte:build & npm run svelte:start & npm run go:start",
"dev": "npm run svelte:dev & npm run go:start",
"build": "npm run svelte:build && npm run go:generate && npm run go:build",
"test": "npm run go:generate && npm run go:test && npm run svelte:test",
"go:start": "go run serve_debug.go main.go -tags debug",
"go:generate": "go generate",
"go:test": "go generate && go test ./...",
"go:build": "go build",
"svelte:build": "rollup -c",
"svelte:dev": "rollup -c -w",
Expand Down

0 comments on commit 96f557c

Please sign in to comment.