Created
January 6, 2012 15:32
-
-
Save wess/1571077 to your computer and use it in GitHub Desktop.
Example of a Stackfile that has less, jquery and the less skeleton files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* This is an example Stackfile | |
*/ | |
/* PATHS */ | |
var jsPath = "js", | |
cssPath = "css", | |
lessPath = "less"; | |
/* PATHS */ | |
/* LIBS */ | |
var libs = [ | |
{ | |
name: "jquery.min.js", | |
url : "http://code.jquery.com/jquery-1.7.1.min.js", | |
destination: jsPath, | |
//override: true // To redownload/override file (defaults to false) | |
}, | |
{ | |
name: "less.min.js", | |
url: "http://lesscss.googlecode.com/files/less-1.1.5.min.js", | |
destination: jsPath | |
}, | |
{ | |
url: "http://html5shim.googlecode.com/svn/trunk/html5.js", | |
destination: jsPath | |
}, | |
{ | |
//name: "normalize.css", | |
url: "https://raw.github.com/necolas/normalize.css/master/normalize.css", | |
destination: cssPath | |
}, | |
{ | |
url: "https://raw.github.com/wess/Skeleton/master/less/base.less", | |
destination: lessPath | |
}, | |
{ | |
url: "https://raw.github.com/wess/Skeleton/master/less/grid.less", | |
destination: lessPath | |
}, | |
{ | |
url: "https://raw.github.com/wess/Skeleton/master/less/setup.less", | |
destination: lessPath | |
}, | |
{ | |
url: "https://raw.github.com/wess/Skeleton/master/less/skeleton.less", | |
destination: lessPath | |
}, | |
{ | |
url: "https://raw.github.com/wess/Skeleton/master/less/styles.less", | |
destination: lessPath | |
}, | |
]; | |
/* LIBS */ | |
// Export our stack so pile can build it for us. | |
Pile.stack = { | |
// the libs you listed, if we don't have them | |
// let us add them to our directory. | |
public: true, | |
// Know everything that's happening | |
verbose: true, | |
// Generate an a stubbed out HTML file? | |
// This will NOT override if the file already exists | |
generate: "index.html", | |
// The paths for us to create if they aren't there | |
paths: [ | |
jsPath, | |
cssPath, | |
lessPath | |
], | |
// The libs you want us to grab. | |
libs: libs | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment