Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update ci-build script so that it includes all available example packages #509

Merged
merged 5 commits into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/house-game/package.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"clean": "rm -rf ./sde-prep",
"dev": "sde dev",
"build": "sde bundle"
},
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
@@ -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",
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> {
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
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.
4 changes: 2 additions & 2 deletions scripts/ci-build
Original file line number Diff line number Diff line change
@@ -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