{"_id":"shunt","_rev":"34-8984da5c2923905113d2aa9a44712604","name":"shunt","description":"A shit alternative to grunt, hence sh+unt","dist-tags":{"latest":"0.1.6"},"versions":{"0.0.1":{"name":"shunt","version":"0.0.1","description":"A shit alternative to grunt, hence sh+unt","main":"index.js","scripts":{"test":"mocha test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":">= 0.0.0"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"_id":"shunt@0.0.1","dist":{"shasum":"ef80680a63dc073ef7dd462649873cb3cf40350d","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.0.1.tgz","integrity":"sha512-ZQAqzLUxt0SIpyZVXWWJwk0v/iUSQiF94iyFKESfRpymr9J8g8v6Mnl/EWFb3P1JwxCKcafa40+dgID2qgMvMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMj5b+K+ImszFokftey79WoTo/ICmdJnoULP4OqRJzOQIgKRE+v1kY3eyH43duMYUWMlzKSM9V7EU0DFKl1IhcX0A="}]},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"directories":{}},"0.0.2":{"name":"shunt","version":"0.0.2","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":">= 0.0.0"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"_id":"shunt@0.0.2","dist":{"shasum":"d328402af98170bcfc987eca1ad2d6dc30326b22","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.0.2.tgz","integrity":"sha512-3KGSMha3j+KZ5kFqpRdKivZ4nun5pzKVtO+LUZIm3NiEBBY/glIANNYJwp8lPSOLYAzMpoKGZici28FmngK9Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRmFc570CTILNoeNbbN3zUu5PasXb1WpRU85wek7TiBAiEA8BYH0Qoe8H+b6zhmM2/LCPSjq72MLY5j4hwuk638erE="}]},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"directories":{}},"0.0.3":{"name":"shunt","version":"0.0.3","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":">= 0.0.0"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"_id":"shunt@0.0.3","dist":{"shasum":"0e3eab30f8f2af24ffa78ad83dd8b6534bd0d1c5","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.0.3.tgz","integrity":"sha512-rhP1MaAD8P8lWfQGCD4C1bvBpYvlOy4e6Rs8FY14AG0lQzJjMffanpE0gs+RI65xwcQS7CTBH7Y5oLBqtuoNog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdusVjaabKK1BF3a+4C3D5yJ5i3xA6rdXUJhq10bE6IAiBIUCmLi91AFETSEX150+3hD6pIlGxXHekS1DWIVLF9aA=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"directories":{}},"0.0.4":{"name":"shunt","version":"0.0.4","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":">= 0.0.0"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"_id":"shunt@0.0.4","dist":{"shasum":"a4755bdcd4bb55e7ded5d5912c213e6275895870","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.0.4.tgz","integrity":"sha512-cGiGkjT2hbb2QyHBAkduOoL43KH59v3sRon8LpLWPglGwiIWBvR+fn1332SwPHWIlRXTmsTOpH9rCw2KWQKo5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHDYENllP7C7daQ17dR0DgPftzhiDhoPj7fsDVwq4bQgIhAJjz5++z70J4VLAXqXVGvXM+0jIIEKDxPeHtTx/1+3bo"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]},"0.1.0":{"name":"shunt","version":"0.1.0","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.0","dist":{"shasum":"5c191cbe9604c75457fb1d0129059d0cd9e26819","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.0.tgz","integrity":"sha512-zIv7wERTSI3jEqyA40qN0YCwKUHuxYZFh6HtLzcWwMvITFKIDdrIEWknnsJayCWaq/IDs+JUBmnTQXobCiTeQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC45jGZhbaPl3r6hTaWGen8Tsg7o5DfPNqELcwP6W1WbAiA9MR/uTJGB5UxKw8vbrTmowgxoWHbRbCKozigoIW3Auw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]},"0.1.1":{"name":"shunt","version":"0.1.1","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.1","dist":{"shasum":"a73cd1c6d80f130322a5b237fc6cd1b79eedaa10","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.1.tgz","integrity":"sha512-WcvRQrmMXNMdj2qDWs7/nzMUuHwi/sAYd8fz1b0143K2kqo8nL1QDLO3Hf1MQc8++XoH1nu2YhlFLmQ3WdT/bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKRWgqCeyEy4sQhnAZOa18GAbKDQ2Z8Wnd0D5698A4HAiEA2ejxoHnDLoOZ2fbDQcLFE3eFdYg+vvphtSvrAiJTtlk="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]},"0.1.2":{"name":"shunt","version":"0.1.2","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.2","dist":{"shasum":"53ae79d4cbe1bc30b1361406ffc816ee043c8df4","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.2.tgz","integrity":"sha512-G0eLwzFLBCT4vHmrGrnPhH76bgUorGAtR0D+rmQo/GHpGL7TLPwMVSmqDVparcm/Hois7eIKDDcFPa1CBExPYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqRxvmy8159rH2JTz63g8uu4EScjCJ09lsnTy4aC0cQQIgcB5AbHfGDF5DFXMk+ALJayY1b4B7oVNoR+L23ieLfCM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]},"0.1.3":{"name":"shunt","version":"0.1.3","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.3","_shasum":"1381921a1441636c49aec611ff24ac5cb805ed98","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"dist":{"shasum":"1381921a1441636c49aec611ff24ac5cb805ed98","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.3.tgz","integrity":"sha512-bz9wD6hOWzolRMhrJqptpBLOGx1+FchUqQuHJfH9vnl//ttMArGT4qj6ZvOSV7thX83XzvPNjXYXDe6ShouJxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9W3NemlZEy/HIXiLrpd1BHcDP5IdawLixy+E1f36KPAiEAm0hXjwNB1/a4CZYzrbvH8cfe4XnLlE2UovjkuwjidWQ="}]}},"0.1.4":{"name":"shunt","version":"0.1.4","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.4","_shasum":"dacf074a6fc9219f17d26fcaaaa4442743d71b67","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"dist":{"shasum":"dacf074a6fc9219f17d26fcaaaa4442743d71b67","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.4.tgz","integrity":"sha512-qz9fuhSctGLbqFbBO8Kg2rQuxoFizaU85JX8Z5bGmKxJDnSjv6DNJuqW2hTHjO7JMMOsEoWIjWnR5kQOI9YiBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV2Wxa9IKmsKkwsyoVK8aX+wYbdDXXbCTBBlEHyi6xBgIgOBvlVXfvgNe7gCR3KPbL39soqzNyOqvksSTrt2/rqZA="}]}},"0.1.5":{"name":"shunt","version":"0.1.5","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.5","dist":{"shasum":"fffc3e215b5f9d796756cbc4d2b9b401e83cd03f","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.5.tgz","integrity":"sha512-CX2qyU1cAUJ0pkpzYLJ1hO/u16vIvWWySIsKnc1vlAcUS7parRqEukAEQB/OgiaErsSahTJNd0GCIp6C5mQ/nQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqJedBIp9eN5W5nZSRk+5y+VWUr2G62sPNftE+ic+gHAiBL4PQPguHiBXhHMykPmfXeUd2t24U3tQFwZtJoQqsQhQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]},"0.1.6":{"name":"shunt","version":"0.1.6","description":"A shit alternative to grunt, hence sh+unt","main":"shunt.js","scripts":{"test":"mocha -w test/tests.js"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"dependencies":{"uglify-js":">= 0.0.0","clean-css":"1.0.10"},"engines":{"node":"*"},"devDependencies":{"should":">= 0.0.0"},"homepage":"https://github.com/MrSwitch/node-shunt","_id":"shunt@0.1.6","dist":{"shasum":"260c59fb97070dc0c164dd13bd54adab302a546f","tarball":"https://registry.npmjs.org/shunt/-/shunt-0.1.6.tgz","integrity":"sha512-v8o62O/6l65FxKcKIcUqabpSFQJnr6OSj1TZRd1XSQysmwG9UJbfVjz9muTZU4x0cSl3pFcMOZKiR0uoU9d6iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNZt6xqZTEwEfg3wsF9nKwTcxlm1T++1EntwToEqH/oAiEA4YvX/1pNGjUMksbuhpt99qU184vg/q5mWawmP8qbJoQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"adodson","email":"andrewjdodson@gmail.com"},"maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}]}},"readme":"# Shunt \r\n*A Shit alternative to Grunt, hence Shunt*\r\n\r\nShunt works on files to combine, minify and replace strings etc. What gets spat out is nicely packed for production.\r\n\r\n# Install \r\n\r\n\tnpm install shunt --save-dev\r\n\r\n# Example (Gruntless)\r\n\r\nWrite a build.js script, this is where you sort the shit out. Here's an example...\r\n\r\n\t// Include the library\r\n\tvar shunt = require('shunt');\r\n\r\n\t// Start Shunting\r\n\tshunt(\r\n\t\t// Files to shunt `target:file(s)`\r\n\t\t{\r\n\t\t\t// Minify and shunt a single file\r\n\t\t\t'output.min.js' : 'input.js',\r\n\r\n\t\t\t// Create a combined minified file\r\n\t\t\t'combine.min.js' : ['input1.js', 'input2.js'],\r\n\r\n\t\t\t// Create an MarkDown file from an HTML file\r\n\t\t\t'output.md' : 'input.html',\r\n\r\n\t\t\t// Move an HTML file\r\n\t\t\t'output.html' : 'input.html'\r\n\t\t},\r\n\r\n\t\t// OPTIONS\r\n\t\t{\r\n\t\t\treplace : {\r\n\t\t\t\t// replace all local environment strings with development paths e.g. {find => replace, ... }\r\n\t\t\t\t'http://localhost/' : 'http://remote.com/'\r\n\t\t\t}\r\n\t\t}\r\n\t);\r\n\r\nThen run it `node build.js`, got it? Boom!\r\n\r\n# Example (Gruntful)\r\n\r\nShunt also doubles as a plugin for Grunt, a la shizame...\r\n\r\n\tshunt : {\r\n\t\t// Slightly different structure\r\n\r\n\t\t// Task's\r\n\t\tsubtask :{\r\n\t\t\t// shunt files, as above\r\n\t\t},\r\n\t\t// [, subtask2 : {} [, etc...]];\r\n\r\n\t\t// options\r\n\t\toptions : {\r\n\t\t\t// e.g. replace\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\r\n# Magic shit\r\n\r\nMoving an html file to a new place, also grabs relative files links to .css and .js files and moves them too (by default they also get minified, again Boom!).\r\n\r\n\tshunt({\r\n\t\t'bin/index.html' : 'src/index.html'\r\n\t})\r\n\r\n\r\n# Automate\r\n\r\nNot unique to this project but here's how i automate the build process in Sublime Text 2.\r\n\r\nAfter creating a script like `build.js` above (actually i prefix with a underscore to make it different, e.g. `_build.js`, do this, it'll sit nicely at the top of your file lists!)\r\n\r\nIn Sublime Text 2 go to \"Tools\" -> \"Build System\" -> \"New Build System...\"\r\n\r\nPaste the following code\r\n\r\n\t{\r\n\t\t\"cmd\": [\"node\", \"${file_path:${folder}}/_build.js\", \"$file_path\"],\r\n\t\t\"working_dir\" : \"${file_path:${folder}}\"\r\n\t}\r\n\r\nSave with a memorable name e.g. \"build.js\", aka \"build.js.sublime-build\". Then go back into \"Tools\" -> \"Build System\" and select it. \r\n\r\nNow from the directory where it is installed type, Ctrl + B ... you should see some action.\r\n\r\n\r\n# Contributing\r\n\r\nYeah go on, it'll make you feel good about yourself.","maintainers":[{"name":"adodson","email":"andrewjdodson@gmail.com"}],"time":{"modified":"2022-06-26T19:12:34.688Z","created":"2013-07-20T08:42:24.635Z","0.0.1":"2013-07-20T08:42:29.815Z","0.0.2":"2013-07-20T08:56:15.707Z","0.0.3":"2013-10-07T22:02:55.073Z","0.0.4":"2013-10-29T04:09:33.725Z","0.1.0":"2014-04-05T11:20:32.909Z","0.1.1":"2014-04-05T13:33:39.287Z","0.1.2":"2014-04-06T13:46:53.983Z","0.1.3":"2014-05-27T10:36:26.752Z","0.1.4":"2014-05-27T11:07:34.366Z","0.1.5":"2014-08-31T10:51:01.399Z","0.1.6":"2014-08-31T11:06:48.531Z"},"author":{"name":"Andrew Dodson","email":"andrewjdodson@gmail.com"},"repository":{"type":"git","url":"git@github.com/MrSwitch/node-shunt"},"keywords":["grunt","build-tool"],"bugs":{"url":"https://github.com/MrSwitch/node-shunt/issues"},"license":"BSD","readmeFilename":"README.md","homepage":"https://github.com/MrSwitch/node-shunt"}