Skip to content
Merged
Show file tree
Hide file tree
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 changelog/2026-12-03-scaffold-experimental-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Development: `npm run module:new` scaffolds an Octatrack draft at version `0.1.0-experimental`, the version a first release is listed under. Before, it scaffolded `0.1.0`, and because `module:qualify` binds a test procedure's record to the version it ran under, a draft tested before the rename had to run the procedure again.
2 changes: 2 additions & 0 deletions scripts/module-doctor.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ describe('module doctor', () => {
try {
const made = spawnSync(process.execPath, ['scripts/scaffold-module.mjs', id, '--kind', kind, '--author', 'example-author'], { cwd: root, encoding: 'utf8', env: { ...process.env, MODWERK_BOARD: 'off' } })
expect(made.status, made.stderr).toBe(0)
// the version it will be listed under, so a test procedure run on the draft binds to it
expect(JSON.parse(readFileSync(join(root, 'sdk/drafts', id, 'octamod.module.json'), 'utf8')).version).toBe('0.1.0-experimental')
const result = doctor('--draft', id)
expect(result.stdout).toContain('The experimental lines are green')
expect(result.status, result.stdout).toBe(0)
Expand Down
3 changes: 3 additions & 0 deletions scripts/scaffold-module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ if(!id||!['dsp','coldfire'].includes(kind)||!author)throw new Error('Usage: npm
const port=option('--port',null),upstreamFolder=option('--upstream',null)
if((port||upstreamFolder)&&(kind!=='dsp'||port!=='airwindows'||!upstreamFolder))throw new Error('Usage: npm run module:new -- my-port --kind dsp --port airwindows --upstream <clone>/plugins/LinuxVST/src/<Plugin> --author github-login')
const document=JSON.parse(await readFile(resolve(root,'public/module-repository.example.json'),'utf8'))
// A first release is listed as -experimental, and module:qualify binds a test procedure's record to the version it ran
// under: a draft scaffolded as plain 0.1.0 had to run the procedure again after its rename (Loopbox, 3 December 2026).
document.version='0.1.0-experimental'
document.id=id;document.key=id.toUpperCase().replaceAll('-',' ');document.name=id.split('-').map(word=>word[0]?.toUpperCase()+word.slice(1)).join(' ');document.author={github:author,credits:[author]}
if(kind==='coldfire'){document.category='playback';document.compatibility.location='Flex / Static';document.compatibility.effectId=null;document.controls=[]}
parseModuleDocument(document)
Expand Down
Loading