{"name":"metalsmith-start","description":"development server for metalsmith.","version":"1.0.1","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","debounce":"^1.0.0","get-port":"^1.0.0","gnode":"^0.1.1","metalsmith":"^1.7.0","object-assign":"^3.0.0","superstatic":"^1.2.3","thunkify":"^2.1.2","tiny-lr":"^0.1.6","unyield":"0.0.1"},"devDependencies":{"expect":"^1.6.0","istanbul":"^0.3.17","metalsmith-layouts":"^1.4.1","mocha":"^2.2.5","mocha-standard":"^1.0.0","standard":"^5.3.1","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":"178dd6c777db078332a5a54c5a3675c1695724c2","_id":"metalsmith-start@1.0.1","_shasum":"8a6390c3df28cbe137572795a7a0fc62dcb1cc72","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.3.1","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"8a6390c3df28cbe137572795a7a0fc62dcb1cc72","tarball":"http://registry-npm.ywwl.com/metalsmith-start/download/metalsmith-start-1.0.1.tgz","integrity":"sha512-j48Q/alZQnyrKJcRHzMPGRGOfinmJYQzFV2FId+z4xaXaHolVRFwNRmny0kZhqNbxFln4NzWKGNWD5I0ffg5xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2DpuGDf0Oo2ODDirNyxqhZRX41HtpfTRnJBOpfMInugIgECBafjzCAkx2GWgtk66lwFT3sjLrpy7HgzDyzbMBkFg="}],"size":10424,"noattachment":false,"key":"/metalsmith-start/-/metalsmith-start-1.0.1.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":1442695485070,"_cnpm_publish_time":1442695485070,"dist-tags":{"latest":"2.0.1"}}