{"_id":"taro","_rev":"1954062","name":"taro","description":"A gulp-based asset pipeline for Express.","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"time":{"modified":"2021-12-13T12:51:46.000Z","created":"2014-12-29T15:34:45.470Z","0.0.7":"2015-01-01T22:35:32.237Z","0.0.6":"2015-01-01T17:40:53.161Z","0.0.5":"2014-12-31T17:04:50.688Z","0.0.4":"2014-12-31T01:51:04.248Z","0.0.3":"2014-12-31T01:41:30.981Z","0.0.2":"2014-12-29T16:52:30.156Z","0.0.1":"2014-12-29T15:34:45.470Z"},"users":{"vito2020":true},"author":{"name":"Ross Zurowski"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"versions":{"0.0.7":{"name":"taro","version":"0.0.7","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"async":"^0.9.0","express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-coffee":"^2.2.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"a9eb985ee2dd2b5e48ea170e02b40f62d1cb5312","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.7","_shasum":"d5ef0a98a00ae40838e385b572d13d8b21674e36","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"d5ef0a98a00ae40838e385b572d13d8b21674e36","size":8222,"noattachment":false,"key":"/taro/-/taro-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.7.tgz"},"directories":{},"publish_time":1420151732237,"_cnpm_publish_time":1420151732237,"_hasShrinkwrap":false},"0.0.6":{"name":"taro","version":"0.0.6","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"async":"^0.9.0","express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-coffee":"^2.2.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"4abe269f02973528b4d35594b3a77bb1d1811971","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.6","_shasum":"4d7f9c2ddb4feb07c1f951d402ec308906176f12","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"4d7f9c2ddb4feb07c1f951d402ec308906176f12","size":8095,"noattachment":false,"key":"/taro/-/taro-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.6.tgz"},"directories":{},"publish_time":1420134053161,"_cnpm_publish_time":1420134053161,"_hasShrinkwrap":false},"0.0.5":{"name":"taro","version":"0.0.5","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-coffee":"^2.2.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"1af2d837b7304f16077d0aa7b74f48891327fb0a","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.5","_shasum":"6f3e71b2466886072388a32a7e8b2cb9aa291b7a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"6f3e71b2466886072388a32a7e8b2cb9aa291b7a","size":8059,"noattachment":false,"key":"/taro/-/taro-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.5.tgz"},"directories":{},"publish_time":1420045490688,"_cnpm_publish_time":1420045490688,"_hasShrinkwrap":false},"0.0.4":{"name":"taro","version":"0.0.4","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-coffee":"^2.2.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"ae58c72fa3dbd30552fb3aa3344d6798be28f19d","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.4","_shasum":"0a843ac84a0d4bd2eec03dd03eb954be5b0a0020","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"0a843ac84a0d4bd2eec03dd03eb954be5b0a0020","size":7809,"noattachment":false,"key":"/taro/-/taro-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.4.tgz"},"directories":{},"publish_time":1419990664248,"_cnpm_publish_time":1419990664248,"_hasShrinkwrap":false},"0.0.3":{"name":"taro","version":"0.0.3","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"1e0f27a3a80fd4459317ea18a18defcba930a1e7","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.3","_shasum":"f3780a81d4cc092079f7f619f47e4d1c1b45d3da","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"f3780a81d4cc092079f7f619f47e4d1c1b45d3da","size":7659,"noattachment":false,"key":"/taro/-/taro-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.3.tgz"},"directories":{},"publish_time":1419990090981,"_cnpm_publish_time":1419990090981,"_hasShrinkwrap":false},"0.0.2":{"name":"taro","version":"0.0.2","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","connect","express","gulp","middleware","pipeline"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"802c6faf6c56c5198dc53b262513b4fed00049e0","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.2","_shasum":"d171ea4f15d52f955efa137c99bb9860f2bea5f1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"d171ea4f15d52f955efa137c99bb9860f2bea5f1","size":7378,"noattachment":false,"key":"/taro/-/taro-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.2.tgz"},"directories":{},"publish_time":1419871950156,"_cnpm_publish_time":1419871950156,"_hasShrinkwrap":false},"0.0.1":{"name":"taro","version":"0.0.1","description":"A gulp-based asset pipeline for Express.","dependencies":{"async":"^0.9.0","debug":"^2.1.0","glob":"^4.3.2","gulp":"^3.8.10","gulp-tap":"^0.1.3","gulp-util":"^3.0.1","lazypipe":"^0.2.2","minimatch":"^2.0.1","object-merge":"^2.5.1","send":"^0.10.1","serve-static":"^1.7.1"},"repository":{"type":"git","url":"https://github.com/rosszurowski/taro"},"keywords":["asset","pipeline","express"],"scripts":{"test":"mocha"},"author":{"name":"Ross Zurowski"},"license":"MIT","devDependencies":{"express":"^4.10.6","gulp-6to5":"^1.0.2","gulp-autoprefixer":"^2.0.0","gulp-concat":"^2.4.2","gulp-csso":"^0.2.9","gulp-sass":"^1.2.4","gulp-uglify":"^1.0.2","mocha":"^2.1.0","rimraf":"^2.2.8","should":"^4.4.1","supertest":"^0.15.0"},"gitHead":"9f114ec0585dabcfb7a8d6e625824b1765e85f8e","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"homepage":"https://github.com/rosszurowski/taro","_id":"taro@0.0.1","_shasum":"e5591413926a6a7d696df476ebf5133692bb138f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rosszurowski","email":"ross@rosszurowski.com"},"maintainers":[{"name":"rosszurowski","email":"ross@rosszurowski.com"}],"dist":{"shasum":"e5591413926a6a7d696df476ebf5133692bb138f","size":6564,"noattachment":false,"key":"/taro/-/taro-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/taro/download/taro-0.0.1.tgz"},"directories":{},"publish_time":1419867285470,"_cnpm_publish_time":1419867285470,"_hasShrinkwrap":false}},"readme":"# Taro [![Circle CI](https://circleci.com/gh/rosszurowski/taro.svg?style=svg&circle-token=95b8acade8ecb29f54c72ede6969c33b8566560d)](https://circleci.com/gh/rosszurowski/taro)\n\nAn extensible asset-pipeline for [Express](http://expressjs.com/), that uses [gulp](gulpjs.com) and plugins to process files. \n\n**WIP:** This project is still in progress and is not ready for production use.\n\n## Installation\n\n```bash\n$ npm install taro --save\n```\n\n## Usage\n\nTaro offers a [superagent](https://github.com/visionmedia/superagent)-esque chainable system for describing how your files should be processed.\n\n```javascript\nvar express = require('express');\nvar app = express();\n\nvar Taro = require('taro');\n\nfunction taro() {\n\treturn new Taro({ root: './assets' })\n\t\t.get('**/*.css')\n\t\t\t.src('**/*.scss')\n\t\t\t.use(sass)\n\t\t\t.use(autoprefix, { browsers: ['last 2 versions'] })\n\t\t\t\t.when('production' === process.env.NODE_ENV, csso)\n\t\t.get('*.js')\n\t\t\t.use(6to5)\n\t\t\t\t.when('production' === process.env.NODE_ENV, uglify)\n\t\t.get('img/*.{png,jpg,gif}')\n\t\t\t.use(imagemin);\n\t\t.middleware();\n}\n\napp.use('/assets/', taro());\n```\n\nYou can also package Taro in a local module, which has the advantage of cleanly separating your app's dependencies from the swath of gulp plugins used to compile your front-end.\n\n## API\n\nTaro can be broken down into two components: a `Server` and set of `Task`s.\n\n#### Server#get(glob)\n\nCreate a new task that runs when the request matches `glob`. By default, this task loads the requested file unless overridden by `Server#source`.\n\n```javascript\ntaro.get('**/*.css') // runs task on /file.css, /another.css, and /path/to/file.css\ntaro.get('*.css') // runs task on /file.css, and /another.css but *not* /path/to/file.css\ntaro.get('file.css') // runs task only on /file.css\n```\n\nAliased as `Server#for` and `Server#task`.\n\n#### Server#alias(ext, alias)\n\nAliases requests for `ext` to all associated aliases. For example, if `scss` is aliased to `css`, then requesting `styles.css` will look for `styles.css` *and* `styles.scss`.\n\nBy default we alias SASS, SCSS, LESS, and CoffeeScript extensions. Use this if you'd like to add your own custom aliases.\n\n```javascript\ntaro\n\t.alias('css', 'newext')\n\t.get('styles.css') // will look for styles.css and styles.newext\n```\n\n#### Server#middleware()\n\nReturn Express-ready middleware.\n\n```javascript\napp.use(taro.middleware());\n// or, namespace some the URLs\napp.use('/assets', taro.middleware());\n```\n\n#### Task#source(glob)\n\nUses a set of source files for a given task. Use this if your source file to destination file is not a 1:1 relationship. This just calls `gulp.src` under the hood.\n\n```javascript\n// concatenates all the js files in `js/libraries/` into a single file\ntaro\n\t.get('libraries.js')\n\t.source('js/libraries/**/*.js')\n\t.use(concat, 'libraries.js')\n```\n\nAliased as `Task#src`\n\n#### Task#use(plugin[, opts...])\n\nUse `plugin` with `opts` when processing files. Do not call the plugins with `()`, simply pass them into use.\n\n```javascript\ntaro\n\t.get('**/*.css')\n\t.use(sass) // Note how we don't call the function `()`. This is important.\n\t.use(prefix, opts) // You can pass plugin options through subsequent arguments\n```\n\n#### Task#when(condition, plugin[, opts...])\n\nUse `plugin` with `opts` if `condition` evaluates to true. This is particularly useful for applying plugins to specific environments.\n\n```javascript\ntaro\n\t.get('**/*.js')\n\t.use(6to5)\n\t\t.when('production' === process.env.NODE_ENV, uglify)\n```\n\nThis will always use the `6to5` gulp plugin, but will only run `uglify` on production environments.\n\n## Errors\n\nTaro passes errors onto your Express application. So if a request 404s, it will be handled by your application's code.\n\nAsset compilation errors get passed on as a 500 error.\n\n## Performance\n\nThis package caches compiled files and serves from the cache to ensure fast response times. Files are only re-compiled when a newer source file is found.\n\n## Tests\n\nTo run the tests simply use:\n\n```bash\nnpm install\nnpm test\n```\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/rosszurowski/taro","bugs":{"url":"https://github.com/rosszurowski/taro/issues"},"license":"MIT"}