Closed pdcastro closed 8 months ago
Hello, thank you for helping out. I would like to mention that I’m working on a new version of the card which is a complete rewrite of the code. For that reason I think it’s best not to spend any significant effort on PRs at this point. Depending on the work you are preparing, I could create a branch for the new version and you could use that for improvement.
To answer your question, I only use npm start
.
This creates new output in the /dist folder and updates this output when any code in /src is changed.
Hello, thank you for helping out. I would like to mention that I’m working on a new version of the card which is a complete rewrite of the code. For that reason I think it’s best not to spend any significant effort on PRs at this point. Depending on the work you are preparing, I could create a branch for the new version and you could use that for improvement.
Thanks for letting me know. It was too late for PR #808 as I had already done the work. I have added a commit to this PR that proposes adding a CONTRIBUTING.md
file that includes a note about this complete rewrite, hoping to warn others before they start any large pieces of work.
To answer your question, I only use
npm start
. This creates new output in the /dist folder and updates this output when any code in /src is changed.
Got it. 👍 Here’s an interesting thing that I noticed: Deleting the Babel dependency and related packages (including rollup-plugin-babel
), and removing references to babel from rollup.config.js
, makes no difference to the output file (dist/scheduler-card.js
). I have added a commit to this PR that removes Babel, please try it at your end. If you can confirm that removing Babel makes no difference at your end, there are advantages to its removal:
npm install
:
While working on another PR (not pushed yet), I found that
npm run format
andnpm run lint
would modify not only the code I was writing, but also pre-existing files in the main branch. In order to avoid unnecessary noise in my other PR, I thought I would sort the pre-existing issues first, through this PR.While at it, @nielsfaber here’s a question: Are contributors supposed to run
npm run build
that callsbabel
? I have found that file dist/scheduler-card.js in release v3.2.12 (current latest), as well as the same file in the main branch, looks more likebabel
ornpm run build
were not executed. It looks more like it was created with justnpm run rollup
. Having said that, I was not able to reproduce the exact file with either command. Here’s what I get:What is the correct procedure to generate
dist/scheduler-card.js
?