@chompbuild/extensions

0.1.31 • Public • Published

Chomp Extensions

Experimental core extensions for JS & frontend workflows.

This extensions library is available by default in Chomp core under the chomp@0.1: alias in the extensions list.

For example, using the SWC template extension:

chompfile.toml

version = 0.1

extensions = ['chomp@0.1: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

Readme

Keywords

none

Package Sidebar

Install

npm i @chompbuild/extensions

Weekly Downloads

59

Version

0.1.31

License

MIT

Unpacked Size

41 kB

Total Files

15

Last publish

Collaborators

  • guybedford