mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
tonal build
This commit is contained in:
parent
fddbb2e2ac
commit
6118bd24f2
@ -3,10 +3,15 @@
|
||||
"version": "0.5.0",
|
||||
"description": "Tonal functions for strudel",
|
||||
"main": "index.mjs",
|
||||
"type": "module",
|
||||
"publishConfig": {
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run"
|
||||
},
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||
@ -31,6 +36,7 @@
|
||||
"webmidi": "^3.0.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^3.2.2",
|
||||
"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:*
|
||||
'@tonaljs/tonal': ^4.7.2
|
||||
chord-voicings: ^0.0.1
|
||||
vite: ^3.2.2
|
||||
vitest: ^0.25.7
|
||||
webmidi: ^3.0.21
|
||||
dependencies:
|
||||
@ -222,6 +223,7 @@ importers:
|
||||
chord-voicings: 0.0.1
|
||||
webmidi: 3.1.2
|
||||
devDependencies:
|
||||
vite: 3.2.5
|
||||
vitest: 0.25.8
|
||||
|
||||
packages/tone:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user