Why is the node_modules folder not present in discourse project folder?


(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?


(Vinoth Kannan) #2

As per my understanding, instead of using npm JS dependencies are directly placed in vendor directory.


(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?


(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.


(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