These are chat archives for brunch/brunch

22nd
Dec 2016
cursorzz
@cursorzz
Dec 22 2016 09:51
hello guys, sorry for my bad english. I am new to brunch. currently I installed several js packages using npm, but some pakcages are depending on others, how can I specific orders for them (I know there is order option in brunch_config.js, but not sure how to make the path right)
cursorzz
@cursorzz
Dec 22 2016 10:00
alright, I solve that by adding globals options in npm ....
Mauro Oviedo
@moviedo
Dec 22 2016 20:11
@cursorzz you shouldn't have to do anything for dependency as long as the module you are using has a proper package.json with dependencies defined
@cursorzz example ordering
files:
  javascripts:
    defaultExtension: 'js'
    joinTo:
      'javascripts/app.js': /^main/
      'javascripts/experiences.js': /^experiences/
      'javascripts/home.js': /^home/
    order:
      before: [
        'app/main/jquery.js', 
        'app/main/custom.modernizr.js', 
        'app/experiences/jquery.simplemodal.js', 
        'app/home/foundation.js', 
        'app/home/fastclick.js', 
        'app/home/retina.min.js'
      ]