Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
142 stars 41 forks source link

npm run abridge problem due to missing js folder in static folder #155

Closed leehbi closed 8 months ago

leehbi commented 8 months ago

Hi I thought I'd test out the npm run abridge script on my dev machine before deploying to Netlify. It failed with :

Error: ENOENT: no such file or directory, copyfile 'themes/abridge/static/js/sw_load.js' -> 'static/js/sw_load.js'

I confirmed the file is there. Note I'm running WSL on Windows 10.

I have Node.js v20.9.0 LTS

I did run NPM install prior to running. I fixed the issue by created a js folder in the blog route : static/js

This is mostly for anyone else that runs into that. I guess for most folks it's obvious problem but I didn't know the path was needed in the destination.

Jieiku commented 8 months ago

Thanks very much for reporting this, I will modify the script to create the directory if it is missing.

Jieiku commented 8 months ago

This is now fixed: https://github.com/Jieiku/abridge/commit/8fd6b499763eaecccee56004a4b3e8ec1fc34b7c

Thanks again for the report, let me know if you run into anything else.