max-js-bundler
CLI Tool to bundle and transpile modern JS for usage in [js] and [jsui] in Max MSP.
Last updated 2 months ago by fde31 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install max-js-bundler 
SYNC missed versions from official npm registry.

max-js-bundler

Build Status Version

Description

CLI Tool to bundle and transpile modern JS for usage in [js] and [jsui] in Max MSP. The idea is basically to support writing modern Ecmascript code alongside the usage of NPM dependencies within your code. Traditional module bundlers get us 95% there but there are some specifics to the js environment in Max that need to be accounted for. This project aims to help with that.

Big shout outs to the following projects that enable this:

  • Babel - for transpiling the JS Code to EcmaScript 5
  • Rollup - Rollup is used for bundling
  • Oclif - for developing the CLI framework

Notes

Currently we are using a custom fork of Rollup in order to offer a custom format to avoid any module loader wrapping and leaving the global namespace intact. Apart from that the Treeshaking feature is disabled until I find a way to disable it only for the top level file. None of these issues should affect your code or its functionality. It just means you'll end up with a slightly bigger bundle than needed.

Usage

$ npm install -g max-js-bundler

$ max-js-bundler COMMAND
running command...

$ max-js-bundler --version
max-js-bundler/1.0.0-beta.1 darwin-x64 node-v10.13.0

$ max-js-bundler --help [COMMAND]

Commands

max-js-bundler build FILE

Build and bundle a Project for usage within the [js] or the [jsui] object

USAGE
  $ max-js-bundler build FILE

ARGUMENTS
  FILE  InputFile

OPTIONS
  -f, --force          Force overwrite the output file
  -h, --help           show CLI help
  -o, --output=output  Output generated file

See code: src/commands/build.ts

max-js-bundler help [COMMAND]

display help for max-js-bundler

USAGE
  $ max-js-bundler help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

License

MIT

Current Tags

  • 1.1.1                                ...           latest (2 months ago)

6 Versions

  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 28
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |