3 ms·
That is 10x more complicated and unorthodox than simply running "$ npm install --save facesjs".
by Solvency 3y ago
That is 10x more complicated and unorthodox than simply running "$ npm install --save facesjs".
- fzzzy 3y agoThat's not enough to get it to load in a browser. Which bundler will you use? Shark jumped.
- Solvency 3y agoOne command: npx.
- tylerchilds 3y agoyeah, i thought about asking if OP was using vite, webpack, snowpack or babel, but based on the context of the question, it seemed like vanilla web, so i answered vanilla web.
- ezequiel-garzon 3y agoThank you very much for your help, just upvoting feels rude! I have not quite gotten there, but thank you for pointing me in the right direction. Clearly I'm an enthusiast at best, but "back in my day" you could put all the needed libraries in the script tag and the CSS under link... sigh... The moment nodejs, supposedly a back end, started being used pervasively for the front end, I lost whatever conceptual map I had. Just as a personal challenge, I'm planning to _study_ [1], which I see referenced a lot, and see if I can "get it", albeit partially. Any other such references would be welcome. Thanks again! Great website and projects, by the way. [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...
- fzzzy 3y agofor an easier way to import, download the module you want to import, put it next to the js file you will import it from, and use "import foo from './foo'". You might need to serve it from a local http server.
- tylerchilds 2y agothank you! if it helps, my last commit touches the primary aspects of modules. overall, i’m integrating a test payment flow on https://thelanding.page https://thelanding.page this commit[0] i export two functions from my payment debugger module (i am intentionally overloading the word module to additionally bind a view; this is a personal hot take and not general guidance, just in case you see how i use ‘@sillonious/module’). so i expose payment-debugger.js in the index.html file import map as @sillonious/payments. i import that module in the message-pay component. when the user clicks buy now, i call the newPayment function (which ultimately lands in client.js, after traversing the network; in case you’re curious about the full route). i also set a timer that’ll check the payment status every five seconds for 15 minutes. displaying a timeout message is a not yet implemented edge case. [0]: https://github.com/tylerchilds/plan98/commit/db3c037345077fead1f3e881b7deef070574f267 https://github.com/tylerchilds/plan98/commit/db3c037345077fe...