Skip to content

guybedford/chomp-extensions

Repository files navigation

Chomp Extensions

Experimental core extensions for JS & frontend workflows.

This extensions library is available by default in Chomp core under the [email protected]: alias in the extensions list.

For example, using the SWC template extension:

chompfile.toml

version = 0.1

extensions = ['[email protected]:swc']

[[task]]
name = 'build'
target = 'lib/#.js'
dep = 'src/#.ts'
template = 'swc'

Contributions are encouraged and new template extensions will very likely be accepted.

The following extensions are currently included:

  • assert: Template for asserting the output of target or dependency of a task, useful for test tasks.
  • babel: Template for Babel compilation. The SWC template is highly recommended instead of Babel for performance.
  • footprint: Template for outputting file size charts for build summaries.
  • jspm: Template for JSPM import map generation.
  • npm: Template for initializing npm and ensuring packages are installed / npm install has been run.
  • ncc: Template for ncc Node.js builder.
  • prettier: Template for running Prettier.
  • replace: Template for source replacements.
  • rollup: Template for RollupJS compilation.
  • svelte: Template for Svelte. Just a prototype currently, contributions would be great.
  • swc: Template for the SWC compiler. Recommended for TypeScript / JSX / JS transpilation workflows with Chomp.
  • terser: Template for Terser minification

LICENSE

MIT