
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@cloudcannon/dist
Advanced tools
The CLI for the CloudCannon dist package.
Requires node >=11.0.0
build
Cleans dest, and copies files from src to dest/baseurl. CSS and HTML files have their hrefs/urls/etc to include baseurl.
$ dist build -b baseurlName
[-b | --baseurl ]
clean
Deletes all files in dest.
$ dist clean -d path/To/Destination
clone-assets
Copy the files from source to destination/baseurl without altering the data in any way.
$ dist clone-assets -b baseurl
[-b | --baseurl ]
dist
Runs build, serve, then watch. Is the default command (runs when no command is specified by user.)
$ dist -s path/to/src -d path/to/dest -b baseurlName
[-b | --baseurl ]
rewrite-css
Copies css files from src to dest/baseurl. Then rewrites the newly copied files so that urls/hrefs/etc that reference local content have baseurl prepended to them.
$ dist rewrite-css -b baseurlName
[-b | --baseurl ]
rewrite-html
Copies html files from src to dest/baseurl. Rewrites the newly copied files so that urls/hrefs/etc that reference local content have baseurl prepended to them.
$ dist rewrite-html -b baseurlName
[-b | --baseurl ]
serve
Serves the files on a local webserver, so that they my be viewed in a browser.
$ dist serve -d path/to/dest
watch
Continuously watches the dest/baseurl directory to check for changes. If a change occurs, then the browser that is viewing the local webserver will be reloaded, so that the new content can be viewed. Because this process runs continously, it does not return an exit code because it must be cancelled by the user in-terminal.
$ dist watch -d path/to/dest
FAQs
Allows you to make a clone of your site with a different baseurl.
We found that @cloudcannon/dist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.