mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.17k stars 106 forks source link

updates and upgrades and adds support for esm, jsx, and typescript #253

Open jeremy-coleman opened 3 years ago

jeremy-coleman commented 3 years ago

a few things here 1) added sucrase so esm, jsx, and typescript just work with practically no impact on bundling speed. 2) copied watchify-middleware internally so that watchify/chokidar deps match (and fixes install warnings); 3) added an option on the budo config to write output to disk, there is a working example in the 'start-demo.js' script 4) added a typescript version of the basic demo app 5) removed babel from dev dependencies 6) changed default ip to localhost, and new config object for useLocalNetworkIp (boolean) 7) updated tests, and a couple new ones for the localhost changes 8) inlined reload-css and updated the url and query-string deps to native-url and querystring. 21kb -> 11kb. 9) updated postinstall script to just use tinyify instead of uglify-js because it's way easier/better. 10) added getPort logic (copied from wmr) 11) added default extensions to the browserify config, [js,jsx,ts,tsx]