Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
0.1.6
Simple asset compilation middleware for Connect and Express.
Igneous helps keep asset management easy by merging groups of assets down to single files. These files can be pre/post-processed in a variety of ways, including minification, coffeescript, SASS/LESS, and client-side javascript template compilation. Igneous can also watch files and directories (including subdirectories) for changes and automatically regenerate bundles on the fly.
Note: This module are still in flux. If you plan on using this right now it might be wise to include the exact version number, as some parts of the API might change.
To install Igneous, just use npm:
npm install igneous
Igneous is Connect middleware, meaning it must be used via Connect or something that extends it, like Express.
Igneous uses a simple configuration method to define groups of assets—called "flows"—along with some pre/post-processing options:
var igneous = require('igneous');
var igneous_middleware = igneous({
root: __dirname +'/assets/',
minify: true,
flows: [
{
route: 'scripts/application.js',
type: 'js',
paths: [
'toolbar.js',
'home.js',
'app.coffee'
]
}
]
})
After the middleware is configured, it just needs to be used:
var express = require('express');
express.use( igneous_middleware );
Client-side javascript templates can also be compiled by Igneous. Right now it's limited to just Mustache, Handlebars and jQuery templates, but as time goes on more template packages will be added. An example of a Handlebars configuration:
igneous({
root: __dirname +'/assets',
minify: true,
flows: [
route: 'templates.js',
type: 'jst',
base: '/templates/',
paths: [
'test1.jst',
'test2.jst',
'_partial.jst'
],
jst_lang: 'handlebars',
jst_namespace: 'templates'
]
})
These templates will be made available on the jst_namespace
, with each template being associated with the string used for its path. For example, to access the template 'test1.jst' from above:
templates['test1']({ test: 'My radical template data' });
For more usage details, take a look at the examples directory!
Igneous can be configured to run in a variety of ways. Some options, such as root
, are set globally, while other options, such as route
are set per flow. Other options, like minify
, may be set globally and overriden on a per-flow basis.
false
.true
.UTF-8
['css', 'less', 'sass', 'scss']
for a type of css
)minify
parameter.watch
parameter.encoding
parameter.JST
You can run Igenous' tests with the command npm test
. These tests require Mocha to run.
In no specific order:
MIT License.
Copyright © 2012 Timothy Kempf
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Automatic asset bundling and deployment
The npm package igneous receives a total of 26 weekly downloads. As such, igneous popularity was classified as not popular.
We found that igneous demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.