{"name":"metalsmith-start","description":"development server for metalsmith.","version":"0.2.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.0","chokidar":"^1.0.3","commander":"^2.8.1","connect":"^3.4.0","connect-static":"^1.5.0","debounce":"^1.0.0","get-port":"^1.0.0","gnode":"^0.1.1","metalsmith":"^1.7.0","object-assign":"^3.0.0","serve-index":"^1.7.1","serve-static":"^1.10.0","thunkify":"^2.1.2","tiny-lr":"^0.1.6","unyield":"0.0.1"},"devDependencies":{"expect":"^1.6.0","istanbul":"^0.3.17","mocha":"^2.2.5","mocha-standard":"^1.0.0","standard":"^4.5.2","supertest":"^1.0.1"},"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"},"gitHead":"127263359f16034432cb275c5c3cd87ba3fafd26","_id":"metalsmith-start@0.2.0","_shasum":"4e939ca4be28beb6795c498b83ddcf308b3b0e52","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"4e939ca4be28beb6795c498b83ddcf308b3b0e52","tarball":"http://registry-npm.ywwl.com/metalsmith-start/download/metalsmith-start-0.2.0.tgz","integrity":"sha512-E8idx2VtJbWaM8W68pyHhSv5gnMmtH8zPU3gibN/t4gKn3nLhQ3LyE1UtKwUx71lIj9Ip1fKZKYXMzDOcz0G/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICugAQuTK7hjnMGcRX4mcR2EnOzjFj9acqNrI6+hbYOnAiEAsl0nv5NK/vUPMAry1arhHHk9R07DVKHqlKzz7gBRsek="}],"size":6483,"noattachment":false,"key":"/metalsmith-start/-/metalsmith-start-0.2.0.tgz"},"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":1439543527651,"_cnpm_publish_time":1439543527651,"dist-tags":{"latest":"2.0.1"}}