krasimir / techy

A flat file CMS based on Gulp and AbsurdJS
http://krasimir.github.io/techy
MIT License
250 stars 23 forks source link

Techy not picking up dest parameter from TechyFile.js for public folder #21

Closed ismay closed 10 years ago

ismay commented 10 years ago

The new commands src and dest are working fine when you use them from the command line, but when src and dest are defined in a theme's TechyFile.js they don't work as expected.

For example, with this TechyFile.js:

module.exports = function() {
    return {
        src: './input',
        dest: './output'
    }
}

Techy grabs the markdown files correctly from the input folder and it outputs the .html files in output. The bug is that it puts the .js and .css in a dest/public folder when it should be output/public. So it seems that Techy is not using the dest parameter for the .js and .css files.

krasimir commented 10 years ago

Thanks for the reporting. I'll check as soon as possible.

ismay commented 10 years ago

You're welcome, glad to be of help!

krasimir commented 10 years ago

There is a new version 1.0.2 released. It contains the fix for this issue. Can you please test again and confirm that everything is ok.

P.S. The test: https://github.com/krasimir/techy/tree/master/tests/master-config-with-dest-folder

ismay commented 10 years ago

Confirmed, I updated to v1.0.3 and everything works ok! Default folder is named dist, and when using a TechyFile.js in a theme, with custom src and dest parameters Techy puts everything in the selected destination correctly.

krasimir commented 10 years ago

I'm glad to see that. #23 is coming soon too.