Skip to content

Commit

Permalink
build: update ci-build script so that it includes all available examp…
Browse files Browse the repository at this point in the history
…le packages (#509)

Fixes #508
  • Loading branch information
chrispcampbell authored Aug 19, 2024
1 parent 56996fc commit 879d9fb
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions examples/house-game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"clean": "rm -rf ./sde-prep",
"dev": "sde dev",
"build": "sde bundle"
},
Expand Down
1 change: 1 addition & 0 deletions examples/house-game/packages/app/.eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
public
src/model/generated
2 changes: 1 addition & 1 deletion examples/house-game/packages/app/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['../../../.eslintrc-svelte-common.cjs']
extends: ['../../../../.eslintrc-svelte-common.cjs']
}
1 change: 1 addition & 0 deletions examples/house-game/packages/app/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public
src/model/generated
**/*.svelte
4 changes: 2 additions & 2 deletions examples/house-game/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"precommit": "../../scripts/precommit",
"test": "echo No tests yet",
"type-check": "tsc --noEmit",
"build": "vite build",
"bundle": "vite build",
"dev": "vite",
"ci:build": "run-s clean lint prettier:check type-check build"
"ci:build": "run-s clean lint prettier:check type-check bundle"
},
"dependencies": {
"@sdeverywhere/runtime": "^0.2.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/house-game/packages/app/src/app-vm.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { derived, writable, type Readable, type Writable } from 'svelte/store'

import { AppModel, createAppModel } from './model/app-model'
import { type AppModel, createAppModel } from './model/app-model'

import { AssumptionsViewModel, createAssumptionsViewModel } from './components/assumptions/assumptions-vm'
import { type AssumptionsViewModel, createAssumptionsViewModel } from './components/assumptions/assumptions-vm'
import type { GraphViewModel } from './components/graph/graph-vm'

export async function createAppViewModel(): Promise<AppViewModel> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ModelInputs } from '../../model/app-state'
import type { ModelInputs } from '../../model/app-state'

export interface AssumptionRow {
label: string
Expand Down
11 changes: 7 additions & 4 deletions examples/house-game/packages/app/src/model/app-model.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { Readable, Writable, get, writable } from 'svelte/store'
import type { Readable, Writable } from 'svelte/store'
import { get, writable } from 'svelte/store'

import type { ModelRunner, Point } from '@sdeverywhere/runtime'
import { Outputs, createLookupDef } from '@sdeverywhere/runtime'
import type { ModelRunner, Outputs, Point } from '@sdeverywhere/runtime'
import { createLookupDef } from '@sdeverywhere/runtime'

import { spawnAsyncModelRunner } from '@sdeverywhere/runtime-async'

import type { AppState } from './app-state'
import { inputValuesForState, stateForIndex } from './app-state'

import modelWorkerJs from './generated/worker.js?raw'
import { AppState, inputValuesForState, stateForIndex } from './app-state'

/**
* Create an `AppModel` instance.
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci-build
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function run_in_workspaces {
--aggregate-output \
--reporter=append-only \
--workspace-concurrency=0 \
--filter=./packages/** \
--filter=./examples/sample-* \
--filter="./packages/*" \
--filter="./examples/**" \
-r $cmd \
) 2>&1

Expand Down

0 comments on commit 879d9fb

Please sign in to comment.