Skip to content

Update Exercise-1.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/Exercise-1.md
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ Lets start with the files in the root of the project and work our way down from

This project uses [NPM](https://docs.npmjs.com/about-npm) for dependency management. As such, you will see two related files, `package.json` and `package-lock.json`, and one directory `node_modules`. If you are familiar with NPM already, you can skip the following bullets.

* `package.json` is where the packages that your project depends on are declared. There's a section called `dependencies` for things that are required for the project to run in the browser, and there's a section called `devDependencies` for things that are needed for development or building the project. At the top is a section titled `scripts`. This is where you can declare shortcuts to run commonly-used commands. They can be run in the terminal by executing `npm run [name of script]`. We won't be using them ecept for possibly the `watch` script.
* `package.json` is where the packages that your project depends on are declared. There's a section called `dependencies` for things that are required for the project to run in the browser, and there's a section called `devDependencies` for things that are needed for development or building the project. At the top is a section titled `scripts`. This is where you can declare shortcuts to run commonly-used commands. They can be run in the terminal by executing `npm run [name of script]`. We won't be using them except for possibly the `watch` script.
* `package-lock.json` stores the eact versions of all dependencies that were installed the last time `npm install` was run. `npm install` was run automatically for you as part of the `ng new` command you ran earlier, which is why this file exists. You should never manually edit this file. It is to maintain consistency in the build when building in a `CI/CD` environment, or between multiple developers working on the same project.
* `node_modules` is the directory where all of the dependencies are stored. It can become very large. It is not committed to the repository and should already be ignored (In VS Code, you can tell a file is ignored from the repository because it is colored gray in the Explorer sidebar). You should not have to interact with the contents of this folder directly.