osc build

This commit is contained in:
Felix Roos 2023-01-28 22:40:10 +01:00
parent c25aad0c4a
commit 7507654749
3 changed files with 32 additions and 6 deletions

View File

@ -1,14 +1,18 @@
{
"name": "@strudel.cycles/osc",
"version": "0.4.0",
"version": "0.6.0",
"description": "OSC messaging for strudel",
"main": "osc.mjs",
"publishConfig": {
"main": "dist/index.js",
"module": "dist/index.mjs"
},
"scripts": {
"test": "echo \"No tests present.\" && exit 0",
"server": "node server.js",
"tidal-sniffer": "node tidal-sniffer.js",
"client": "npx serve -p 4321",
"build": "npx pkg server.js --targets node16-macos-x64,node16-win-x64,node16-linux-x64 --out-path bin"
"build-bin": "npx pkg server.js --targets node16-macos-x64,node16-win-x64,node16-linux-x64 --out-path bin",
"build": "vite build"
},
"repository": {
"type": "git",
@ -31,10 +35,11 @@
},
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"osc-js": "^2.4.0",
"@strudel.cycles/core": "workspace:*"
"@strudel.cycles/core": "workspace:*",
"osc-js": "^2.4.0"
},
"devDependencies": {
"pkg": "^5.7.0"
"pkg": "^5.7.0",
"vite": "^3.2.2"
}
}

View 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, 'osc.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
View File

@ -132,11 +132,13 @@ importers:
'@strudel.cycles/core': workspace:*
osc-js: ^2.4.0
pkg: ^5.7.0
vite: ^3.2.2
dependencies:
'@strudel.cycles/core': link:../core
osc-js: 2.4.0
devDependencies:
pkg: 5.8.0
vite: 3.2.5
packages/react:
specifiers: