Skip to content

Vite 5.x and new plugins

Latest
Compare
Choose a tag to compare
@brifiction brifiction released this 13 Dec 06:16
· 39 commits to develop since this release

This template version uses Vite 5.x and couple of new vite plugins. Currently, this template is meant to be a custom node library you can build with. However, we may introduce storybook and more (big maybe - still working out elegant templating for this type of idea).

Added

  1. vite-plugin-dts - Automatically generates file such as index.d.ts.
  2. vite-plugin-eslint - A new and convenient way to integrate eslint with vite, simple and easy - try it out!
  3. Enabled vitest UI - I have installed @vitest/ui and updated package.json with a new script.

Changed

  1. Updated rollup-plugin-visualizer with new configuration method of latest version. See vite.config.ts file.
  2. New @vitest/coverage-v8 dependency, c8 has been deprecated and for more information see their online documentation.
  3. Updated tsconfig.json and package.json file.
  4. Removed rollup-plugin-typescript-paths as it is no longer needed, you may reinstall & configure this plugin again for your needs.
  5. Upgraded ALL dependencies. FYI, I recommend using taze which I should've used before this release.
  6. Updated Github Actions - Node 14.x / 16.x has been deprecated. Thus, the new node engine versions in the workflows, should be building against Node 18.x / 20.x now and beyond (until the next Node versions, this example workflow will be updated).

Thank you for using this template, and happy coding!