{"_id":"@alizain/coconut","_rev":"9-06819b3c3bcf5a7d9211ce2b13dad314","name":"@alizain/coconut","description":"static site generator with proper data model and react templates","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.8":{"name":"@alizain/coconut","version":"0.1.8","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":">0.1.0","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"dev":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"533535a252c94b0f0eecce0d59ece570a5317855","_id":"@alizain/coconut@0.1.8","_shasum":"14a88fbe3a4b1cd661fe30c3be55488946e9386c","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"14a88fbe3a4b1cd661fe30c3be55488946e9386c","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.1.8.tgz","integrity":"sha512-yUs6C4svvXAN2Vb1awxMnkenX3NBCeyVcuLuI9l1AbtM7UlemavRX8//Q47R8i6sW0jFzh6Z0xvAOXjbHofxpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChh6qZFIi7sk++KHpuO6LGIUPOmx/9wH0xBg6/ZhR5KQIgPYlRTtJ9qbc0Ea9hTX28zEd/fS3wPMFzwkH48zgNcGQ="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/coconut-0.1.8.tgz_1476481572463_0.625905493972823"}},"0.1.9":{"name":"@alizain/coconut","version":"0.1.9","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"323e30eed288491266a160d39bd862a0bf2fb0d3","_id":"@alizain/coconut@0.1.9","_shasum":"c41bfb3fc5901d9cef075feff78c1ab84a18fc8e","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"c41bfb3fc5901d9cef075feff78c1ab84a18fc8e","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.1.9.tgz","integrity":"sha512-Bd4e21RdvyMp8Laq+L3uyOEr4dwmIxDYW/ZuGASk15kOpg+tUaL8dTiC13AfqZsXnNim36HQF/SuQwt7t66Emw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFg5BTulrdCvmFSXlFtY3ShPKr/ERI35tivHuXsG8CFlAiEA92Oz9ANWUT4mamxFNrL4VWAywOw8XkbwNW+Ugro9JAw="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/coconut-0.1.9.tgz_1476569069941_0.5310107285622507"}},"0.1.10":{"name":"@alizain/coconut","version":"0.1.10","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"3e5143c463dddd1ed31cdcb826d582e405e06933","_id":"@alizain/coconut@0.1.10","_shasum":"3818d02c130de011c254c70a837b832e64c1be63","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"3818d02c130de011c254c70a837b832e64c1be63","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.1.10.tgz","integrity":"sha512-h2ecn6CbPyoVnHIsInIah3zC6hdv9OZ3pN97iCEobw+wqrHXzttwQ8tLsI1t71EbTkyq6mGY7Klvg5WAZVkf9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDL0dQrFWos31YSmkT8mvF6A/5P7gS+OuiQW19Ew7BdmAiEAmdN07fTPd/woHufua4oUNUQxo9ZxglXmdumrJGd6GcE="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/coconut-0.1.10.tgz_1476718513620_0.18338698032312095"}},"0.2.0":{"name":"@alizain/coconut","version":"0.2.0","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"663c01d1ad9611ff7a5fe8bc6e57c35695a1239f","_id":"@alizain/coconut@0.2.0","_shasum":"140824be77297ac68b3331948c12e0fbf2ac0ab6","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"140824be77297ac68b3331948c12e0fbf2ac0ab6","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.2.0.tgz","integrity":"sha512-oL1yjsWaBqFO5URqg1ifMVXbnMmE+gpHx6Aic767nP0rQNxJOS05w+6fJqZ0JwLPe3/bWXbAqRyjHtvS0ifH2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbsp7m1yl2++02exIl0FOiiq1AmvkpEhMHW22gfiAelgIhAJSkTBHA5wBGXR6xqqK8ztseOJCiMsNUHeN9u0aoRvYJ"}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/coconut-0.2.0.tgz_1476995377553_0.7917559344787151"}},"0.2.1":{"name":"@alizain/coconut","version":"0.2.1","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"9b7519eb6afcb6e4c8e0d9fea77f841f7da0c56f","_id":"@alizain/coconut@0.2.1","_shasum":"bf0ce2e5bd4aa97c21b11f0420526deff3b5bf86","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"bf0ce2e5bd4aa97c21b11f0420526deff3b5bf86","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.2.1.tgz","integrity":"sha512-gbjdAuNJ/HeBv4xBw1X5OZj4sLxIRnxQVDefKKPWQkOFfzkRgZ6oFRyG3X6pvc1tD9E6j87dsKzcCVgxf7OCCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpfEGosPn9QQhZQq3SteuckeOYAaDqBBHyTmO1DfZ/+wIgLfhAP1ioKNLLiqRFW29qrIWQXA88/7qrQXhH2+DZmkk="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/coconut-0.2.1.tgz_1476999534932_0.720145636703819"}},"0.2.3":{"name":"@alizain/coconut","version":"0.2.3","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","debug":"^2.2.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1","slug":"^0.9.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"31824eca2ac1d9e250433b29015df91af7897fb8","_id":"@alizain/coconut@0.2.3","_shasum":"6960ed76e223d856bd2838635d6e95303bb9322d","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"6960ed76e223d856bd2838635d6e95303bb9322d","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.2.3.tgz","integrity":"sha512-rowgkcGi7J5dJVuBAGbJ1W4AgtYUJG8VZtSKbE9NIQ2mZ6NFbLqGZKcdB3Lk0G/QokmIzLyPVZQA71pM0iMxeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPyjEXogT/kVIHEsYh6U9WFCngyOcaF6CDCNUezeqCmAiAqw1i0uBs4F4lVPcE0jzaVTCbqkj4LBYblH8BIP2md1g=="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/coconut-0.2.3.tgz_1477065774568_0.9782146499492228"}},"0.2.4":{"name":"@alizain/coconut","version":"0.2.4","description":"static site generator with proper data model and react templates","bin":{"coconut":"lib/bin/coconut.js"},"main":"lib/index.js","dependencies":{"@alizain/fsdb":"^0.1.11","babel-polyfill":"^6.13.0","babel-register":"^6.14.0","debug":"^2.2.0","graceful-fs":"^4.1.9","marked":"^0.3.6","mkdirp":"^0.5.1","react":"^15.3.1","react-dom":"^15.3.1","slug":"^0.9.1"},"peerDependencies":{"react":">= 0.14.0"},"devDependencies":{"babel-core":"^6.2.0","babel-eslint":"^6.1.0","babel-plugin-syntax-async-functions":"^6.13.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-object-rest-spread":"^6.8.0","babel-plugin-transform-regenerator":"^6.14.0","babel-preset-es2015":"^6.14.0","babel-preset-es2016":"^6.11.3","babel-preset-stage-3":"^6.11.0","eslint":"^3.4.0","eslint-config-airbnb":"latest","eslint-plugin-babel":"latest","eslint-plugin-import":"latest","eslint-plugin-jsx-a11y":"latest","eslint-plugin-react":"latest"},"scripts":{"compile":"babel src --out-dir lib"},"repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"license":"MIT","bugs":{"url":"https://github.com/alizain/coconut/issues"},"homepage":"https://github.com/alizain/coconut#readme","gitHead":"3417b5606a8fc725b269b5c637a0fd6cbfc065ed","_id":"@alizain/coconut@0.2.4","_shasum":"eaf912f4e04caa9865f876a35a2289edb3eeb4cc","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"alizain","email":"alizain.feerasta@gmail.com"},"dist":{"shasum":"eaf912f4e04caa9865f876a35a2289edb3eeb4cc","tarball":"https://registry.npmjs.org/@alizain/coconut/-/coconut-0.2.4.tgz","integrity":"sha512-9dPMLH2yz1SCrLSUGuoI1jBEMy7g1+VNtTa55C/rKuWSp/SETMLkZllHeeUCnIEWQqYGW8Hgqi8nFnOJE+w4Tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5JkFTbsI/9QT14cdTbU1srFxm8X66poA/ApbCucYtmAIgQz1OYJM+tAaWVc0XvkvbeUd/1O7qon0uZeLtM/6sLmA="}]},"maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/coconut-0.2.4.tgz_1477069543852_0.9177059077192098"}}},"readme":"# Coconut\n\nA simple React & [fsdb](https://github.com/alizain/fsdb) based static site generator.\n\nCheck out the `sample` directory for a simple example.\n\n## Data/Content Files\n\nThe two currently supported formats are:\n- Markdown\n- YAML\n- JSON\n\nFor `md` files, front-matter is treated as root level data, and all content is inside the data key\n\n``` Markdown\n---\ntitle: The Obliteration of Man\n---\n\nI am God\n```\n\nWhich gets compiled to\n\n``` javascript\n{\n  title: \"The Obliteration of Man\",\n  body: \"\\nI am God\",\n  parent: ...\n}\n```\n\n## Layouts\n\nThe entire layouts folder is required on startup. From there, all registered components are called with their respective nodes and rendered (ie. all nodes with `type: book` get rendered by the following React component)\n\n**layouts/Book.js**\n```javascript\nimport { Registry } from \"@alizain/coconut\"\n\nfunction Book({ node }) {\n  return (\n    <h1>{node.title}</h1>\n  )\n}\n\nRegistry.set(\"book\", Book)\n```\n\nYou can also set a default layout to use for nodes:\n\n```javascript\nRegistry.setDefault(Page)\n```\n\nNode layout is determined by the `layout` property, then by the `type` property. So a node with the following keys, will be rendered using the `listing` renderer.\n\n```javascript\n{\n  layout: \"listing\",\n  type: \"collection\"\n}\n```\n\n## Config\n\n```javascript\n{\n  dataDir: \"./data\",         // content/data directory\n  layoutDir: \"./layouts\",    // React component directory\n  distDir: \"./dist\",         // compiled HTML output directory\n  commonFile: \"common\"       // shared props file\n}\n```\n","maintainers":[{"name":"alizain","email":"alizain.feerasta@gmail.com"}],"time":{"modified":"2022-06-12T14:31:35.279Z","created":"2016-10-14T21:46:14.023Z","0.1.8":"2016-10-14T21:46:14.023Z","0.1.9":"2016-10-15T22:04:31.538Z","0.1.10":"2016-10-17T15:35:15.333Z","0.2.0":"2016-10-20T20:29:38.158Z","0.2.1":"2016-10-20T21:38:56.849Z","0.2.3":"2016-10-21T16:02:55.640Z","0.2.4":"2016-10-21T17:05:45.856Z"},"homepage":"https://github.com/alizain/coconut#readme","repository":{"type":"git","url":"git+https://github.com/alizain/coconut.git"},"author":{"name":"Alizain Feerasta"},"bugs":{"url":"https://github.com/alizain/coconut/issues"},"license":"MIT","readmeFilename":"README.md"}