Skip to content

Commit 41017f3

Browse files
Update file structure, explain 'images.d.ts'.
1 parent 68f60e1 commit 41017f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,27 @@ At this point, your project layout should look like the following:
3737
```text
3838
my-app/
3939
├─ .gitignore
40+
├─ images.d.ts
4041
├─ node_modules/
4142
├─ public/
4243
├─ src/
4344
│ └─ ...
4445
├─ package.json
4546
├─ tsconfig.json
47+
├─ tsconfig.prod.json
48+
├─ tsconfig.test.json
4649
└─ tslint.json
4750
```
4851

4952
Of note:
5053

5154
* `tsconfig.json` contains TypeScript-specific options for our project.
55+
* We also have a `tsconfig.prod.json` and a `tsconfig.test.json` in case we want to make any tweaks to our production builds, or our test builds.
5256
* `tslint.json` stores the settings that our linter, [TSLint](https://github.com/palantir/tslint), will use.
5357
* `package.json` contains our dependencies, as well as some shortcuts for commands we'd like to run for testing, previewing, and deploying our app.
5458
* `public` contains static assets like the HTML page we're planning to deploy to, or images. You can delete any file in this folder apart from `index.html`.
5559
* `src` contains our TypeScript and CSS code. `index.tsx` is the entry-point for our file, and is mandatory.
60+
* `images.d.ts` will tell TypeScript that we're certain types of image files, which create-react-app supports.
5661

5762
# Running the project
5863

0 commit comments

Comments
 (0)