krushi-india
v1.0.0
Published
Krushi India browser assets distributed through npm and jsDelivr
Readme
Krushi India package
Source lives on GitLab. Public distribution uses npm, with versioned jsDelivr URLs for Webflow.
Layout
src/: editable source, if neededdist/: browser-ready JavaScript and CSSassets/: images, fonts, models, audio, video, and other static files
Live site snapshot
The 62 pages in the live kicl.org sitemap all load these custom files:
assets/kicl/style-krushi.cssassets/kicl/Swup.umd.jsassets/kicl/main-krushi.js
assets/kicl/asset-map.json records the original URLs, file hashes, and CSS dependencies. The stylesheet's five image URLs are Webflow-managed assets and are listed in the map. The JavaScript also contains a reference to a Decorelse video inside a function that is not called in this snapshot; that video was not copied.
This snapshot comes from the live site. It can be checked against the Webflow export when that folder is supplied. These files have not yet been published to npm, so jsDelivr links for them are not live.
Prepare a release
- Add the new website's files to
dist/andassets/. - Run
npm run check:packageto confirm every distributable file appears in the npm tarball. The check fails until real files are added. - Publish the package publicly to npm after signing in and enabling npm publishing 2FA:
npm publish --access public. - Use versioned jsDelivr paths, for example
https://cdn.jsdelivr.net/npm/[email protected]/assets/example.css. Replace the example path with an actual published file.
For GitLab CI publishing, set a protected NPM_TOKEN variable with appropriate npm publishing access and create a protected release tag matching the package version, such as v1.0.0. A local npm publish is also supported.
GitLab repository: https://gitlab.com/atlantiser-group/krushi-india. The website-specific files will be added after their locations are provided.
