mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
tonal build
This commit is contained in:
parent
fddbb2e2ac
commit
6118bd24f2
@ -3,10 +3,15 @@
|
|||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"description": "Tonal functions for strudel",
|
"description": "Tonal functions for strudel",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"type": "module",
|
"publishConfig": {
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"module": "dist/index.mjs"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "vite build",
|
||||||
"test": "vitest run"
|
"test": "vitest run"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||||
@ -31,6 +36,7 @@
|
|||||||
"webmidi": "^3.0.21"
|
"webmidi": "^3.0.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"vite": "^3.2.2",
|
||||||
"vitest": "^0.25.7"
|
"vitest": "^0.25.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
19
packages/tonal/vite.config.js
Normal file
19
packages/tonal/vite.config.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { defineConfig } from 'vite';
|
||||||
|
import { dependencies } from './package.json';
|
||||||
|
import { resolve } from 'path';
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [],
|
||||||
|
build: {
|
||||||
|
lib: {
|
||||||
|
entry: resolve(__dirname, 'index.mjs'),
|
||||||
|
formats: ['es', 'cjs'],
|
||||||
|
fileName: (ext) => ({ es: 'index.mjs', cjs: 'index.js' }[ext]),
|
||||||
|
},
|
||||||
|
rollupOptions: {
|
||||||
|
external: [...Object.keys(dependencies)],
|
||||||
|
},
|
||||||
|
target: 'esnext',
|
||||||
|
},
|
||||||
|
});
|
||||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -214,6 +214,7 @@ importers:
|
|||||||
'@strudel.cycles/core': workspace:*
|
'@strudel.cycles/core': workspace:*
|
||||||
'@tonaljs/tonal': ^4.7.2
|
'@tonaljs/tonal': ^4.7.2
|
||||||
chord-voicings: ^0.0.1
|
chord-voicings: ^0.0.1
|
||||||
|
vite: ^3.2.2
|
||||||
vitest: ^0.25.7
|
vitest: ^0.25.7
|
||||||
webmidi: ^3.0.21
|
webmidi: ^3.0.21
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -222,6 +223,7 @@ importers:
|
|||||||
chord-voicings: 0.0.1
|
chord-voicings: 0.0.1
|
||||||
webmidi: 3.1.2
|
webmidi: 3.1.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
vite: 3.2.5
|
||||||
vitest: 0.25.8
|
vitest: 0.25.8
|
||||||
|
|
||||||
packages/tone:
|
packages/tone:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user