A partial archive of meta.discourse.org as of Tuesday July 18, 2017.

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

He-Man

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?

vinothkannans

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

He-Man

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

mpalmer

Probably because that’s where all the other vendored code already lived, so it seemed wasteful to create yet another top-level directory.

sam

@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