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

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

oh ok. Thanks for answer. Do you know what is the reasoning behind the decision of using vendor folder and not node_modules?

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

@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