pinittome / pinitto.me

Main repo for pinitto.me open source corkboard
https://pinitto.me
Apache License 2.0
64 stars 14 forks source link

client side debug mode: switch off optimizations #118

Closed jdittrich closed 10 years ago

jdittrich commented 10 years ago

What I wanted to archive: Switching off the optimization (concatenation) of client side javascript code in order to see the single JS files with linebreaks for easier debugging. What I tried: setting app:{ useOptimised:false} in the config.production.js What happened: still no single Javascript files. I may have misunderstood the setting though.

lloydwatkin commented 10 years ago

Hmm it looks like this is being ignored for some reason. Could you try setting your NODE_ENV to 'development' and see if you get the same thing?

jdittrich commented 10 years ago

Yes, I get the single files when I set run it with env NODE_ENV=development node index. Is the setting only possible to use if the NODE_ENV is development?

lloydwatkin commented 10 years ago

Ahh I saw the problem, fixed it, was here: https://github.com/pinittome/pinitto.me/blob/master/src/config.js#L18

If you set useOptimsed to false it kicked in the default.

If you are developing on this be aware of planning on working again on this soon and large parts of the internals may change :)

jdittrich commented 10 years ago

I'd like to work mainly on the front-end javascript of the board. Are there changes upcoming regarding this part, and if yes is there a way to see what is?

lloydwatkin commented 10 years ago

Cool. There's nothing so far. I've been trying to find a designer who'd be interested in working on an open source project, sadly none are forthcoming despite my efforts. I feel the next version should be entirely design led, but I'll be keeping the same data format and switching out each bit at a time.

I'll create an issue for contributors to version 1.0 as a couple of people have said that they are interested.