Live CockpitCMS+Svelte Projects:


8. Deployment

npm run ftp

After editing the page and checking via npm run dev / npm run build, use npm run ftp, which performs build, increments versions of likely modified script and link tags in the head via bump.js, and finally uploads bundle.css/js and svelte.html files to FTP via ftpsync.js.

There's also npm run ftp_ for full upload (except cockpit).

head.querySelectorAll("script").forEach(script => script.hasAttribute("defer") && bump(script))
head.querySelectorAll("link").forEach(link => link.getAttribute("rel") === "stylesheet" && bump(link))
localRoot: __dirname + '/public',
remoteRoot: '/domains/dev.strukshow.com',
include: ['*'],
exclude: ['api/**','*.bak','*.css.map','*.js.map','cockpit/**','cockpit-docs/**','cockpit-docs-official/**']

Previous: 7. SEO and Analytics