{"_id":"nodulator-assets","_rev":"44-6f85bde3de5200a4f8077f4d0a06e314","name":"nodulator-assets","description":"Assets management for Nodulator","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"nodulator-assets","version":"0.0.1","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.1","dist":{"shasum":"db1782e24ba6b91e280ef658c78a5a09f8f766fd","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.1.tgz","integrity":"sha512-R23nTl3aUbwq4du3A4qzHd3uEN+HjIBbyJWLL79ZN9bEG5sBeCueYxSjYorCt7zyTlKYTHK5DtK+IiRUoOCUDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQN80+fqWSGyPCyNVh+1ZlmNzKmLKPQGirH+roIxNpJAIgZiN3LUL60hJEROLR+GdUhqztMPHdPassGqvgJ0HGqqo="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.2":{"name":"nodulator-assets","version":"0.0.2","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"bin":{"Nodulator-Assets":"./bin/Nodulator-Assets"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.2","dist":{"shasum":"2bff6a1b833069071496159381b10537f23cedc6","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.2.tgz","integrity":"sha512-zX6CPSs401cik7rLFlV7WfRqwGrBF6/u4iR0vFRkRXa4i67V4eCojWIotft2a4NXB/qq9D5nqdVjdJ+v+4cRwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDoVQpWIu3FiEaLxiA5ClTc2LSjWLI+jF2yew1wtOZ0AIgVdO7Lua2fb2ENDU1Asa8QSjDDoXU79KK3LP3BltMaJM="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.3":{"name":"nodulator-assets","version":"0.0.3","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"bin":{"Nodulator-Assets":"./bin/Nodulator-Assets"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.3","dist":{"shasum":"e8ee67bd77c252f27e6398a8b46a9c210b05f14e","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.3.tgz","integrity":"sha512-1GpqYyYkp5u+LeP2gyRTVdTFlHUTLs8Q54PBRJXU429hYYrFdJ8Ax3n+1nPU/+BE+KcDNfFuDMXWxdCdMMxN7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSSIQt9QoS6thnEjAdCpTb9YM7fhaKV8BwiWv8t2aR9AiAy1RsjFpJIr0NjcjcOaJPHl4gg8yBSRtM4uAs6ekrlVw=="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.4":{"name":"nodulator-assets","version":"0.0.4","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.4","dist":{"shasum":"4e85d3636076058db4c22b17457f19adbaf0dbf2","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.4.tgz","integrity":"sha512-LeK0P5g9o8xfyDMGSbW+fxY1d6WH3dx78jC9ffrQI5ScIoNwYMMsXsDm2mzIZAYCr5pN2rtWNP1Tbam34M1O1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAEtQGoePzH1xh6TbiFnEdsI3bbhxQEVQvi0mfu4LC55AiBs1HrD8hjBRgJS3EAGQ/s8RVI+5n7UCD33PAnAomFpmQ=="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.5":{"name":"nodulator-assets","version":"0.0.5","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.5","dist":{"shasum":"f0312cb338f6a76810756c8c5c246de02705f94b","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.5.tgz","integrity":"sha512-Lef6ENg57EgVe/FK5M1eJ9zfMICiRDBsRlpF54g76Enq2Xu32NawV04cTL0V2TR2Wb2QafIG5LAOMYE2/FMkrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID56kn6AT9LZi5sAN3McN18RnMk8YuZAzgj/oqH1O7lOAiEA6VOI8e6axRQ3wCuL4v+2Ga7xOAa0yAkQSizY/ts6Fwk="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.6":{"name":"nodulator-assets","version":"0.0.6","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.6","dist":{"shasum":"39b055975f09ae20823cb0df78b53a82116b858f","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.6.tgz","integrity":"sha512-WcXlPRCliv7iaSGFRrCPs2+zflLofEdtRYYhYjgsCnQqepGDn0Ep5MDZ/uy5+6HWY1+QGsQ87tKQ0s2eRV2OVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMH/u1wTLTHeEl3QQ/IDx9nJJ+5TgeVnupcO55OWvpOAIhAJwoOt9YSVutMB63+xTzxwj0tn01b1jS3S/KtNl4gaaF"}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.7":{"name":"nodulator-assets","version":"0.0.7","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.7","dist":{"shasum":"5a468ee08c4a5b89501ec9bd6af757c01c1f8efe","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.7.tgz","integrity":"sha512-tEXG1HUUlhmU2eA3QMT8Ay9MYty3vrHcHvm4NYvrVJ0UtuOAuQB1fUKvgxJSuhoU6qNpylZhdamxpFPLdO0/Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGdZk0XfVkRTh7nU19oBg+2bs5OP8ixMdvs1hp3DvuxgIgI9sYHy+3Q10bv1E/qXgVfgaR4S6NyBqynExnTfCpx3k="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.8":{"name":"nodulator-assets","version":"0.0.8","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3"},"devDependencies":{},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"0","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.8","dist":{"shasum":"7e146782cda6992074c6aea0d6b8660ea536c866","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.8.tgz","integrity":"sha512-/hX63U85fdDoZwbPApQmXqRp6dK5cRZlN9SGvtI3eYG9rq2Qa4wdaAIhYpXE9g96q4QHW+R7rquEETsoQM24Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7p06/mL0iLVNOqRewDwYmq0lKkFeGOBqcZiKptmVGiwIgPqTp5WIs3zHjLRHupr6OGgjoJv+NnJUf861tpICyhyQ="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]},"0.0.9":{"name":"nodulator-assets","version":"0.0.9","description":"Assets management for Nodulator","main":"index.js","dependencies":{"coffee-middleware":"~0.2.1","connect-cachify":"~0.0.17","underscore":"~1.7.0","jade":"~1.8.1","cookie-parser":"~1.3.3","coffee-script":"~1.9.0"},"directories":{"test":"test"},"devDependencies":{"mocha":"~2.0.1"},"scripts":{"test":"mocha --compilers coffee:coffee-script/register test"},"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"keywords":["Nodulator","Assets"],"author":{"name":"Champii","email":"greine_f@epitech.eu"},"license":"GPLv2","bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"_id":"nodulator-assets@0.0.9","dist":{"shasum":"6a64ba86ce7856da81499ca442dcb197b38a3be3","tarball":"https://registry.npmjs.org/nodulator-assets/-/nodulator-assets-0.0.9.tgz","integrity":"sha512-+f5owsWFuDw7HxeWY80YsGvlazL+TY75y7NtF2Be/zSFm1NkQmU8HHNV/ZEu+zCG/z1UN3LBd2HlB+UkK+ojrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiUWG+eqA9HpABu/iIWqI5TvyghGpNE8cOKdwwbxxD0AiEArSTyyiU9Yq20Cfc551XL5wcW9tuv8v3LJJ8eVjhalxU="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"champii","email":"greine_f@epitech.eu"},"maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}]}},"readme":"Nodulator-Assets\n================\n\nAssets and views automatic management system for [Nodulator](https://github.com/Champii/Nodulator)\n\nMaster : [![Build Status](https://travis-ci.org/Champii/Nodulator-Assets.svg?branch=master)](https://travis-ci.org/Champii/Nodulator)\n\nDevelop: [![Build Status](https://travis-ci.org/Champii/Nodulator-Assets.svg?branch=develop)](https://travis-ci.org/Champii/Nodulator)\n\nNPM: [![npm version](https://badge.fury.io/js/nodulator-assets.svg)](http://badge.fury.io/js/nodulator-assets)\n\nReleased under [GPLv2](https://github.com/Champii/Nodulator-Assets/blob/master/LICENSE.txt)\n\n## Concept\n\nProvides ability to `Nodulator` to render views and auto-load assets in following folders:\n- `Nodulator.config.js`: array for js (or coffee) files\n- `Nodulator.config.css`: array for css files\n- `Nodulator.config.viewRoot`: path for index.jade\n\n___\n## Features\n\n- Automatic js and css assets loading\n- Provides methods for modules to add folders to assets management\n- Provides basic view system (only '`Nodulator.config.viewRoot`/index.jade' for the moment)\n- Add a `Nodulator.Run()` method to be called last for view rendering\n- Add a `Nodulator.ExtendBeforeRun()` and `Nodulator.ExtendAfterRun()` method for modules to add instructions at the begining of `Run()` or just before `Render()`\n- Add a `Nodulator.ExtendBeforeRender()` and `Nodulator.ExtendAfterRender()` method for modules to add instructions at the begining of `Render()` or just before the actual `res.render()`\n- CoffeeScript automatic compilation on fly\n- Jade automatic compilation on fly (no other engines yet)\n\n___\n## JumpTo\n\n- [Installation](#installation)\n- [Basics](#basics)\n- [Project Generation](#project-generation)\n- [Module Hacking](#module-hacking)\n- [TODO](#todo)\n- [Changelog](#changelog)\n\n___\n## Installation\n\nYou can automaticaly install `Nodulator` and `Nodulator-Assets` by running\n\n```\n$> sudo npm install -g Nodulator\n$> Nodulator install assets\n```\n\nOr you can just run `npm` :\n\n```\n$> npm install nodulator nodulator-assets\n```\n\n___\n## Basics\n\n```coffeescript\nNodulator = require 'nodulator'\nAssets = require 'nodulator-assets'\n\n# Default config, can be omited\nNodulator.Config\n  viewRoot: 'client'\n  js: ['/client/public/js/', '/client/']\n  css: ['/client/public/css/']\n  engine: 'jade' # no other engines at the moment\n\nNodulator.Use Assets\n\n# New method, to be called last for rendering\nNodulator.Run()\n```\n\nIn `index.jade`, you must always call `| !{nodulator()}` at the end of the file.\n\nIt's there that all `Nodulator-Assets` magic stuff occur, and the only call you'll ever have to do in views.\n\n___\n## Project Generation\n\nSee [Nodulator's project generation](https://github.com/Champii/Nodulator#project-generation)\n\nWhen calling `$> Nodulator init`, it will automaticaly create following structure if non-existant:\n\n```\nclient\n├── index.jade\n└── public\n    ├── css\n    ├── img\n    └── js\n```\n\n___\n## Module Hacking\n\nThe module is stored in `Nodulator.assets` and provides following methods :\n\n```coffeescript\n  # Add folders given in list to assets list\n  Nodulator.assets.AddFolder (list) ->\n\n  # Add folders given in list to assets list, the recursive way\n  Nodulator.assets.AddFolderRec (list) ->\n```\n\nExemple of asset list : (paths are relative to project root)\n\n```coffeescript\n  list =\n    '/js/app.js': ['/client/folder1/']\n    '/css/app.css': ['/client/public/css/']\n```\n\n___\n## TODO\n\n- Test suite\n- Image (and other static assets) management\n- Split assets between `head` and `body` tags\n\n___\n## Changelog\n\nXX/XX/XX: Current (not released yet)\n  - Added a parameter to view nodulator() function to get a specific set of assets\n\n12/02/15: v0.0.9\n  - Added fake tests\n  - Updated README\n\n03/01/15: v0.0.8\n  - Added `Nodulator.ExtendBeforeRender()` and `Nodulator.ExtendAfterRender()` to precisely extend render process.\n\n02/01/15: v0.0.7\n  - Updated README\n\n02/01/15: v0.0.6\n  - Changed `Nodulator.ExtendRunProcess` into `Nodulator.ExtendBeforeRun`\n  - Added `Nodulator.ExtendAfterRun`\n  - That fixes cachify_js bug if another render is processed\n\n02/01/15: v0.0.5\n  - Added index.jade file generation\n  - Changed the way folders are configurated\n  - Improved README\n  - Files are automaticaly loaded by `!{nodulator()}` call\n  - Added automatic compilation of views\n","maintainers":[{"name":"champii","email":"greine_f@epitech.eu"}],"time":{"modified":"2022-06-22T04:13:30.590Z","created":"2014-12-16T02:52:36.246Z","0.0.1":"2014-12-16T02:52:38.682Z","0.0.2":"2014-12-17T01:58:03.926Z","0.0.3":"2014-12-17T03:11:46.762Z","0.0.4":"2014-12-29T09:17:20.641Z","0.0.5":"2015-01-02T10:06:10.209Z","0.0.6":"2015-01-02T18:42:55.244Z","0.0.7":"2015-01-02T18:47:55.393Z","0.0.8":"2015-01-03T02:46:52.302Z","0.0.9":"2015-02-12T21:35:11.993Z","0.0.10":"2015-08-27T11:23:22.480Z"},"readmeFilename":"README.md","keywords":["Nodulator","Assets"],"repository":{"type":"git","url":"git://github.com/Champii/Nodulator-Assets.git"},"author":{"name":"Champii","email":"greine_f@epitech.eu"},"bugs":{"url":"https://github.com/Champii/Nodulator-Assets/issues"},"license":"GPLv2"}