fbrctr / fabricator

A tool for building website UI toolkits and style guides
http://fbrctr.github.io/
MIT License
1.11k stars 124 forks source link

Changes to fabricator.js not reflected #273

Closed danieldafoe closed 8 years ago

danieldafoe commented 8 years ago

Hello there. Just wanted to get some guidance on how to go about changing the fabricator.js methods to fit my needs and how (and when) they get compiled to the outputted JS.

I have the development environment up and running, but when I make changes to assets/fabricator/scripts/fabricator.js, these are not reflected immediately on the page.

For instance, if I, say, remove the setting of the border top and bottom colours to the color chips on the Overview page, I would assume they do not get the colour and should appear empty. Instead, they appear as usual.

Sample code:

fabricator.buildColorChips = () => {

  const chips = document.querySelectorAll('.f-color-chip');

  for (let i = chips.length - 1; i >= 0; i--) {
    const color = chips[i].querySelector('.f-color-chip__color').innerHTML;
    // chips[i].style.borderTopColor = color;
    // chips[i].style.borderBottomColor = color;
  }

  return fabricator;

};

As I read in the documentation and observed in the gulp file, the watchers are indeed watching that directory and that file, so why don't I see my changes?

Any direction or advice would be greatly appreciated!

danieldafoe commented 8 years ago

Must have removed something or had naming collisions when I merged the generated gulpfile with my project's own.