{"name":"metalsmith-start","description":"development server for metalsmith.","version":"1.3.3","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","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":"1.2.3","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":"8e4cb250c6e259140b8f2489b07284cfc1b1a1ca","_id":"metalsmith-start@1.3.3","_shasum":"a028a049281b2833bff9c782c549d24d505beaf7","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"a028a049281b2833bff9c782c549d24d505beaf7","tarball":"http://registry-npm.ywwl.com/metalsmith-start/download/metalsmith-start-1.3.3.tgz","integrity":"sha512-8KipTRbIoPwLhCiPn1Bx1h//KI5IQp6EreVnmxfYhGCHd1vA2HzyMLicbx16CrWMdGqlXjhVncPb1E4RBJ+Qiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaYInUH9YFUzQsOUppxXubPhrmg+P7qPHI97oPOTAx2QIhAPGVY0y/AcuRGGO6BkMTAFc2Zczb2f3X6b5CSCnte5O2"}],"size":12089,"noattachment":false,"key":"/metalsmith-start/-/metalsmith-start-1.3.3.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":1444926036959,"_cnpm_publish_time":1444926036959,"dist-tags":{"latest":"2.0.1"}}