{"name":"metalsmith-start","description":"development server for metalsmith.","version":"1.4.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bin":{"metalsmith-start":"bin/metalsmith-start","metalstart":"bin/metalsmith-start"},"bugs":{"url":"https://github.com/rstacruz/metalsmith-start/issues"},"dependencies":{"chalk":"1.1.1","chokidar":"1.2.0","co":"4.6.0","commander":"2.9.0","connect-livereload":"0.5.3","debounce-collect":"1.0.2","get-port":"1.0.0","gnode":"0.1.1","metalsmith":"2.1.0","mz":"2.0.0","object-assign":"3.0.0","observatory":"1.0.0","superstatic":"3.0.0","thunkify":"2.1.2","tiny-lr":"0.2.1","unyield":"0.0.1"},"devDependencies":{"expect":"1.12.2","istanbul":"0.3.22","metalsmith-layouts":"^1.4.1","mocha":"2.3.3","mocha-eventually":"1.1.0","mocha-standard":"1.0.0","standard":"5.3.1","supertest":"1.1.0"},"directories":{"test":"test"},"homepage":"https://github.com/rstacruz/metalsmith-start#readme","keywords":["jekyll","metalsmith","static"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/metalsmith-start.git"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec","test":"mocha"},"docpress":{"css":"http://ricostacruz.com/docpress-rsc/style.css","github":"rstacruz/metalsmith-start"},"gitHead":"50fdf2474fa0106c2d8c17f2e318621b12a074d0","_id":"metalsmith-start@1.4.0","_shasum":"1b88671fe42c397b7e855e3674ea6563644e7e18","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"1b88671fe42c397b7e855e3674ea6563644e7e18","tarball":"http://registry-npm.ywwl.com/metalsmith-start/download/metalsmith-start-1.4.0.tgz","integrity":"sha512-SgIWY4gPuXZReX1jj6SQP/Mn/t2evwENX4ab8s8yHIafoaIGETDmO/AgtRN8tabBSAD4/LYmS8UmXusZWcP6zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+phkXeEspwmLSxp0ejFSop2cKbexqckPjMchU2aG9IAiEA8vS8bR14WqELrQ8ci6JDt6oRy7Mdd948CmA+JxyaqXY="}],"size":11602,"noattachment":false,"key":"/metalsmith-start/-/metalsmith-start-1.4.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"readme":"# metalsmith-start\n\nDevelopment server for metalsmith.\n\n[![Status](https://travis-ci.org/rstacruz/metalsmith-start.svg?branch=master)](https://travis-ci.org/rstacruz/metalsmith-start \"See test builds\")\n\n- Consumes the standard `metalsmith.json`.\n- Consumes `metalsmith.js`.\n- Auto-recompiles when files are changed.\n- Starts development server and LiveReload.\n\n<br>\n\n## Command-line\n\nRun `metalsmith-start` or `metalstart` in your Metalsmith's project directory.\n\n```\nmetalsmith-start\n```\n\nSee `--help` for more options.\n\n<br>\n\n## Production\n\nmetalsmith-start honors the following variables:\n\n* `NODE_ENV`\n* `PORT`\n\nIf either `NODE_ENV` is set to `production`, then development features (such as LiveReload) will be disabled by default.\n\nThis means that you can run a production setup using:\n\n```sh\nenv NODE_ENV=production PORT=4000 metalsmith-start\n```\n\nThis also means you can push your repo to Heroku with no changes and it'll work just fine.\n\n<br>\n\n## Using metalsmith.js\n\nIf a file called `metalsmith.js` is found in the current directory, it's assumed it's a JS module that returns a `Metalsmith` instance.\n\nBelow is a sample metalsmith.js:\n\n```js\nvar Metalsmith = require('metalsmith')\n\nvar app = Metalsmith(__dirname)\n  .source('./src')\n  .destination('./public')\n  .use(...)\n\nif (module.parent) {\n  module.exports = app\n} else {\n  app.build(function (err) { if (err) throw err })\n}\n```\n\n<br>\n\n## Superstatic\n\nIf `superstatic.json` is found in the current directory, it'll automatically be picked up. This allows you to, say, use `cleanUrls` to allow pages to be served without the `.html` extension.\n\nSee [superstatic] for more information.\n\n[superstatic]: https://www.npmjs.com/package/superstatic\n\n<br>\n\n## Programatic usage\n\n```js\nvar Runner = require('metalsmith-start').Runner\n\nvar ms = new Metalsmith(dir)\n  .use(...)\n  .use(...)\n\nvar r = new Runner(ms)\nr.start(function () {\n  console.log('started on ' + r.port)\n})\n```\n\n<br>\n\n## Thanks\n\n**metalsmith-start** © 2015+, Rico Sta. Cruz. Released under the [MIT] License.<br>\nAuthored and maintained by Rico Sta. Cruz with help from contributors ([list][contributors]).\n\n> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;\n> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;\n> Twitter [@rstacruz](https://twitter.com/rstacruz)\n\n[MIT]: http://mit-license.org/\n[contributors]: http://github.com/rstacruz/metalsmith-start/contributors\n","publish_time":1444942982858,"_cnpm_publish_time":1444942982858,"dist-tags":{"latest":"2.0.1"}}