GitHub/aptrn/maxmsp-ts-example
Properties
- tags
- GitHub/Repo/Template, c74/js, Example
- date-created
- 2024/10
- created-by
- Person/Alessandro Petrone
- aptrn/maxmsp-ts-example: Template Max Project with TypeScript and npm dependencies
Template Max Project with TypeScript and npm dependencies
Bundle dependencies for Max
- You can install dependencies using
pnpm i -D <package-name>. If you're sure the dependency is compatible with Max, you can add it to the config file.
The configuration filemaxmsp.config.jsondetermines which dependencies are included in the compiled output. The defaultoutput_pathislib, placed as a subdirectory of theoutDirfound in thetsconfig.jsonfile.
You can manually edit themaxmsp.config.jsonfile or use command-line scripts:
pnpm maxmsp add <package-name> [--alias] [--path] [--files] --alias: Optional. Sets the prefix for the copied files. Default is the package name.--path: Optional. Sets the path to the package. Default is the package name.--files: Optional. Sets the files to copy. Default isindex.js.
Example:
pnpm maxmsp add @not251/not251 --alias not251 --files "index.js, index.map.js"
This will copy files:node_modules/@not251/not251/dist/index.jsnode_modules/@not251/not251/dist/index.map.js
To:lib/not251/not251_index.jslib/not251/not251_index.map.js
This project is heavily inspired by TypeScript-for-Max and uses Max/Msp types at DefinitelyTyped
- You can install dependencies using