guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

Template features + autoinstalls #25

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

This PR updates the templates based on current usability feedback.

It adds an autoInstall = true argument to all templates that do npm installs, where when that argument is not explicitly set for the template, there will instead be an error thrown that a package is missing and needs to be installed like:

Chomp: Some packages are missing. Please run npm install @babel/core @babel/cli

In addition the Babel and SWC templates now use configuration files by default with an argument to disable them.

Template updates:

NPM

JSPM

Babel

Swc

Svelte