When you're ready to build a release, Solder creates combined and minified files for production.
$ npm install solder
$ solder --help
Components are groups of CSS and/or JS files. Individual files can be on the local file system or at remote URLs. Components can require other components to create modular dependencies.
Solder looks in the current directory for a configuration file named
solder-config.js unless an alternate configuration file is specified.
examples/solder-config.js for a simple complete Solder configuration.
Solder can be used directly from your app to serve components during development.
Most Express applications can benefit from Solder's Express Route one-liner. In fact, the following example is a complete Solder server.
var server = require('express').createServer(), solder = require('solder'); solder.expressRoute(server); server.listen(3000);
If you're not using Express, Solder can be used directly from within any
application. Just match request URLs against Solder's
expression -- or your own regex -- and then process the matches.
examples/http.js directory for an example of a custom setup.
solder command-line tool includes a stand-alone Solder server. Just run
solder with no arguments. The Solder server will listen on port 8675 unless
a port is specified.
$ solder Solder server started at http://localhost:8675/
At runtime, Solder acts on URLs beginning with
foo.css tells Solder to serve the
css portion of the
If you don't want Solder to minify your components, add the
solder command-line tool to concatenate and compress one or more
components in a single step.
$ solder foo --> foo-201009042022.css --> foo-201009042022.js
--output-dir) option to save soldered files to a specific
--push) option to push soldered files to the configured CDN
instead of saving them locally. Basic Amazon S3 support is built in.
Solder is licensed under the same terms as Weld, the MIT License.