Thanks for the reply.
My manifest file looks like this currently (I tried vendor before and after files in manifest.json):
{
"dependencies": {
"main.js": {
"vendor": [
"assets/scripts/vendor/slick.js"
],
"files": [
"scripts/main.js"
],
"main": true
},
"main.css": {
"files": [
"styles/main.scss"
],
"main": true
},
"editor-style.css": {
"files": [
"styles/editor-style.scss"
]
},
"jquery.js": {
"bower": ["jquery"]
},
"modernizr.js": {
"bower": ["modernizr"]
}
},
"config": {
"devUrl": "http://xxxxxxx:8888"
}
}
The output from node is:
[ { type: 'js',
name: 'main.js',
globs:
[ '/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/button.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js',
'/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js',
'assets/scripts/vendor/slick.js',
'assets/scripts/main.js' ] },
{ type: 'js',
name: 'jquery.js',
globs: [ '/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/jquery/dist/jquery.js' ] },
{ type: 'js',
name: 'modernizr.js',
globs: [ '/Bitbucket/ckd-2015/wp-content/themes/sage/bower_components/modernizr/modernizr.js' ] } ]
You’ll see there’s slick.js which I’ve added in manifest.json between the bootstrap and main.js files, which is the correct order.
I’ve just double checked my main.js file that gets output and it’s definitely in the order I described in my OP i.e. wrong. This obviously wont mean too much but the final main.js file is here: http://pastebin.com/yRVSqkmX. The main thing is you can see the Slick (slick.js) references all towards the end of the file if you do a find for slick.
Thanks.