amusewiki icon indicating copy to clipboard operation
amusewiki copied to clipboard

Use npm/yarn to install JavaScript and CSS code

Open link2xt opened this issue 5 years ago • 1 comments

Currently Bootstrap, Fork Awesome, CKEditor and highlight.js are installed manually or by downloading from CDNs (see script/install_js.sh). CKEditor is even downloaded over HTTP. All of them are available in npm.

There is some work required to make it work with Debian packaging, but after all it is possible to bundle all JS and CSS at the build stage, so npm is not required on the user machine.

link2xt avatar Dec 16 '18 23:12 link2xt

@link2xt I'm not sure, in this context, if the over-engineered tooling is worth of. Bootstrap is kept in sync as submodule, together with Bootswatch. Fork Awesome at the moment is my fork (for the EPUB icon).

Highlight is loaded only on request, CKeditor only in selected pages, so they are not good candidates for bundling.

melmothx avatar Dec 17 '18 09:12 melmothx

Latest trend (see Ruby or Rails) is to go without all this tooling mess and at this point I'm happy it wasn't done.

melmothx avatar Nov 14 '22 07:11 melmothx