SauveJeanLuc / coffee-tasks

Next gen AI Powered Todo-List
https://coffeetasks.netlify.app
MIT License
38 stars 73 forks source link

Convert cjs files to js files and rely on default #121

Closed gaber85 closed 1 year ago

gaber85 commented 1 year ago

Description

This PR attempts at converting cjs extension files to js files and just rely on the default settings.

For more information visit the Node documentation section on package.json and file extensions

As a bonus, I've updated the dev script with an --open flag so the browser opens when npm run dev gets executed.

Feel free to comment with any questions and I'll gladly address them.

Motivation and Context

As per the documentation, node interprets js files as commonJS depending on what is passed. By default it allows js files to be interpreted as expected. Given that many of these files are using commonJS e.g. module.exports{}, it only makes sense to rely on the default setup.

How Has This Been Tested?

The changes pass the pipeline and the app runs as expected.

Checklist:

netlify[bot] commented 1 year ago

Deploy Preview for coffeetasks ready!

Name Link
Latest commit 8a14c95d153bea8f70abed95654c651016bfb8b7
Latest deploy log https://app.netlify.com/sites/coffeetasks/deploys/63479a624b701b0008587cc1
Deploy Preview https://deploy-preview-121--coffeetasks.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

SauveJeanLuc commented 1 year ago

Great job. @all-contributors add @gaber85 for code.

allcontributors[bot] commented 1 year ago

@SauveJeanLuc

@gaber85 already contributed before to code