run sampler in parallel by default + move samples folder to root

This commit is contained in:
Felix Roos 2024-03-30 04:48:55 +01:00
parent 8f355dcf96
commit 22774596ca
5 changed files with 11 additions and 10 deletions

3
.gitignore vendored
View File

@ -127,3 +127,6 @@ fabric.properties
.idea/caches/build_file_checksums.ser
# END JetBrains -> BEGIN JetBrains
samples/*
!samples/README.md

View File

@ -14,9 +14,9 @@
"snapshot": "npm run pretest && vitest run -u --silent",
"repl": "npm run prestart && cd website && npm run dev",
"start": "npm run prestart && cd website && npm run dev",
"dev": "npm run prestart && cd website && npm run dev",
"dev": "npm run prestart && cd website && npm run dev & npm run sampler",
"build": "npm run prebuild && cd website && npm run build",
"preview": "cd website && npm run preview",
"preview": "cd website && npm run preview & npm run sampler",
"osc": "cd packages/osc && npm run server",
"jsdoc": "jsdoc packages/ -c jsdoc/jsdoc.config.json",
"jsdoc-json": "jsdoc packages/ --template ./node_modules/jsdoc-json --destination doc.json -c jsdoc/jsdoc.config.json",
@ -25,7 +25,7 @@
"format-check": "prettier --check .",
"report-undocumented": "npm run jsdoc-json && node jsdoc/undocumented.mjs > undocumented.json",
"check": "npm run format-check && npm run lint && npm run test",
"sampler": "cd packages/sampler && node sample-server.mjs",
"sampler": "cd samples && node ../packages/sampler/sample-server.mjs",
"iclc": "cd paper && pandoc --template=pandoc/iclc.html --citeproc --number-sections iclc2023.md -o iclc2023.html && pandoc --template=pandoc/iclc.latex --citeproc --number-sections iclc2023.md -o iclc2023.pdf"
},
"repository": {

View File

@ -1,2 +0,0 @@
samples/*
!samples/README.md

View File

@ -1,5 +0,0 @@
# samples folder
1. copy any samples to this folder
2. run `npm run sampler`
3. add `samples('local:')` to your code

5
samples/README.md Normal file
View File

@ -0,0 +1,5 @@
# samples folder
1. copy any samples to this folder
2. either run strudel locally (`pnpm dev` or `pnpm build && pnpm preview`), or run `npx @strudel/sampler` from this folder
3. add `samples('local:')` to your code