BrianHung / buildhelper

Build utility used by CodeMirror packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helper scripts to build CodeMirror packages.

The exports (build and watch) from this package build packages that conform to the conventions of the various @codemirror packages. They do the following:

  • Mangle the code to convert our /// doc comments to /** */ comments, so that TypeScript will not strip them.

  • Run the TypeScript compiler, catching the output in memory.

  • Run rollup and rollup-plugin-dts on the result to emit the CommonJS and ES modules, as well as a bundled .d.ts file, to dist/.

There's also a cm-buildhelper binary which builds the main file specified as its first argument. This is used by the individual packages in their prepare scripts.

About

Build utility used by CodeMirror packages

License:MIT License


Languages

Language:TypeScript 96.2%Language:JavaScript 3.8%