{"name":"metalsmith-start","description":"Development server for Metalsmith.","version":"2.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.1","chokidar":"1.4.2","co":"4.6.0","connect":"3.4.0","connect-livereload":"0.5.4","debounce-collect":"1.0.2","get-port":"2.1.0","gnode":"0.1.1","meow":"3.7.0","metalsmith":"2.1.0","mz":"2.1.0","object-assign":"4.0.1","observatory":"1.0.0","superstatic":"4.0.1","throat":"2.0.2","thunkify":"2.1.2","tiny-lr":"0.2.1"},"devDependencies":{"expect":"1.13.4","istanbul":"0.4.1","metalsmith-layouts":"1.4.2","mocha":"2.3.4","mocha-eventually":"1.1.0","mocha-standard":"1.0.0","standard":"5.4.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":"c5c55aea97ede026f5e3e80f1b06bb6aea5b6450","_id":"metalsmith-start@2.0.1","_shasum":"417d86348abea4fc0acbe70c113b763eb0117196","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"417d86348abea4fc0acbe70c113b763eb0117196","tarball":"http://registry-npm.ywwl.com/metalsmith-start/download/metalsmith-start-2.0.1.tgz","integrity":"sha512-JB/LBdTQm7C4N1BqCCNdemuyUyVYGq9RuC2IijX2HplFd+p+XjnvxPFTVkyaFEXUieEkYYSNQnmKiTVb6r/nvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF3SSzZzZOWuLI28SgEIVEjRYA4G4nsh+tw8a3GCrA/QIgXetaUPCypbgQXRJpoZYuVFRcqb5nr1KpuwFdSyM4fxA="}],"size":12769,"noattachment":false,"key":"/metalsmith-start/-/metalsmith-start-2.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":1451934640456,"_cnpm_publish_time":1451934640456,"dist-tags":{"latest":"2.0.1"}}