Build Tools

Build Tools

A set of tools used to build choco-theme.

cssnano

cssnano is used to minify CSS.

esbuild

esbuild is used to compile and minify TypeScript and JavaScript.

http-server

http-server is used when running yarn monitor or yarn preview --PROJECT_NAME. This brings up a webpage that monitors each port status.

nodemon

nodemon is used by choco-theme to watch for file changes, and rerun the yarn build command automatically.

PostCSS

PostCSS is used to run cssnano. More features of PostCSS may be leveraged in the future.

PurgeCSS

PurgeCSS is used to purge unneeded CSS from making it into the final CSS file that is used by each website. This can reduce the CSS used considerably.

SASS

SASS is used to compile .scss files.

ts-node

ts-node is used to run node scripts that are written in TypeScript without the need to precompile them.

ws

ws is used to help send messages to the client when when running yarn monitor or yarn preview --PROJECT_NAME.

Yarn

Yarn 4 is used to install any dependencies in choco-theme.