This repository was archived by the owner on Jan 10, 2024. It is now read-only.
Releases: testdouble/fetcher
Releases · testdouble/fetcher
0.2.0
file type steps in recipes may now prepend & append text as needed. An example:
steps: [
type: "file"
url: "http://www.google-analytics.com/analytics.js"
dest: "vendor/js/google-analytics.js"
prepend: """
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
// Don't need to create the script tag, since we'll be bundling it in the JS build:
// a=s.createElement(o),
// m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
"""
]
message: """
After Google Analytics is loaded, any variables must be set by your scripts, like so:
ga('create', 'UA-12345678-09');
ga('set', 'dimension1', 'someIdWeCareAbout');
"""
0.1.1
0.1.0
- Adds support for "archive" type recipes (downloads a zip or tar, unpacks it, iterates copies over a set of src/dest objects). Here's an example of the format:
steps: [
type: "archive"
url: "https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip"
stripRootDir: true
files: [
{
src: ["css/bootstrap.css", "css/bootstrap-theme.css"]
dest: "vendor/css"
}, {
src: "fonts"
dest: "vendor/static"
}, {
src: "js/bootstrap.js",
dest: "vendor/js"
}
]
](from lineman's recipes)
0.0.5
0.0.4
0.0.3
Adds support for recipe steps of type "recipe" (meaning recipes that declare hard dependency pre-requisites). Example: Backbone requires underscore:
steps: [
{
type: "recipe"
name: "underscore"
},
{
type: "file"
url: "http://backbonejs.org/backbone.js"
dest: "vendor/js/backbone.js"
}
]