Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Experimental bundle-free JavaScript dependency server/loader.
Bundless is an experimental, HTTP/2-based alternative to browserify and webpack. Its goal is to deliver all JavaScript dependencies to the client without creating aggregate files ("bundles"), managing complex configurations or migrating to alternative package managers.
npm install bundless --save
All you need to do is to create an instance of Bundless server:
var bundless = require('bundless');
var configuration = {...};
bundless(configuration).listen(3000, 'localhost', function (err) {
console.log("Bundless listening at " + this.address().address + ":" + this.address().port);
});
configuration
is an optional argument, which can be a subset of the following
data structure:
var defaultConfiguration = {
rootDir: process.cwd(),
srcDir: 'dist', // Your local .js files, relative to rootDir
srcMount: '/modules', // URL prefix of local files
libMount: '/lib', // URL prefix of libraries (npm dependencies)
nodeMount: '/$node', // Internal URL prefix of Node.js libraries
systemMount: '/$system' // Internal URL of the system bootstrap,
ssl: require('spdy-keys') // SSL certificates
};
You'll most likely override srcDir
and perhaps rootDir
. Remaining
properties give you extra control over your server topology.
This example will run server on https://localhost:3000
.
In your .html file/template, include the following:
<body>
...
<script src="https://localhost:3000/$system" type="text/javascript"></script>
<script type="text/javascript">
System.import('your/own/main/package');
</script>
Bundless is currently in a wild, alpha, development-and-research stage. We'll be happy for any comments, opinions, insights, thoughts, pull-requests, suggestions and bits of wisdom from the community.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
See LICENSE.md
FAQs
Experimental bundle-free dependency loader
The npm package bundless receives a total of 5 weekly downloads. As such, bundless popularity was classified as not popular.
We found that bundless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.