vhx / quartz-react

Quartz components using React
2 stars 1 forks source link

Feature/improve build process #19

Closed sebastiansandqvist closed 7 years ago

sebastiansandqvist commented 7 years ago

This PR adds a dist/ folder to the repo and points package.json's main field to dist/quartz-react.js.

It also copies all the css files into dist/ using a custom script (build/build-css.js). This script prepends the current quartz-react version and md5 hash of each css file within a comment so that users of the css can know whether they need to update their css. The comments look like this:

/*
  Quartz-react version: 0.0.1
  Current file hash: 3ea776fd3ad9615fe3050c37a41c0eb5
*/

Important: For future changes that involve adding a dependency, build/rollup.config.js must have its external field updated to include that new dependency.