connectivedx / Phoenix

http://connectivedx.github.io/Phoenix/
33 stars 5 forks source link

Built CSS doesn't save to specified output directory #116

Open chadian opened 9 years ago

chadian commented 9 years ago

Running latest version of Phoenix @ 412139514bfce9f622c98dba8034b11e96e0a271 and specifying the output path doesn't move the files to the expected output path.

Example driver for css within gulpfile.js:

            driver: 'css',
            paths: ['./css/*.scss'],
            base: './css',
            watchPaths: ['css/**'],
            autoClean: true,
            autoCleanPaths: ['./css/*.css'],
            output: './something-else/',

It looks like everything is fine up to var stream = through2.obj(saveFile); in Assets/src/node_modules/gulp/node_modules/vinyl-fs/lib/dest/index.js. as I can still see the outFolder referencing what I specified for the output value on the task configuration.

But possibly fails within the saveFile callback because the file insists on saving to ../dist/ (which is also the value of the outFolder inside saveFile when it is called, and it comes time to actually writing out the css files)

Maybe, I'm missing something in terms of setup of the configuration values?

elseloop commented 8 years ago

@chadian Was there ever any discussion around this? Is it still an issue?

chadian commented 8 years ago

Looks like it's still an issue.

ajmueller commented 8 years ago

I'm digging the response time for each comment. See you guys in 6 months!

ajmueller commented 8 years ago

@devinrayolsen maybe this is related to the Jade template output issue?

drolsen commented 8 years ago

@ajmueller Correct. I just took the comments off that other ticket cause I realized it's not any config option I can change (and distracts from the conversation).

In my case, old PHP taks is not a driver, so files get copied over under all builds correctly. Once you use a driver for the task, the output option will no longer work correctly (that's what I'm experiencing at least).