fix more deps

This commit is contained in:
Felix Roos 2022-03-25 18:51:20 +01:00
parent 6430f6207d
commit 2338a1ee7d
15 changed files with 17 additions and 22 deletions

View File

@ -3,6 +3,9 @@
"version": "0.0.1", "version": "0.0.1",
"description": "Port of tidalcycles to javascript", "description": "Port of tidalcycles to javascript",
"main": "strudel.mjs", "main": "strudel.mjs",
"scripts":{
"test": "npm run test --workspaces --if-present"
},
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],

View File

@ -1,17 +1,17 @@
import * as strudel from '../core/strudel.mjs'; import * as strudel from '@strudel/core/strudel.mjs';
import '../tone/tone.mjs'; import '../tone/tone.mjs';
import '../midi/midi.mjs'; import '../midi/midi.mjs';
import '../tonal/voicings.mjs'; import '../tonal/voicings.mjs';
import '../../packages/tonal/tonal.mjs'; import '../../packages/tonal/tonal.mjs';
import '../../packages/xen/xen.mjs'; import '../../packages/xen/xen.mjs';
import '../../packages/xen/tune.mjs'; import '../../packages/xen/tune.mjs';
import '../core/euclid.mjs'; import '@strudel/core/euclid.mjs';
import euclid from '../core/euclid.mjs'; import euclid from '@strudel/core/euclid.mjs';
import '@strudel/tone/pianoroll.mjs'; import '@strudel/tone/pianoroll.mjs';
import '@strudel/tone/draw.mjs'; import '@strudel/tone/draw.mjs';
import * as uiHelpers from '@strudel/tone/ui.mjs'; import * as uiHelpers from '@strudel/tone/ui.mjs';
import * as drawHelpers from '@strudel/tone/draw.mjs'; import * as drawHelpers from '@strudel/tone/draw.mjs';
import gist from '../core/gist.js'; import gist from '@strudel/core/gist.js';
import shapeshifter from './shapeshifter.mjs'; import shapeshifter from './shapeshifter.mjs';
import { mini } from '../mini/mini.mjs'; import { mini } from '../mini/mini.mjs';
import * as Tone from 'tone'; import * as Tone from 'tone';

View File

@ -15,7 +15,7 @@ import {
import shiftCodegen from 'shift-codegen'; import shiftCodegen from 'shift-codegen';
const codegen = shiftCodegen.default; const codegen = shiftCodegen.default;
console.log('codegen', codegen); console.log('codegen', codegen);
import * as strudel from '../core/strudel.mjs'; import * as strudel from '@strudel/core/strudel.mjs';
const { Pattern } = strudel; const { Pattern } = strudel;

View File

@ -3,9 +3,6 @@
"version": "0.0.1", "version": "0.0.1",
"description": "React Hooks for strudel", "description": "React Hooks for strudel",
"main": "index.js", "main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/tidalcycles/strudel.git" "url": "git+https://github.com/tidalcycles/strudel.git"

View File

@ -1,6 +1,6 @@
import { isNote } from 'tone'; import { isNote } from 'tone';
import _WebMidi from 'webmidi'; import _WebMidi from 'webmidi';
import { Pattern as _Pattern } from '../core/strudel.mjs'; import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
import * as Tone from 'tone'; import * as Tone from 'tone';
const WebMidi = _WebMidi; const WebMidi = _WebMidi;

View File

@ -3,9 +3,6 @@
"version": "0.0.1", "version": "0.0.1",
"description": "Midi API for strudel", "description": "Midi API for strudel",
"main": "midi.mjs", "main": "midi.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/tidalcycles/strudel.git" "url": "git+https://github.com/tidalcycles/strudel.git"

View File

@ -1,5 +1,5 @@
import * as krill from './krill-parser.js'; import * as krill from './krill-parser.js';
import * as strudel from '../core/strudel.mjs'; import * as strudel from '@strudel/core/strudel.mjs';
import { addMiniLocations } from '../eval/shapeshifter.mjs'; import { addMiniLocations } from '../eval/shapeshifter.mjs';
const { pure, Pattern, Fraction, stack, slowcat, sequence, timeCat, silence } = strudel; const { pure, Pattern, Fraction, stack, slowcat, sequence, timeCat, silence } = strudel;

View File

@ -1,6 +1,6 @@
import { strict as assert } from 'assert'; import { strict as assert } from 'assert';
import '../tonal.mjs'; // need to import this to add prototypes import '../tonal.mjs'; // need to import this to add prototypes
import { pure } from '../../core/strudel.mjs'; import { pure } from '@strudel/core/strudel.mjs';
describe('tonal', () => { describe('tonal', () => {
it('Should run tonal functions ', () => { it('Should run tonal functions ', () => {

View File

@ -1,5 +1,5 @@
import { Note, Interval, Scale } from '@tonaljs/tonal'; import { Note, Interval, Scale } from '@tonaljs/tonal';
import { Pattern as _Pattern } from '../core/strudel.mjs'; import { Pattern as _Pattern } from '@strudel/core/strudel.mjs';
import { mod, tokenizeNote } from '../../packages/core/util.mjs'; import { mod, tokenizeNote } from '../../packages/core/util.mjs';
const Pattern = _Pattern; // as any; const Pattern = _Pattern; // as any;

View File

@ -1,4 +1,4 @@
import { Pattern as _Pattern, stack, Hap, reify } from '../core/strudel.mjs'; import { Pattern as _Pattern, stack, Hap, reify } from '@strudel/core/strudel.mjs';
import _voicings from 'chord-voicings'; import _voicings from 'chord-voicings';
const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings; const { dictionaryVoicing, minTopNoteDiff, lefthand } = _voicings;

1
packages/tone/README.md Normal file
View File

@ -0,0 +1 @@
TODO: test

View File

@ -4,9 +4,6 @@
"description": "Tone.js API for strudel", "description": "Tone.js API for strudel",
"main": "tone.mjs", "main": "tone.mjs",
"type": "module", "type": "module",
"scripts": {
"test": "mocha --colors"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/tidalcycles/strudel.git" "url": "git+https://github.com/tidalcycles/strudel.git"

View File

@ -1,6 +1,6 @@
import { strict as assert } from 'assert'; import { strict as assert } from 'assert';
import '../tone.mjs'; import '../tone.mjs';
import { pure } from '../../core/strudel.mjs'; import { pure } from '@strudel/core/strudel.mjs';
import Tone from 'tone'; import Tone from 'tone';
describe('tone', () => { describe('tone', () => {

View File

@ -1,5 +1,5 @@
import Tune from './tunejs.js'; import Tune from './tunejs.js';
import { Pattern } from '../core/strudel.mjs'; import { Pattern } from '@strudel/core/strudel.mjs';
Pattern.prototype._tune = function (scale, tonic = 220) { Pattern.prototype._tune = function (scale, tonic = 220) {
const tune = new Tune(); const tune = new Tune();

View File

@ -1,4 +1,4 @@
import { Pattern } from '../core/strudel.mjs'; import { Pattern } from '@strudel/core/strudel.mjs';
import { mod } from '../../packages/core/util.mjs'; import { mod } from '../../packages/core/util.mjs';
function edo(name) { function edo(name) {