He-Man
(He-Man)
1
I was going through discourse code, and comparing it with standard emberjs projects.
Discourse uses version 2.13 of emberjs.
The emberjs directory structure includes node_modules
folder.
But the front end part of discourse project does not have any node_modules folder. So discourse does not use any module from npm?
As per my understanding, instead of using npm JS dependencies are directly placed in vendor directory.
3 Likes
He-Man
(He-Man)
3
oh ok. Thanks for answer. Do you know what is the reasoning behind the decision of using vendor folder and not node_modules?
mpalmer
(Matt Palmer)
4
Probably because that’s where all the other vendored code already lived, so it seemed wasteful to create yet another top-level directory.
3 Likes
sam
(Sam Saffron)
5
@eviltrout and I have a long term plan to shift js dependency management to yarn or npm but for the time being dependencies are handled manually
8 Likes