Telegram Web, preconfigured for usage in I2P.
http://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
11 years ago
|
# karma-coffee-preprocessor
|
||
|
|
||
|
> Preprocessor to compile CoffeeScript on the fly.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
**This plugin ships with Karma by default, so you don't need to install it, it should just work ;-)**
|
||
|
|
||
|
The easiest way is to keep `karma-coffee-preprocessor` as a devDependency in your `package.json`.
|
||
|
```json
|
||
|
{
|
||
|
"devDependencies": {
|
||
|
"karma": "~0.10",
|
||
|
"karma-coffee-preprocessor": "~0.1"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
You can simple do it by:
|
||
|
```bash
|
||
|
npm install karma-coffee-preprocessor --save-dev
|
||
|
```
|
||
|
|
||
|
## Configuration
|
||
|
Following code shows the default configuration...
|
||
|
```js
|
||
|
// karma.conf.js
|
||
|
module.exports = function(config) {
|
||
|
config.set({
|
||
|
preprocessors: {
|
||
|
'**/*.coffee': ['coffee']
|
||
|
},
|
||
|
|
||
|
coffeePreprocessor: {
|
||
|
// options passed to the coffee compiler
|
||
|
options: {
|
||
|
bare: true,
|
||
|
sourceMap: false
|
||
|
},
|
||
|
// transforming the filenames
|
||
|
transformPath: function(path) {
|
||
|
return path.replace(/\.js$/, '.coffee');
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
```
|
||
|
|
||
|
If you set the `sourceMap` coffee compiler option to `true` then the generated source map will be inlined as a data-uri.
|
||
|
|
||
|
----
|
||
|
|
||
|
For more information on Karma see the [homepage].
|
||
|
|
||
|
|
||
|
[homepage]: http://karma-runner.github.com
|