{ "name": "karma-coffee-preprocessor", "version": "0.1.1", "description": "A Karma plugin. Compile coffee script on the fly.", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git://github.com/karma-runner/karma-coffee-preprocessor.git" }, "keywords": [ "karma-plugin", "karma-preprocessor", "coffee-script", "coffee" ], "author": { "name": "Vojta Jina", "email": "vojta.jina@gmail.com" }, "dependencies": { "coffee-script": "1.6.3" }, "peerDependencies": { "karma": ">=0.9" }, "license": "MIT", "devDependencies": { "grunt": "~0.4.1", "grunt-npm": "~0.0.2", "grunt-bump": "~0.0.7", "grunt-auto-release": "~0.0.2" }, "contributors": [ { "name": "Friedel Ziegelmayer", "email": "friedel.ziegelmayer@gmail.com" }, { "name": "Niall Smart", "email": "niall@pobox.com" }, { "name": "Zachary Wright Heller", "email": "zheller@gmail.com" }, { "name": "Anthony Torres", "email": "anthony.torres@issinc.com" } ], "readme": "# karma-coffee-preprocessor\n\n> Preprocessor to compile CoffeeScript on the fly.\n\n## Installation\n\n**This plugin ships with Karma by default, so you don't need to install it, it should just work ;-)**\n\nThe easiest way is to keep `karma-coffee-preprocessor` as a devDependency in your `package.json`.\n```json\n{\n \"devDependencies\": {\n \"karma\": \"~0.10\",\n \"karma-coffee-preprocessor\": \"~0.1\"\n }\n}\n```\n\nYou can simple do it by:\n```bash\nnpm install karma-coffee-preprocessor --save-dev\n```\n\n## Configuration\nFollowing code shows the default configuration...\n```js\n// karma.conf.js\nmodule.exports = function(config) {\n config.set({\n preprocessors: {\n '**/*.coffee': ['coffee']\n },\n\n coffeePreprocessor: {\n // options passed to the coffee compiler\n options: {\n bare: true,\n sourceMap: false\n },\n // transforming the filenames\n transformPath: function(path) {\n return path.replace(/\\.js$/, '.coffee');\n }\n }\n });\n};\n```\n\nIf you set the `sourceMap` coffee compiler option to `true` then the generated source map will be inlined as a data-uri.\n\n----\n\nFor more information on Karma see the [homepage].\n\n\n[homepage]: http://karma-runner.github.com\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/karma-runner/karma-coffee-preprocessor/issues" }, "homepage": "https://github.com/karma-runner/karma-coffee-preprocessor", "_id": "karma-coffee-preprocessor@0.1.1", "_from": "karma-coffee-preprocessor@*" }