tactivos / grunt-cdn

79 stars 53 forks source link

Respect file paths in destination #60

Closed dmitrybelyakov closed 9 years ago

dmitrybelyakov commented 9 years ago

Introduces grunt-frienly way of configuring task with glob patterns. Define cwd and dest directories and list your sources under src with patterns that support nested directories:

cwd: 'dist/templates/', // sources
dest: 'dist/cdnified-templates/', // destination
src: [
    'index.html', // exact
    '*.html', // all with extension
    '*.{css,htm}', // any of extensions
    '{,*/}.html', //nested one level
    '{,**/}.html', //nested any level
]

Results are put to dest with respect for their original path under cwd. Fixes the issue of results being dumped into single directory.

dmitrybelyakov commented 9 years ago

Also fixed travis here: there's no "0.12" node version :) see travis docs