Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E134 Topic 2 Question 53 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 53
Topic #: 2
[All AD0-E134 Questions]

Where should an AEM Developer add a front end dependency?

Show Suggested Answer Hide Answer
Suggested Answer: C

An AEM Developer should add a front-end dependency in the package.json file. The package.json file is a standard configuration file for managing dependencies in JavaScript projects, including those using npm or Yarn as package managers.

Here's how to add a front-end dependency:

Open the package.json File: This file is typically located at the root of your project.

Add the Dependency: Add the required front-end dependency under the dependencies or devDependencies section. For example, to add lodash as a dependency:

{

'name': 'my-aem-project',

'version': '1.0.0',

'dependencies': {

'lodash': '^4.17.21'

}

}

Install the Dependency: Run the following command to install the new dependency:

npm install

Verify Installation: Ensure that the dependency has been added to the node_modules directory and is listed in the package-lock.json file.

The package.json file is the central place to manage all front-end dependencies, making it easy to track, update, and share dependencies across the development team.


npm Documentation

Managing Dependencies in AEM Projects

These steps ensure that the front-end dependencies are managed efficiently and consistently within the AEM project.

Contribute your Thoughts:

Suzi
2 days ago
Hmm, this one has me a bit stumped. I'm not super familiar with AEM, so I'm not sure where the right place would be to add a front end dependency. I'd probably need to do some quick research to figure this out.
upvoted 0 times
...
Howard
8 days ago
I think I'd start by looking at the options and thinking about where front end dependencies are typically stored. Package.json seems like the most logical choice.
upvoted 0 times
...
Karan
13 days ago
I’m confused about vault.xml; I don’t think it’s for dependencies, but I can’t remember what it’s specifically used for.
upvoted 0 times
...
Edward
19 days ago
I feel like I've seen practice questions where package.json was the answer for managing front end libraries.
upvoted 0 times
...
Irene
24 days ago
I remember something about config.json being used for configurations, but I can't recall if it applies to front end dependencies.
upvoted 0 times
...
Elin
1 month ago
I think front end dependencies are usually added in package.json, but I'm not entirely sure.
upvoted 0 times
...

Save Cancel